【发布时间】:2015-12-12 16:10:45
【问题描述】:
假设有这样的指令:
LIBS += -L"../qwt-6.1.2/lib/"
在 Qt 项目文件中。有没有办法检查这个路径是否包含在要搜索库的路径中?
我陷入了交叉编译会话。我可以在 Linux (Raspbian) 上成功构建项目,但无法在 Windows (cross) 中构建项目。而且我认为交叉编译设置很好,因为我可以构建其他不依赖 Qwt 的项目。
即使使用绝对路径也不能在跨环境中工作。
有什么想法吗?
不确定它是否有很大帮助,但这是错误:
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.6/../../../../arm-linux-gnueabihf/bin/ld.exe: cannot find -lqwtd
collect2: ld returned 1 exit status
Makefile:190: recipe for target 'debug/MyProject' failed
mingw32-make: *** [debug/MyProject] Error 1
13:58:40: The process "C:\SysGCC\MinGW32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project MyProject(kit: Qt 4.8.6 (Raspberry))
When executing step "Make"
【问题讨论】:
标签: qt cross-compiling raspbian raspberry-pi2 qwt