ros2 galactic mac m1 install libzstd error
Hi, I keep getting an error when trying to install ros galactic. Here are the details.
- Machine: Macbook Pro M1, MacOs Monterey 12.2
- Environment: Miniforge3, Python 3.9.2
- Attempting to install ROS 2 Galactic
- Following: https://docs.ros.org/en/galactic/Inst...
- Also tried: http://mamykin.com/posts/building-ros...
Error:
--- stderr: zstd_vendor
CMake Error at /Users/fatma/miniforge3/envs/stats/lib/cmake/zstd/zstdTargets.cmake:81 (message):
The imported target "zstd::libzstd_static" references the file
"/Users/fatma/miniforge3/envs/stats/lib/libzstd.a"
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
"/Users/fatma/miniforge3/envs/stats/lib/cmake/zstd/zstdTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/Users/fatma/miniforge3/envs/stats/lib/cmake/zstd/zstdConfig.cmake:1 (include)
CMakeLists.txt:12 (find_package)
---
Failed <<< zstd_vendor [15.6s, exited with code 1]
Checked ../stats/lib/ and there was no libzstd.a so I created a symlink linking libzstd.dylib to libzstd.a Now there's a libzstd.a but it still didn't pick it up. (I'm not sure if this symlink was smart so I've removed it)
Any pointers etc would be really helpful. Thank you