PDA

View Full Version : "qconfig -medium" failed



avrecorder
16th November 2007, 16:58
I am using qtopia-core-opensource-4.3.2.

I am able to configure and install it by
./configure -embedded arm
gmake
gmake install


However if I do like:
./configure -embedded arm -qconfig medium
then gmake will fail at the stage "compiling examples"
Could anyone tell me how to solve this problem?

jpn
16th November 2007, 17:54
What's the first error message?

avrecorder
17th November 2007, 17:32
Thanks, jpn,

Successful story:
qtopia-core-opensource-src-4.3.2 #
echo "yes"|./configure -embedded arm -no-stl -no-qt3support -no-nis -no-cups -no-iconv -no-qdbus -no-freetype -depths 4,8,16,32 -qt-mouse-linuxtp
gmake
gmake install

Failed story:
echo "yes"|./configure -qconfig medium -embedded arm -no-stl -no-qt3support -no-nis -no-cups -no-iconv -no-qdbus -no-freetype -depths 4,8,16,32 -qt-mouse-linuxtp
The last error messages are:
......
arm-linux-g++ -c -pipe -g -fno-exceptions -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../include/QtCore -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include/QtGui -I../../../../include/QtXml -I../../../../include/QtXml -I../../../../include/QtSvg -I../../../../include/QtSvg -I../../../../include -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -o .obj/release-shared-emb-arm/qsvgiconengine.o qsvgiconengine.cpp
rm -f libqsvg.so
arm-linux-g++ -fno-exceptions -Wl,-rpath,/usr/local/Trolltech/QtopiaCore-4.3.2-arm/lib -Wl,-rpath,/usr/local/Trolltech/QtopiaCore-4.3.2-arm/lib -shared -o libqsvg.so .obj/release-shared-emb-arm/main.o .obj/release-shared-emb-arm/qsvgiconengine.o -L/opt/qtopia-core-opensource-src-4.3.2/lib -lQtSvg -L/opt/qtopia-core-opensource-src-4.3.2/lib -lQtXml -lQtGui -lQtNetwork -lQtCore -lm -lpthread -ldl
mv -f libqsvg.so ../../../../plugins/iconengines/
gmake[3]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/iconengines/svgiconengine'
gmake[2]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/iconengines'
cd gfxdrivers/ && gmake -f Makefile
gmake[2]: Entering directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/gfxdrivers'
gmake[2]: Nothing to be done for `first'.
gmake[2]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/gfxdrivers'
cd decorations/ && gmake -f Makefile
gmake[2]: Entering directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/decorations'
gmake[2]: Nothing to be done for `first'.
gmake[2]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/decorations'
cd mousedrivers/ && gmake -f Makefile
gmake[2]: Entering directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/mousedrivers'
gmake[2]: Nothing to be done for `first'.
gmake[2]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins/mousedrivers'
gmake[1]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/src/plugins'
cd examples/ && gmake -f Makefile
gmake[1]: Entering directory `/opt/qtopia-core-opensource-src-4.3.2/examples'
cd desktop/ && gmake -f Makefile
gmake[2]: Entering directory `/opt/qtopia-core-opensource-src-4.3.2/examples/desktop'
cd screenshot/ && gmake -f Makefile
gmake[3]: Entering directory `/opt/qtopia-core-opensource-src-4.3.2/examples/desktop/screenshot'
/opt/qtopia-core-opensource-src-4.3.2/bin/qmake -spec ../../../mkspecs/qws/linux-arm-g++ -unix -o Makefile screenshot.pro
gmake[3]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/examples/desktop/screenshot'
gmake[3]: Entering directory `/opt/qtopia-core-opensource-src-4.3.2/examples/desktop/screenshot'
arm-linux-g++ -c -pipe -g -fno-exceptions -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../include/QtCore -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include/QtGui -I../../../include -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -o .obj/release-shared-emb-arm/main.o main.cpp
arm-linux-g++ -c -pipe -g -fno-exceptions -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../include/QtCore -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include/QtGui -I../../../include -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -o .obj/release-shared-emb-arm/screenshot.o screenshot.cpp
screenshot.cpp: In member function `void Screenshot::saveScreenshot()':
screenshot.cpp:90: error: `QFileDialog' has not been declared
screenshot.cpp:94: error: `getSaveFileName' undeclared (first use this function)
screenshot.cpp:94: error: (Each undeclared identifier is reported only once for each function it appears in.)
gmake[3]: *** [.obj/release-shared-emb-arm/screenshot.o] Error 1
gmake[3]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/examples/desktop/screenshot'
gmake[2]: *** [sub-screenshot-make_default-ordered] Error 2
gmake[2]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/examples/desktop'
gmake[1]: *** [sub-desktop-make_default] Error 2
gmake[1]: Leaving directory `/opt/qtopia-core-opensource-src-4.3.2/examples'
gmake: *** [sub-examples-make_default-ordered] Error 2
linux-insb:/opt/qtopia-core-opensource-src-4.3.2 #

jpn
18th November 2007, 11:14
That's weird, because screenshot.cpp seems to include whole <QtGui> so QFileDialog should be declared. Anyway, you could try skipping examples with "-nomake examples" unless you really need them?

avrecorder
18th November 2007, 16:16
Since I use "-qconfig medium" to configure, so some defines are surely undeclared. Actually whenever I use "-qconfig medium", "-qconfig small", "-qconfig minimal" or "-qconfig my", compiling examples will definetely fail here or there.
The "./configure" does not seem to have intelligence to properly configure to compile examples, it just simply compile them all. I found, this problem exists in all qtopia core releases.