我正在尝试部署目前用于Mac的C ++ QT应用程序,并且很快就会进入Windows,但我目前遇到了问题。
我已经下载了QT源以静态编译。我首先cd到下载的源目录,然后运行./configure -static
,运行正常,但确实说WARNING: Unable to find file .device.vars
,不确定是否有问题。然后我尝试运行make sub-src
,但它显示No rule to make target 'sub-src'. Stop.
,所以我尝试使用普通的make
代替,运行一段时间,然后给我错误:
Undefined symbols for architecture x86_64:
"std::bad_alloc::bad_alloc()", referenced from:
qBadAlloc() in libQt5Core_debug.a(qglobal.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [qmleasing] Error 1
make[2]: *** [sub-qmleasing-make_first] Error 2
make[1]: *** [sub-tools-make_first] Error 2
make: *** [module-qtdeclarative-make_first] Error 2
提前感谢您的帮助!
编辑:可能应该补充一点,我正在运行OSX 10.8.3,64位,QT动态安装在/ Applications / QT下,尝试在桌面上的文件夹中构建它。