首页 > 解决方案 > 在 IOS 模拟器中构建 qwt 源时出错

问题描述

我尝试使用 Qt Creator 在 IOS Simulator 中构建 QWT 源代码。它正在正确构建,但在链接时

Undefined symbols for architecture arm64: 
  "_main", referenced from:
      user_main_trampoline() in libqios.a(qioseventdispatcher.o)
     (maybe you meant: _jinit_d_main_controller, _qt_main_wrapper , _jinit_c_main_controller , qt_mainwindow_layout(QMainWindow const*) )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../lib/libqwt.6.1.6.dylib] Error 1
make: *** [sub-src-make_first-ordered] Error 2
16:15:18: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qwt (kit: Qt 5.15.1 for iOS Simulator)
When executing step "Make"

有没有人遇到这个错误,请帮助我。

标签: iosqt-creatorqwt

解决方案


推荐阅读