PDA

View Full Version : qt build error



sunnyan
30th November 2009, 02:58
I got qt-embedded-linux-opensource-src-4.5.3.tar.gz and run ./configure with option bellows:

./configure \
-opensource \
-embedded mips \
-little-endian \
-xplatform qws/linux-mipsel-g++ \
-shared \
-no-cups \
-depths 32 \
-debug \
-qt-mouse-linuxtp \
-no-opengl \
-no-mmx \
-no-3dnow \
-no-sse \
-no-sse2 \
-qt-kbd-usb \
-qt-zlib \
-qt-gif \
-qt-libpng \
-qt-libjpeg \
-qt-libmng

and then run make...

Unfortunately, It give us an error :

mipsel-linux-g++ -c -include .pch/debug-shared-emb-mips/QtGui -pipe -mips32 -fno-exceptions -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DPNG_NO_ASSEMBLER_CODE -DQT_RASTER_IMAGEENGINE -DQT_RASTER_PAINTENGINE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQ_INTERNAL_QAPP_SRC -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-mipsel-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/debug-shared-emb-mips -I../3rdparty/libpng -I../3rdparty/zlib -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/freetype/builds/unix -I../3rdparty/harfbuzz/src -Idialogs -I.moc/debug-shared-emb-mips -I.uic/debug-shared-emb-mips -o .obj/debug-shared-emb-mips/qpnghandler.o image/qpnghandler.cpp
In file included from ../3rdparty/libpng/png.h:444,
from image/qpnghandler.cpp:53:
../3rdparty/libpng/pngconf.h:329: error: expected constructor, destructor, or type conversion before '.' token
../3rdparty/libpng/pngconf.h:330: error: '__dont__' does not name a type
make[1]: *** [.obj/debug-shared-emb-mips/qpnghandler.o] 오류 1
make[1]: Leaving directory `/root/project/tools/qt-embedded-linux-opensource-src-4.5.3/src/gui'
make: *** [sub-gui-make_default-ordered] 오류 2

why the above error? please, help me~~~

thanks in advance....

sunny

wysota
30th November 2009, 08:25
Here is something:

http://forum.soft32.com/linux/conflict-ftstdlib-freetype-library-pngconf-ftopict439998.html