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

colcon build infinite after 66% done #14

Open
Dan010123 opened this issue Jul 23, 2023 · 1 comment
Open

colcon build infinite after 66% done #14

Dan010123 opened this issue Jul 23, 2023 · 1 comment

Comments

@Dan010123
Copy link

Dan010123 commented Jul 23, 2023

Hi!
I use ROS2 Humble on WSL Ubuntu witn Intel i5-10600K processor.
tried several times to build with colcon build --symlink-install --packages-select orbslam3
last time was waiting for 1 hour, but nothing happaned, it stuck on 66%
I tried to verbose the output with
colcon build --symlink-install --packages-select orbslam3 --event-handlers console_direct+ --cmake-args -DCMAKE_VERBOSE_MAKEFILE=ON

And after 2 hours i got "c++: fatal error: Killed signal terminated program cc1plus"

**
....
....
/home/dan/ros2_ws/src/orbslam3_ros2/src/stereo-inertial/stereo-inertial.cpp: In function ‘int main(int, char**)’:
/home/dan/ros2_ws/src/orbslam3_ros2/src/stereo-inertial/stereo-inertial.cpp:22:19: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
22 | argv[4] = "false";
| ^~~~~~~
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [CMakeFiles/stereo-inertial.dir/build.make:93: CMakeFiles/stereo-inertial.dir/src/stereo-inertial/stereo-inertial-node.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:224: CMakeFiles/stereo-inertial.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: CMakeFiles/stereo.dir/src/stereo/stereo-slam-node.cpp.o: undefined reference to symbol 'ZN2cv23initUndistortRectifyMapERKNS_11_InputArrayES2_S2_S2_NS_5Size_IiEEiRKNS_12_OutputArrayES7'
/usr/bin/ld: /lib/x86_64-linux-gnu/libopencv_calib3d.so.4.5d: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/stereo.dir/build.make:221: stereo] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:198: CMakeFiles/stereo.dir/all] Error 2
gmake: *** [Makefile:149: all] Error 2

Failed <<< orbslam3 [2h 0min 27s, exited with code 2]
Summary: 0 packages finished [2h 0min 36s]

**
and when trying to bult it again I get error

usr/bin/ld: CMakeFiles/stereo.dir/src/stereo/stereo-slam-node.cpp.o: undefined reference to symbol 'ZN2cv23initUndistortRectifyMapERKNS_11_InputArrayES2_S2_S2_NS_5Size_IiEEiRKNS_12_OutputArrayES7'
/usr/bin/ld: /lib/x86_64-linux-gnu/libopencv_calib3d.so.4.5d: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

What could be wrong?
Thanks!

@KamalanathanN
Copy link

Had this same issue, adding opencv arguments in CMakeLists.txt as mentioned here : alsora/ros2-ORB_SLAM2#8 worked for me.

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