赞
踩
我原来有个交叉编译后的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 |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。