Prerequisite: CMake has been installed
Download Assimp installation package
The version of 3.3.1 is used here.
Create a new empty folder named Build in the downloaded assimp-3.3.1 folder.
Open the CMake gui,source code directory set to assimp-3.3.1,binaries directory set to the new build folder just now.
Click Configure. To handle the warning, you can install the Minizip.
Configure again.
Click Generate to show generate done.
There's a show here.
Macosx_rpath is not specified for the following targets:
Assimp
Warning, no suitable treatment scheme has been found.
In the terminal CD to the new build directory that you just created, enter make. Wait for processing to complete.
There was an issue with the Assimp library that was not found when running the code, and the Assimp folder under the/assimp/3.3.1/include directory was copied to/usr/local/include.
When you run the code, you find that you cannot successfully link to assimp, use homebrew, and enter the brew install ASSIMP.
A prompt for unsuccessful links appears:
Follow the prompts to enter the brew link--overwrite assimp, because the permissions issue, failed to execute successfully, and currently homebrew can not use sudo operation. You need to change read and write permissions here. Because there was no such part at the time. ), so I also forgot which folder it was.
Anyway, it's/usr/local/include or/usr/local/lib/cmake. Right-click Folder display Introduction to modify permissions, read-only change to read and write.
Re-enter the brew link--overwrite assimp, link successfully.
For security reasons, remember to change the read and write permissions back.
Install assimp under Mac OS