- 报错:
Ignoring file ‘/usr/local/Cellar/glfw/3.3.4/lib/libglfw.3.3.dylib’: found architecture ‘x86_64’, required architecture ‘arm64’
Undefined symbols:
Linker command failed with exit code 1 (use -v to see invocation)
解决: - 重新安装brew reinstall glfw(检查是不是arm64)
- Library Search Paths /usr/local/lib改成/opt/homebrew/lib
- header Search Paths /usr/local/include改成/opt/homebrew/include
- Link Binary With Libraries记得也替换成arm64的glfw
- copy file也记得改