编译环境:MacOS(M1 )
1、下载地址
https://github.com/assimp/assimp
2、安装 cmake
arch -arm64 brew install cmake
3、进入源码目录
cd ./assimp-master
4、修改CMakeLists.txt文件,ASSIMP_BUILD_TESTS设置ON
OPTION ( ASSIMP_BUILD_TESTS
"If the test suite for Assimp is built in addition to the library."
ON
)
5、进入iOS文件
cd ./port/iOS
6、编译libassimp-fat.a
./build.sh --stdlib=libc++ --archs="arm64e"
7、输出目录
open ./lib/iOS/