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
- Add DO_NOT_SILENTLY_SEARCH to idyntree_handle_dependency Add DO_NOT_SILENTLY_SEARCH option to avoid the initial `find_package` QUIET call to decide the initial default value of the option to enable a... — committed to robotology/idyntree by traversaro 5 years ago
- Do not quietly search for ASSIMP to decide if enable it or not (#600) Add DO_NOT_SILENTLY_SEARCH option to avoid the initial find_package QUIET call to decide the initial default value of the option ... — committed to robotology/idyntree by traversaro 5 years ago
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
The issue in
homebrew-corehas 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 whenUSE_ASSIMPis OFFAnyway 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)