-
Notifications
You must be signed in to change notification settings - Fork 747
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
I'm trying to inlcude mujoco into my own CMakeLists.txt for my project and I'm getting lots of undefined reference
errors
#402
Comments
CMake doesn't add dependencies transitively, so you need to
|
@saran-t I've tried a few variations and I get the same error as in the original post. I'd prefer to have a clear answer either way, that I can bring the working library into a CMakeLists.txt or I can't. Maybe it's something coming in the future? |
Also, you shouldn't need Are you actually using the GUI? If not then you shouldn't need |
I assume you mean I ended up installing glfw by cloning the glfw repo and building from source. I included it in my CMakeLists.txt with the code below.
The glfw I think I only have
|
When you place |
where can I find the file of uitools.h and uitools.c |
These makefiles are old and unsupported. You can fix them and send a PR or we can just delete them. @saran-t has been wanting to delete them for a while... |
ok, Thank you very much |
These are no longer needed, as the open-source build uses CMake. PiperOrigin-RevId: 648340374 Change-Id: Ibc704ca3aaab1c48d245e24b071bed6cd846c110
I built and installed MuJoCo from source on my Linux machine. I am able to include mujoco in my C++ and it looks like not every part of mujoco I try to use throws an error but many do.
Here is my CMakeLists.txt
$cmake ..
completes without errors butcmake --build .
causes these errorsMy C++ file is one from the sample directory in the repo. It's large and could be any sample .cc file in the repo so I am not including.
I know MuJoCo installed on my machine in various paths under /usr/local and I have included every path I can think of from the mujoco repo I have downloaded so it's not clear to me why I can't include the library and build with cmake.
The text was updated successfully, but these errors were encountered: