Skip to content
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

fatal error LNK1181: missing 'low_pass_filter.lib' #205

Open
zchengw opened this issue Jun 24, 2024 · 1 comment
Open

fatal error LNK1181: missing 'low_pass_filter.lib' #205

zchengw opened this issue Jun 24, 2024 · 1 comment

Comments

@zchengw
Copy link

zchengw commented Jun 24, 2024

I tried to build control_toolbox on Windows (MSVC) (using colcon build)
It gives me this LNK1181 error.

Building Custom Rule C:/Program Files/ros2_ws/src/control_toolbox/CMakeLists.txt
test_load_low_pass_filter.cpp                                              
LINK : fatal error LNK1181: �޷��������ļ���Release\low_pass_filter.lib��[C:\ProgramFiles\ros2_ws\build\control_toolbox\test_load_low_pass_filter.vcxproj]
Building Custom Rule C:/Program Files/ros2_ws/src/control_toolbox/CMakeLists.txt                                                                                                               
test_low_pass_filter.cpp
[Processing: control_toolbox]                                                                          
LINK : fatal error LNK1181: �޷��������ļ���Release\low_pass_filter.lib��[C:\ProgramFiles\ros2_ws\build\control_toolbox\test_low_pass_filter.vcxproj]                                                                                                           
Failed   <<< control_toolbox [1min 3s, exited with code 1]   

Anyone knows how to fix this?

@christophfroehlich
Copy link
Contributor

symbols are not exported on windows per default.

The filters are not adapted for windows. One solution is to use visibility macros as we have them in the demos for example
https://github.com/ros-controls/ros2_control_demos/blob/master/example_1/hardware/include/ros2_control_demo_example_1/visibility_control.h

If you have fixed this, feel free to open a PR in this repo.

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