On Oct 3, 2006, at 12:01 PM, Abdelrazak Younes wrote:

It seems like an include path problem. Try to pass -I<Qt includes path>/QtCore etc.
Please be more specific -- I'm not a programmer!

Yes, sorry. The problem is that gcc is not finding the Qt headers. I guess you can pass the -I option this way (adjust to where you Qt headers are):

CPPFLAGS="-I[Qt path]/include/QtCore -I[Qt path]/include/QtGui" ./ configure ...


(Aren't such paths supposed to be established at configure time? ...

I suppose so but I am not a pkgconfig expert ;-)
Others will probably answer that...

Looking further, I see that the qt4/Makefile has QT4_INCLUDES set to / usr/local/Trolltech/Qt-4.1.4/include (which I'm guessing comes from pkgconfig) rather than (from the location I specify for my QT4DIR) / Users/bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.4-universal/ include. Why isn't my QT4DIR also included here, as it is for QT4_FRONTEND_CFLAGS, QT4_FRONTEND_LIBS, and QT4_LDFLAGS?

Anyway, manually editing the Makefile seems to provide a workaround. However, I then get the following error:

if /bin/sh ../../../libtool --tag=CXX --mode=compile g++-4 - DHAVE_CONFIG_H -I. -I. -I../../../src -DQT_CLEAN_NAMESPACE - DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src - I../../../src/frontends -I../../../images -I/Users/bennett/lyx/ gcc-4.0/qt-mac-opensource-src-4.1.4-universal/include -I/Users/ bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.4-universal/include/ QtGui -I/Users/bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.4- universal/include/QtCore -I../../../boost -I../../../src/frontends/ controllers -I/Users/bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.4- universal/include/QtCore -I/Users/bennett/lyx/gcc-4.0/qt-mac- opensource-src-4.1.4-universal/include/QtGui -g -Os -MT QLMenubar.lo -MD -MP -MF ".deps/QLMenubar.Tpo" -c -o QLMenubar.lo QLMenubar.C; \ then mv -f ".deps/QLMenubar.Tpo" ".deps/QLMenubar.Plo"; else rm -f ".deps/QLMenubar.Tpo"; exit 1; fi g++-4 -DHAVE_CONFIG_H -I. -I. -I../../../src -DQT_CLEAN_NAMESPACE - DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src - I../../../src/frontends -I../../../images -I/Users/bennett/lyx/ gcc-4.0/qt-mac-opensource-src-4.1.4-universal/include -I/Users/ bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.4-universal/include/ QtGui -I/Users/bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.4- universal/include/QtCore -I../../../boost -I../../../src/frontends/ controllers -I/Users/bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.4- universal/include/QtCore -I/Users/bennett/lyx/gcc-4.0/qt-mac- opensource-src-4.1.4-universal/include/QtGui -g -Os -MT QLMenubar.lo - MD -MP -MF .deps/QLMenubar.Tpo -c QLMenubar.C -o QLMenubar.o QLMenubar.C: In member function 'void lyx::frontend::QLMenubar::macxMenuBarInit()': QLMenubar.C:165: error: no matching function for call to 'MenuBackend::specialMenu(const char [4])' ../../../src/MenuBackend.h:217: note: candidates are: void MenuBackend::specialMenu(const lyx::docstring&)
make[7]: *** [QLMenubar.lo] Error 1
make[6]: *** [all-recursive] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Bennett

Reply via email to