Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building from source on anaconda #1579

Open
kankanzheli opened this issue Apr 9, 2024 · 0 comments
Open

building from source on anaconda #1579

kankanzheli opened this issue Apr 9, 2024 · 0 comments
Labels
question Request for help or information

Comments

@kankanzheli
Copy link

Hi, thank you for the good work on mujoco.

I'm a (engineer) and I'm trying to use MuJoCo for my research.

I'm looking for some help with building from source on Ubuntu18 Anaconda

Here is a model which explains my question:

I followed the instructions from here.
But i got error while doing cmake --build . saying below.

I googled it. it seems like related to cmake problem. But i cannot solve it. Help me!

[ 16%] Building CXX object CMakeFiles/mujoco.dir/src/user/user_api.cc.o
[ 16%] Building CXX object CMakeFiles/mujoco.dir/src/user/user_composite.cc.o
[ 16%] Building CXX object CMakeFiles/mujoco.dir/src/user/user_flexcomp.cc.o
[ 16%] Building CXX object CMakeFiles/mujoco.dir/src/user/user_init.cc.o
[ 16%] Building CXX object CMakeFiles/mujoco.dir/src/user/user_mesh.cc.o
[ 17%] Building CXX object CMakeFiles/mujoco.dir/src/user/user_model.cc.o
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc: In instantiation of ‘void mjCModel::SetDefaultNames(std::vector<T*>&) [with T = mjCMesh]’:
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:2840:25: required from here
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:907:34: error: unused variable ‘name’ [-Werror=unused-variable]
for (auto const& [name, indices] : names) {
^
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc: In instantiation of ‘void mjCModel::SetDefaultNames(std::vector<T*>&) [with T = mjCSkin]’:
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:2841:24: required from here
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:907:34: error: unused variable ‘name’ [-Werror=unused-variable]
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc: In instantiation of ‘void mjCModel::SetDefaultNames(std::vector<T*>&) [with T = mjCHField]’:
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:2842:26: required from here
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:907:34: error: unused variable ‘name’ [-Werror=unused-variable]
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc: In instantiation of ‘void mjCModel::SetDefaultNames(std::vector<T*>&) [with T = mjCTexture]’:
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:2843:27: required from here
/home/zhaowentao/Reinforcement/mujoco/src/user/user_model.cc:907:34: error: unused variable ‘name’ [-Werror=unused-variable]
cc1plus: all warnings being treated as errors
CMakeFiles/mujoco.dir/build.make:635: recipe for target 'CMakeFiles/mujoco.dir/src/user/user_model.cc.o' failed
make[2]: *** [CMakeFiles/mujoco.dir/src/user/user_model.cc.o] Error 1
CMakeFiles/Makefile2:1594: recipe for target 'CMakeFiles/mujoco.dir/all' failed
make[1]: *** [CMakeFiles/mujoco.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2

@kankanzheli kankanzheli added the question Request for help or information label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for help or information
Projects
None yet
Development

No branches or pull requests

1 participant