Skip to content

Errors in windows ci build #24

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

Open
ddengster opened this issue Apr 20, 2020 · 3 comments
Open

Errors in windows ci build #24

ddengster opened this issue Apr 20, 2020 · 3 comments

Comments

@ddengster
Copy link

ddengster commented Apr 20, 2020

Link to windows ci log
We're using ROS2.

11:48:04 C:\ci\ws\install\include\angles/angles.h(70,43): error C2065: 'M_PI': undeclared identifier (compiling source file C:\ci\ws\src\ros-controls\ros2_controllers\joint_trajectory_controller\src\joint_trajectory_controller.cpp) [C:\ci\ws\build\joint_trajectory_controller\joint_trajectory_controller.vcxproj]

11:48:04 C:\ci\ws\install\include\angles/angles.h(70,47): error C2661: 'fmod': no overloaded function takes 1 arguments (compiling source file C:\ci\ws\src\ros-controls\ros2_controllers\joint_trajectory_controller\src\joint_trajectory_controller.cpp) [C:\ci\ws\build\joint_trajectory_controller\joint_trajectory_controller.vcxproj]

There seem to be several topics about this on stackoverflow

how should we go about fixing this?

@ddengster
Copy link
Author

Alright i added a _USE_MATH_DEFINES #define to the cmakelists file and got it fixed

@flynneva
Copy link

flynneva commented May 7, 2020

@ddengster running into the same problem. care to share your solution? I've tried to add it myself following what others have done but it doesnt seem to be working.

@ddengster
Copy link
Author

i added the define to the cmakefile

target_compile_definitions(joint_trajectory_controller PRIVATE
  "JOINT_TRAJECTORY_CONTROLLER_BUILDING_DLL" "_USE_MATH_DEFINES")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants