C++ Build Error while trying to run MuJoCo Code #1970
Unanswered
efecanalbay
asked this question in
Asking for Help
Replies: 1 comment
-
Did you build MuJoCo from source? If not, here are the instructions: https://mujoco.readthedocs.io/en/stable/programming/index.html#building-from-source |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm a student and I'm trying to use MuJoCo for observing and doing some measurements of walking pattern by using lower body of humanoid.
I'm looking for some help with running C++ code. I downloaded the zip file from https://github.com/google-deepmind/mujoco and try to run the code to see the simulation screen of MuJoCo. I already did this with Python or also did drag and drop easily. But I can not build my code in C++ right now. The reason behind that I need to run my code in C++ is I will get some measurement data as output and maybe extract some plots.
Here is a screenshot illustrating my question:
Here is the written version of the error:
Starting build...
cmd /c chcp 65001>nul && C:\mingw64\bin\g++.exe -fdiagnostics-color=always simulate main.cc -L C:\Users\user\Desktop\mujoco-3.1.6-windows-x86_64\lib -g -lmujoco -std=c++20 C:\Users\user\Desktop\mujoco-3.1.6-windows-x86_64\simulate\main.cc -o C:\Users\user\Desktop\mujoco-3.1.6-windows-x86_64\simulate\main.exe
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find simulate: No such file or directory
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\user\AppData\Local\Temp\ccyRGBhE.o: in function
PhysicsThread(mujoco::Simulate*, char const*)': C:/Users/user/Desktop/mujoco-3.1.6-windows-x86_64/simulate/main.cc:427: multiple definition of
PhysicsThread(mujoco::Simulate*, char const*)'; C:\Users\user\AppData\Local\Temp\cczp5o05.o:C:/Users/user/Desktop/mujoco-3.1.6-windows-x86_64/simulate/main.cc:427: first defined hereC:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\user\AppData\Local\Temp\ccyRGBhE.o: in function
main': C:/Users/user/Desktop/mujoco-3.1.6-windows-x86_64/simulate/main.cc:475: multiple definition of
main'; C:\Users\user\AppData\Local\Temp\cczp5o05.o:C:/Users/user/Desktop/mujoco-3.1.6-windows-x86_64/simulate/main.cc:475: first defined herecollect2.exe: error: ld returned 1 exit status
Beta Was this translation helpful? Give feedback.
All reactions