idyntree: iDynTree compilation fails with USE_ASSIMP in MacOS

Recently, the bottle of assimp has been moved to assimp5 (https://github.com/Homebrew/homebrew-core/commit/d4ccd465d36df85d0caa19e3974d88aaf618f8d7), and CMake is failing with the following error:

CMake Error at /usr/local/lib/cmake/assimp-5.0/assimpTargets.cmake:85 (message):
  The imported target "assimp::assimp" references the file

     "/usr/local/lib/libassimp.dylib.5"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/cmake/assimp-5.0/assimpTargets.cmake"

  but not all the files it references.

Installing previous version of assimp prevent the cmake error

brew uninstall assimp
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ca08d3c78a9a8f4e6a5249389442ebcb962eea0d/Formula/assimp.rb

but still compilation with assimp is failing due to https://github.com/robotology/idyntree/issues/584

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (20 by maintainers)

Commits related to this issue

Most upvoted comments

I change the title accordingly, since the problem is no longer related to CMake

More and less, I guess the problem it still in the CMake config files of assimp that do not contain the correct library name.

Homebrew formula for assimp has now been updated with the patch, so the problem should now be fixed

if some macOS users could open an issue for this it would be great.

I have opened an issue in homebrew-core (Homebrew/homebrew-core#47210), feel free to add any information to the issue.

The issue in homebrew-core has been closed, we should wait the bug to be fixed upstream and then the bottle to be updated. Anyway, for the moment https://github.com/robotology/idyntree/pull/600 prevents the problem when USE_ASSIMP is OFF

Anyway I have just found a related issue (https://github.com/assimp/assimp/issues/2760) with the associated fix (https://github.com/assimp/assimp/pull/2765)