标签:编译 flow tco lib for ref find 连接 tps
今天尝试在(qtcreator 4.7.0 + Qt 4.8.6)下编译,遇到找不到库文件问题,先开始想到的是环境配置问题
检查下来也没有线索, 又想是不是没有链接路径,参考网上,试了两个个命令
ld -lQtNetwork --verbose
locate libQtNetwork
ld -lQtNetwork --verbose
locate libQtNetwork
发现x86_64没有定位到libQtNetwork.so.4.8.6的软连接,于是
sudo ln -s /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4.8.6 /usr/lib/x86_64-linux-gnu/libQtNetwork.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6 /usr/lib/x86_64-linux-gnu/libQtGui.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6 /usr/lib/x86_64-linux-gnu/libQtCore.so
QT可以编译,
refer:
https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary
https://forum.qt.io/topic/45302/solved-cannot-find-lqtguid4-lqtnetworkd4-lqtcored4/14
qt creator编译问题之 can not find -lQtGui
标签:编译 flow tco lib for ref find 连接 tps
原文地址:https://www.cnblogs.com/7star/p/12175441.html