problems compiling subsurface 4.4 on fedora 18

Dirk Hohndel dirk at hohndel.org
Tue Feb 17 07:14:47 PST 2015


> On Feb 17, 2015, at 7:05 AM, Michele Fabi <fabiemme at gmail.com> wrote:
> 
> 
> 2015-02-17 15:49 GMT+01:00 Lubomir I. Ivanov <neolit123 at gmail.com <mailto:neolit123 at gmail.com>>:
> On 17 February 2015 at 16:38, Michele Fabi <fabiemme at gmail.com <mailto:fabiemme at gmail.com>> wrote:
> > qt-ui/simplewidgets.cpp:577:25: error: ‘class QLineEdit’ has no member named
> > ‘setClearButtonEnabled’
> > make: *** [.obj/simplewidgets.o] Error 1
> > [michele at localhost subsurface]$
> >
> 
> you need to apply the two patches i've sent again as you are on a new branch.
> 
> out of interest why do you want to build Subsurface - are you an user
> or do you want to contribute to the source code?
> unfortunately building everything is not exactly an easy task for
> non-developers, no matter how well the instructions are written :-(...
> 
> lubomir
> --
> Just an user. I'd like to contribute, I usually compile programs from source code without too much problems and I compiled by myself previous versions of subsurface, but I'm completely new to git and patching code, so this time I have to give up. I will upgrade my Fedora before to retry.

I think the challenge here is a mixture of inconsistencies and challenges with our documentation on how to compile and the fact that we never considered anyone would try to compile on such an old version of Fedora…

> Thank you for your time (and mine, too).

I’m sorry you had to spend so much time on it, to be honest.

> Here is the last output:
> [michele at localhost subsurface]$ git am 0001-simplewidgets.cpp-QLineEdit-setClearButtonEnabled-is.patch
> Applying: simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2
> [michele at localhost subsurface]$ git am 0002-subsurfacewebservices.cpp-add-QDebug-include.patch
> Applying: subsurfacewebservices.cpp: add QDebug include

Excellent, so the patches applied

> [michele at localhost subsurface]$ make clean
[…]
> linking subsurface
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x188): undefined reference to `QWidget::styleChange(QStyle&)'
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x190): undefined reference to `QWidget::enabledChange(bool)'
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x198): undefined reference to `QWidget::paletteChange(QPalette const&)'
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1a0): undefined reference to `QWidget::fontChange(QFont const&)'
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1a8): undefined reference to `QWidget::windowActivationChange(bool)'
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1b0): undefined reference to `QWidget::languageChange()’

Hmm, I need to look at these - those should be even in Qt 5.1

> .obj/save-git.o: In function `tree_insert':
> /home/michele/src/subsurface/save-git.c:458: undefined reference to `git_oid_nfmt'
> .obj/save-git.o: In function `create_new_commit':
> /home/michele/src/subsurface/save-git.c:989: undefined reference to `git_oid_strcmp’

And that is once again a libgit version that’s too old :-(

I really think you’ll be MUCH happier if you update Fedora.

On the flip side, I’d really love to be able to give people rock solid instructions that just work.
So I will work on scripting all this in a way that makes this more robust.

Thanks for your patience

/D


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150217/0691ab69/attachment.html>


More information about the subsurface mailing list