Skip to content

sample compiling cannot find framework on MacOS #1415

Open
@Valeriyag

Description

@Valeriyag

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.

Metadata

Metadata

Assignees

Labels

buildingThis issue is about CMake / buildingquestionRequest for help or information

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions