标题:make qt-embedded-linux-4.4.3是出现的问题?
作者:smalltiancai
日期:2009-05-20 21:38
内容:
这是我configure的配置选项,./configure -embedded arm -no-webkit -no-gfx-qvfb -release -xplatform qws/linux-arm-g++ -qt-kbd-tty -qt-kbd-usb -qt-mouse-pc -system-libjpeg -qt-libmng -system-libpng -qt-gif -system-zlib -depths 16,32 -no-cups -make libs -make tools -nomake examples -nomake docs -nomake demo
通过后,进行make命令 出现了以下的错误:
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:51:18: zlib.h: No such file or directory
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp: In function `QByteArray qCompress(const uchar*, int, int)':
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:451: error: `::compress2' has not been declared
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:454: error: `Z_OK' undeclared (first use this function)
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:454: error: (Each undeclared identifier is reported only once for each function it appears in.)
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:461: error: `Z_MEM_ERROR' undeclared (first use this function)
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:465: error: `Z_BUF_ERROR' undeclared (first use this function)
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp: In function `QByteArray qUncompress(const uchar*, int)':
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:524: error: `::uncompress' has not been declared
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:528: error: `Z_OK' undeclared (first use this function)
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:532: error: `Z_MEM_ERROR' undeclared (first use this function)
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:535: error: `Z_BUF_ERROR' undeclared (first use this functio ..
#1 [hercules 05-20 22:09]
下载zlib,安装一下
http://www.zlib.net/zlib-1.2.3.tar.bz2
#2 [bhwbj 05-21 09:29]
如果用-qt-zlib的话,什么事都没有;
如果用-system-zlib的话,需要先编译zlib,然后在configure的选项后边加上 -I/zlibDIR/include -L/zlibDIR/lib
zlibDIR是安装好zlib的目录路径
#3 [bhwbj 05-21 09:30]
我感觉能用qt自带的就直接用,我是遇到-qt和-system就选-qt的
#4 [smalltiancai 05-21 19:22]
那用-qt 和-system选项最后的作用是不是一样的啊
#5 [linansan 04-14 20:09]
这个问题也困扰我一天了,然后改成在配置命令中改成“-qt-zlib”就能正常编译了,我是用的是ubuntu编译环境。