-
Notifications
You must be signed in to change notification settings - Fork 884
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
Compiling with -DmjUSESINGLE is broken due to type error in engine_collision_convex.c #2070
Comments
I think you can add it e.g. here ? |
I did try adding it there but from memory it didn't seem to propagate to some of the dependencies. I'll try it again. |
No, it doesn't work... Please reopen ! |
Okay, in that case this a different bug. I will rename and assign. |
So the issue is actually a documentation bug. The |
I don't think it is a doc issue. libccd is not built separately, it's included in the mujoco tree, so I would have expected it to be reconfigured appropriately when using mjUSESINGLE. |
My work-around fix was to change build/_deps/ccd-build/src/ccd/config.h after running cmake. |
If you know cmake well (I don't), do you know how to properly propagate We'd very much appreciate a PR for this! |
Configuring libccd can be done by changing the value set(ENABLE_DOUBLE_PRECISION ON) to set(ENABLE_DOUBLE_PRECISION OFF) in mujoco/cmake/MuJoCoDependencies.cmake With this change (and setting mjUSESINGLE in top CMakeLists.txt) the library builds but the tests still don't build. |
@PeterOGB an proposal to simplify this process is available at #2278, feel free to provide feedback if you like. |
Intro
New mujoco user here, I'm a retired software engineer with 40 years C/unix/linux experience.
I'm trying to integrate mujoco into an existing application that runs on a Raspberry Pi5 and uses openGLES for rendering and gclm for maths.
My setup
Raspberry Pi 5 running wayland on top of 64 bit PiOS (Debian 12).
cmake version 3.25.1
gcc (Debian 12.2.0-14) 12.2.0
What's happening? What did you expect?
I want to build mujoco with mjtNum as float rather than double so as to more easily into existing appliacation.
I've tried adding -DmjUSESINGLE to the initial cmake command but it has no effect and cmake actually warns that "Manually-specified variables were not used by the project: mjUSESINGLE".
I expected the resulting library to use floats, but it still uses doubles.
Steps for reproduction
clone mujoco
cd mujoco
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX="/usr/local" -DmjUSESINGLE=On
Minimal model for reproduction
No response
Code required for reproduction
No response
Confirmations
The text was updated successfully, but these errors were encountered: