Closed N1ckfm closed 1 year ago
Hi Nick, Sorry I couldn't understand, what do you mean by:
(mc_mujoco compile and install fine)
Not give me error in the mc_mujoco/build folder when:
make && sudo make install
But in the build of my project I got the glfw undefine reference.
I don't know what your project is or how it is related to mc_mujoco
:smile:
My guess would be that your cmake project can't find the path to the libglfw
library.
@rohanpsingh my project use reinforcement learning so I use mc_mujoco for the training and testing phase. My project not use glfw but how use mc_mujoco I guess when compile it mc_mujoco not find the references. I have installed GLFW
sudo apt-get update
sudo apt-get install libglfw3
sudo apt-get install libglfw3-dev
I tried to add in the CMakeList.txt of my project the find_package
and target_link_libraries
of GLFW.
I tried too copy the GLFW folder of ext
in mc_mujoco to my project and I add add_subdirectory(ext/glfw)
in my CMakeList.txt
I tried too put BUILD_SHARED_LIBS ON
in mc_mujoco but in all cases I got the same error.
In my project I reference mc_mujoco as follows:
CMakeList.txt
find_package(mc_mujoco REQUIRED)
target_link_libraries(run_function PUBLIC mc_mujoco::mc_mujoco)
I will appreciate your comments, thanks in advance.
Are you able to build mc_mujoco
separately? Do a fresh clone of mc_mujoco
and please try to build it.
yes, I can build mc_mujoco
separately.
can you try to add any project in your CMakeList.txt
and compile it?:
find_package(mc_mujoco REQUIRED)
target_link_libraries(run_function PUBLIC mc_mujoco::mc_mujoco)
yes, I can build mc_mujoco separately.
This means the problem is most probably not related to mc_mujoco
. To be sure, I think you can checkout to an older version of mc_mujoco
where things were working for you.
find_package(mc_mujoco REQUIRED) target_link_libraries(run_function PUBLIC mc_mujoco::mc_mujoco)
These two lines are probably not the cause of problems in your case.
Hi @N1ckfm
I have confirmed the issue and fixed it with the commit above
Ah... so it was indeed a issue in mc-mujoco. Sorry about that! :smile:
Hi, when I compile my project using the last version of mc_mujoco it doesn't find reference to several glfw files. (mc_mujoco compile and install fine) I will appreciate if you can give me some ideas. Thanks