-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add configuration for ARGOS_USE_DOUBLE #6
Comments
A cleaner solution would be to augment the ARGoS pkgconfig file with the flags that are necessary for a correct compilation. |
I don't have a strong opinion here. I've never had a close look at pkg-config although at a glance it doesn't seem to do anything that we can't already do in CMake. In any case, let me know once there is a solution for defining |
The issue with the purely CMake-based solution that matches |
Fair enough, let's continue with pkg-config solution. I currently have: prefix=/usr/local
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib/argos3
Name: argos3_simulator
Description: ARGoS (multi-physics multi-robot simulator)
Version: 3.0.0-beta57
Cflags: -I${includedir} -Wno-unknown-pragmas
Libs: -Wl,--no-as-needed -L${libdir} -largos3core_simulator How do we go about adding variables such as |
To add a dynamics3d model to this repository, we need to correctly identify whether argos3_simulator was built with
ARGOS_USE_DOUBLE
set or not. Without knowing this, Bullet defaults to using 32-bit floats while the rest of the physics engine is using 64-bit floats, leading to errors such as:My approach to detecting settings is as follows:
In my repositories, I also read a whole bunch of other settings from config.h (see ARGoSBuildOptions.cmake for details). Once this issue is fixed, I will open a PR for dynamics3d model.
The text was updated successfully, but these errors were encountered: