【发布时间】:2016-02-11 16:57:20
【问题描述】:
我使用的是交叉编译的 qt 5.4.2,当我尝试构建简单的 QtWidget 应用程序时出现以下错误(该应用程序只是一个窗口)
09:55:42: Running steps for project untitled...
09:55:42: Configuration unchanged, skipping qmake step.
09:55:42: Starting: "/usr/bin/make"
g++ --sysroot=/home/pf/ssdk-d6cx/host/usr/x86_64-buildroot-linux-gnu/sysroot -Wl,-O1 -Wl,-rpath,/usr/local/qt5.4-d6cx/lib -o untitled main.o mainwindow.o moc_mainwindow.o -L/home/pf/ssdk-d6cx/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/local/qt5.4-d6cx/lib -lQt5Widgets -L/home/pf/ssdk-d6cx/host/usr/x86_64-buildroot-linux-gnu/sysroot/lib64 -L/usr/local/qt5.4-d6cx/lib -lQt5Gui -lQt5Core -lGLESv2 -lpthread
/home/pf/ssdk-d6cx/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/local/qt5.4-d6cx/lib/libQt5Core.so: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'
collect2: ld returned 1 exit status
make: *** [untitled] Error 1
09:55:42: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled (kit: d6cx)
When executing step "Make"
09:55:42: Elapsed time: 00:00.
我真的不明白发生了什么。
可能是目标操作系统上某些库的兼容性问题?
我将不胜感激任何能帮助我找到解决方案的帮助。
提前致谢。
【问题讨论】:
-
qmake 的命令是什么?
-
当 qmake 运行时,使用以下顺序: qmake '/home/pf/D6Cx/test app/untitled/untitled.pro' -r -spec linux-g++
-
@Mozfox 谢谢你,你指出我找到解决方案的正确方向!!有什么方法可以让我给你投赞成票吗?
-
很高兴看到你编译了它。 :) 也许你可以投票评论。
-
我希望,但我还没有投票的声誉......无论如何,谢谢你指出我正确的方向