• 9934阅读
  • 5回复

make qt-embedded-linux-4.4.3是出现的问题? [复制链接]

上一主题 下一主题
离线smalltiancai
 
只看楼主 倒序阅读 楼主  发表于: 2009-05-20
这是我configure的配置选项,./configure -embedded arm -no-webkit -no-gfx-qvfb -release -xplatform qws/l    inux-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 function)
/root/zyf/qt-e-4.4.3/qt-e-l-4.4.3-arm/src/corelib/tools/qbytearray.cpp:538: error: `Z_DATA_ERROR' undeclared (first use this function)
make[1]: *** [.obj/release-shared-emb-arm/qbytearray.o] 错误 1
make[1]: Leaving directory `/root/zyf/qt-e-4.4.3/build-target/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2

是系统没有zlib库吗?? 如果是的话 还需要自己加哪些库啊???
离线hercules

只看该作者 1楼 发表于: 2009-05-20
下载zlib,安装一下
http://www.zlib.net/zlib-1.2.3.tar.bz2
我的QQ号:337396132
欢迎大家加我为好友,一起学习Qt
离线bhwbj
只看该作者 2楼 发表于: 2009-05-21
如果用-qt-zlib的话,什么事都没有;
如果用-system-zlib的话,需要先编译zlib,然后在configure的选项后边加上 -I/zlibDIR/include -L/zlibDIR/lib
zlibDIR是安装好zlib的目录路径
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线bhwbj
只看该作者 3楼 发表于: 2009-05-21
我感觉能用qt自带的就直接用,我是遇到-qt和-system就选-qt的
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线smalltiancai
只看该作者 4楼 发表于: 2009-05-21
那用-qt 和-system选项最后的作用是不是一样的啊
离线linansan
只看该作者 5楼 发表于: 2012-04-14
这个问题也困扰我一天了,然后改成在配置命令中改成“-qt-zlib”就能正常编译了,我是用的是ubuntu编译环境。
快速回复
限100 字节
 
上一个 下一个