Install assimp under Mac OS

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.