Open StijnTassenoy opened 2 years ago
Hallo,
I have the same problem on Monterey with intel CPU. To solve this
Firstly, add usr/lib* to $LIBRARY_PAT in .bash_profile
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
Then source the .bash_profile again.
Secondly, the last clang command to bundle the library has the -arch arm64 and -arch x86_64 repeatedly. See:
/usr/local/opt/llvm/bin/clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -Wl,-headerpad,0x1000
I haven't figure out why it was given twice. In my case, I remove the -arch arm64 and execute this line manually after the compiler error comes out. Then it works well with OpenMP and OpenGL.
I tried to fresh install mujoco-py on my Mac, but everytime I would like to import mujoco_py, I get following error. (I followed all steps for the installation process...)