compile error

Miika Turkia miika.turkia at gmail.com
Fri Oct 4 21:34:32 UTC 2013


On Sat, Oct 5, 2013 at 3:53 AM, Thiago Macieira <thiago at macieira.org> wrote:

> On sexta-feira, 4 de outubro de 2013 23:39:01, Cristian Ionescu-Idbohrn
> wrote:
> > On Fri, 4 Oct 2013, Dirk Hohndel wrote:
> > > It seems that recent Makefile changes have created all kinds of compile
> > > issues, depending on what the state of your directory was prior to
> > > pulling.
> > >
> > > What appears to work for most people is this:
> > > find . -name ui_\*.h | xargs rm
> > > make confclean clean
> > > make
> > >
> > > if you still see this error, let us know :-/
> >
> > Yes.  Still same thing:
> >
> > g++ -Wall -g     -c -o qthelper.o qthelper.cpp
> > In file included from qthelper.cpp:1:0:
> > qthelper.h:4:21: fatal error: QMultiMap: No such file or directory
> >  #include <QMultiMap>
> >                      ^
> > compilation terminated.
>
> I don't get it.
>
> It looks like EXTRA_FLAGS is empty for you guys, but Makefile sets it to:
>
> EXTRA_FLAGS =  $(QTCXXFLAGS) $(GTKCFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) \
>                $(LIBDIVECOMPUTERCFLAGS) \
>                $(LIBSOUPCFLAGS) $(GCONF2CFLAGS) -I. -DQT_NO_STL
>
> Since you're missing even the -I -DQT_NO_STL part, it can't be the
> variable,
> but the command-line to compile.
>
> What version of make are you guys using?
>

Now that EXTRA_FLAGS is mentioned, I tried that in Makefile:
---8<---
diff --git a/Makefile b/Makefile
index 5fac71f..e296bfa 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ VERSION=3.1
 CC=gcc
 CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS) -DGSEAL_ENABLE
 CXX=g++
-CXXFLAGS=-Wall -g $(CLCXXFLAGS) $(MARBLEFLAGS)
+CXXFLAGS=-Wall -g $(CLCXXFLAGS) $(EXTRA_FLAGS) $(MARBLEFLAGS)
 INSTALL=install

 # these locations seem to work for SuSE and Fedora
---8<---

This gets the compile quite a bit further but still fails:
---8<---
g++ -Wall -g -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtSvg
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtWebKit
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/libxml2 -I/usr/local/include -I/usr/include/libusb-1.0
-pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -I.
-DQT_NO_STL -DLIBZIP -I/usr/lib/libzip/include
-DXSLT='"/usr/share/subsurface/xslt"' -I/usr/include/libxml2    -c -o
qt-ui/preferences.o qt-ui/preferences.cpp
qt-ui/preferences.cpp: In member function ‘void
PreferencesDialog::setUiFromPrefs()’:
qt-ui/preferences.cpp:76:5: error: ‘class Ui::PreferencesDialog’ has no
member named ‘vertical_speed_minutes’
qt-ui/preferences.cpp:77:5: error: ‘class Ui::PreferencesDialog’ has no
member named ‘vertical_speed_seconds’
qt-ui/preferences.cpp: In member function ‘void
PreferencesDialog::setPrefsFromUi()’:
qt-ui/preferences.cpp:114:39: error: ‘class Ui::PreferencesDialog’ has no
member named ‘vertical_speed_minutes’
qt-ui/preferences.cpp: In member function ‘void
PreferencesDialog::syncSettings()’:
qt-ui/preferences.cpp:157:39: error: ‘class Ui::PreferencesDialog’ has no
member named ‘vertical_speed_minutes’
make: *** [qt-ui/preferences.o] Error 1
 ---8<---

I am on Xubuntu 13.04, make:
---8<---
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
---8<---

miika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131005/c682b9fa/attachment-0001.html>


More information about the subsurface mailing list