Clone https://github.com/DeVaukz/SOIL move to the downloaded directory.
mkdir build
cd build
cmake ..
make
sudo make install
使用soil时 ,会报类似
Undefined symbols for architecture x86_64:
“_SOIL_load_image”, referenced from:
这种错误,网上搜索的话 大部分解决方法是添加-m64
这个应该是没错的 ,不过我使用的是xcode 所以更大的可能原因需要在项目
属性other linker flags中添加/usr/local/lib/libSOIL.dylib
本文介绍如何从GitHub克隆SOIL项目并完成编译安装过程。针对使用过程中出现的符号未定义错误,提供了在Xcode环境中项目的Other Linker Flags中添加libSOIL路径的解决方案。
353

被折叠的 条评论
为什么被折叠?



