stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
550 stars 89 forks source link

macos编译报错 #41

Closed 1250890838 closed 8 months ago

1250890838 commented 8 months ago

[ 45%] Linking CXX shared library ../../out-arm64-/lib/libQWKCore.dylib

ld:` warning: ignoring file '/Users/user/Qt5.14.2/5.14.2/clang_64/lib/QtGui.framework/Versions/5/QtGui': found architecture 'x86_64', required architecture 'arm64'

你好,请问报这个错误是咋回事啊?我按照readme中的步骤来构建。系统是macos 13.5,芯片是apple m2 pro。 提前谢谢了

SineStriker commented 8 months ago

你装的Qt版本是x86_64的,Qt官方安装包不提供arm版本的二进制。建议用homebrew安装。

1250890838 commented 8 months ago

哦好的谢谢。不过有一点我想搞明白,为什么这个项目需要arm版本的呢?x86_64的Qt demo在我机器上是可以正常运行的

SineStriker commented 8 months ago

你看看你用的是哪个架构的编译器

1250890838 commented 8 months ago

Apple clang version 15.0.0 (clang-1500.0.40.1) Target: arm64-apple-darwin22.6.0 Thread model: posix

SineStriker commented 8 months ago

你用的arm64的clang编译器编译这个库,然后来问我为什么连接不上x86_64的Qt。。。这问题不是一目了然吗?

1250890838 commented 8 months ago

好,谢谢