You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
I have a MacBook Pro 2021 with M1 Pro. I followed the instructions to install humble. But when launching rviz2, I am seeing the following error message
dyld[95562]: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib
Referenced from: <4C82972E-B20F-33C3-A22D-6B0C85060527> /Users/<username>/miniconda/envs/ros_env_humble/opt/rviz_ogre_vendor/lib/libOgreOverlay.1.12.13.dylib
Reason: tried: '/Users/<username>/miniconda/envs/ros_env_humble/opt/rviz_ogre_vendor/lib/libfreetype.6.dylib' (no such file), '/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/usr/local/lib/libfreetype.6.dylib' (no such file), '/usr/lib/libfreetype.6.dylib' (no such file, not in dyld cache)
I try to brew install freetype and force link it to /Users/<username>/miniconda/envs/ros_env_humble/opt/rviz_ogre_vendor/lib/libfreetype.6.dylib. But then the error message changed to
dyld[95562]: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib
Referenced from: <4C82972E-B20F-33C3-A22D-6B0C85060527> /Users/weichengkuo/miniconda/envs/ros_env_humble/opt/rviz_ogre_vendor/lib/libOgreOverlay.1.12.13.dylib
Reason: tried: '/Users/weichengkuo/miniconda/envs/ros_env_humble/opt/rviz_ogre_vendor/lib/libfreetype.6.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/usr/local/lib/libfreetype.6.dylib' (no such file), '/usr/lib/libfreetype.6.dylib' (no such file, not in dyld cache)
That is, it complained that the incompatible architecture ('arm64' vs 'x86_64').
There should be a libfreetype.dylib in /Users/<username>/miniconda/envs/ros_env_humble/lib - can you try to force link to this one instead? Try to avoid mixing homebrew and conda as much ass possible.
Also, why are you using the osx-64 (Intel) packages? I would recommend setting up your conda afresh and download the osx-arm64 version.
Note: This does not happen with the osx-arm64 packages, and I think it does not happen on osx-64 either. So it only happens on M1 machines with osx-64 packages installed. Therefore, I don't think it's worth fixing.
Solution to issue cannot be found in the documentation.
Issue
I have a MacBook Pro 2021 with M1 Pro. I followed the instructions to install humble. But when launching rviz2, I am seeing the following error message
I try to
brew install freetype
and force link it to/Users/<username>/miniconda/envs/ros_env_humble/opt/rviz_ogre_vendor/lib/libfreetype.6.dylib
. But then the error message changed toThat is, it complained that the incompatible architecture ('arm64' vs 'x86_64').
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: