Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.7.0
-
None
-
Maemo 5 final SDK
Description
When trying to build Qt Components for Maemo from the current master branch with "qmake -config mx && make" in Scratchbox, in the default FREMANTLE_X86 target, I get this error:
make[2]: Entering directory `/home/ilaukkan/src/qt/qt-components/src/module' /usr/bin/moc -DQT_NO_BUTTONGROUP -DQT_BUILD_COMPONENTS_LIB -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtDeclarative -I/targets/FREMANTLE_X86/usr/include -I../lib -I. -Imodels -Imodels -I.moc -I../lib -I. -Imodels plugin.cpp -o .moc/plugin.moc g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_BUTTONGROUP -DQT_BUILD_COMPONENTS_LIB -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtDeclarative -I/targets/FREMANTLE_X86/usr/include -I../lib -I. -Imodels -Imodels -I.moc -I../lib -I. -Imodels -o .obj/plugin.o plugin.cpp In file included from /usr/include/QtGui/QtGui:136, from /targets/FREMANTLE_X86/usr/include/QtDeclarative/QtDeclarative:4, from plugin.cpp:27: /usr/include/QtGui/qgtkstyle.h:123: error: 'QFileDialog' has not been declared /usr/include/QtGui/qgtkstyle.h:123: error: expected ',' or '...' before 'options' /usr/include/QtGui/qgtkstyle.h:125: error: 'QFileDialog' has not been declared /usr/include/QtGui/qgtkstyle.h:125: error: expected ',' or '...' before 'options' /usr/include/QtGui/qgtkstyle.h:127: error: 'QFileDialog' has not been declared /usr/include/QtGui/qgtkstyle.h:127: error: expected ',' or '...' before 'options' /usr/include/QtGui/qgtkstyle.h:129: error: 'QFileDialog' has not been declared /usr/include/QtGui/qgtkstyle.h:129: error: expected ',' or '...' before 'options' make[2]: *** [.obj/plugin.o] Error 1 make[2]: Leaving directory `/home/ilaukkan/src/qt/qt-components/src/module' make[1]: *** [sub-module-make_default] Error 2 make[1]: Leaving directory `/home/ilaukkan/src/qt/qt-components/src' make: *** [sub-src-make_default-ordered] Error 2
All Qt Components does there is #include <QtDeclarative>. The reason for this seems to be that the entire qfiledialog.h contents are between #ifndef QT_NO_FILEDIALOG .... #endif and QT_NO_FILEDIALOG is defined.