google-deepmind / google-deepmind/mujoco

sample compiling cannot find framework on MacOS

Open
#1,415 3 comments 0 reactions 1 assignee Claimed by @saran-t View on GitHub
building question
Dominant language
C++
Stars
15.2k
Forks
1.8k
Avg merge
10d 16h
Merged PRs (30d)
25

Description

Hi,

I'm an Associate Professor at West Virginia University and I'm trying to use MuJoCo for computational neuroscience. I have little experience in compiling. I am trying to figure out how to link MuJoCo to Matlab via Mex functions. I've started with compiling sample code that came with the MuJoCo download.

I'm looking for some help with compiling the code from Sample folder. I have copied the MuJoCo app into the Applications folder and it runs fine. Then in terminal I ran the Makefile and it causes an error that the framework mujoco is not found.

The code I run in terminal:
cd /Users/vgritsenko/MuJoCo_sample
make

The output I get:
clang++ -O2 -F/Applications/MuJoCo.app/Contents/Frameworks -I/usr/local/include -pthread -std=c++17 -stdlib=libc++ -L/usr/local/lib -Wl,-rpath,/Applications/MuJoCo.app/Contents/Frameworks testspeed.cc -framework mujoco -o testspeed
ld: framework 'mujoco' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1

When I go to the MuJoCo framework path, the framework is there:

image

Any advice is appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.