当前位置:   article > 正文

qt creator 编译报错 warning: libz.so.1, needed by 。。。_:-1: warning: libz.so.1, needed by ./../../../linu

:-1: warning: libz.so.1, needed by ./../../../linux64_release/libsqlite3.so,

我原来有个交叉编译后的qmake,今天重新交叉编译了带-dbus的qmake

在qtcreator选择了qmake-dbus后,会报如下错误:


/home/tony/crosstools/arm-2011.03/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /home/tony/ext/qt-install/lib/libQtGui.so, not found (try using -rpath or -rpath-link)



解决方法:

在qtcreator your project.pro 增加一行

QMAKE_LFLAGS += -Wl,-rpath-link=/home/tony/crosstools/arm-2011.03/arm-none-linux-gnueabi/lib

即可。

前提是你的交叉编译工具链下有libz.so.1

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/535463
推荐阅读
  

闽ICP备14008679号