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

Build failed when VISP is installed from source code #129

Open
jifu23 opened this issue Aug 19, 2023 · 6 comments
Open

Build failed when VISP is installed from source code #129

jifu23 opened this issue Aug 19, 2023 · 6 comments

Comments

@jifu23
Copy link

jifu23 commented Aug 19, 2023

Hi, I got a problem when I was building this repo.
Environment: ubuntu 22.04, ROS rolling.
When the VISP used in ros is installed from the latest source code, I get the following error when building vision_visp:

$ colcon build --symlink-install
Starting >>> visp_bridge
Starting >>> visp_tracker
Finished <<< visp_bridge [8.78s]
Starting >>> visp_camera_calibration
Starting >>> visp_hand2eye_calibration
--- stderr: visp_camera_calibration
CMake Error at CMakeLists.txt:45 (add_executable):
Target "visp_camera_calibration_calibrator" links to target "Boost::system"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:45 (add_executable):
Target "visp_camera_calibration_calibrator" links to target "Boost::thread"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:64 (add_executable):
Target "visp_camera_calibration_image_processing" links to target
"Boost::system" but the target was not found. Perhaps a find_package()
call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:64 (add_executable):
Target "visp_camera_calibration_image_processing" links to target
"Boost::thread" but the target was not found. Perhaps a find_package()
call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:84 (add_executable):
Target "visp_camera_calibration_camera" links to target "Boost::system" but
the target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:84 (add_executable):
Target "visp_camera_calibration_camera" links to target "Boost::thread" but
the target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?

CMake Generate step failed. Build files cannot be regenerated correctly.

Failed <<< visp_camera_calibration [2.04s, exited with code 1]
Aborted <<< visp_hand2eye_calibration [2.03s]
Aborted <<< visp_tracker [29.9s]

Summary: 1 package finished [30.1s]
1 package failed: visp_camera_calibration
2 packages aborted: visp_hand2eye_calibration visp_tracker
3 packages had stderr output: visp_camera_calibration visp_hand2eye_calibration visp_tracker
2 packages not processed

But, when the VISP is installed via sudo apt-get install ros-rolling-visp, I didn't get these error. I would like to know why this is happening and how to fix it.
Thank you!

@jifu23
Copy link
Author

jifu23 commented Aug 19, 2023

I solved it by explicitly linking against Boost work mentioned in https://github.com/lagadic/visp/issues/780. But I got a new problem:

--- stderr: visp_tracker
Bagfile installed in /home/jifu/ros_ws/rolling/visp_ws/install/visp_tracker/share/bag/tutorial-static-box
/bin/sh: 1: rosbags-convert: not found
gmake[2]: *** [CMakeFiles/external_bag.dir/build.make:120: externals/src/external_bag-stamp/external_bag-patch] Error 127
gmake[1]: *** [CMakeFiles/Makefile2:746: CMakeFiles/external_bag.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2

Failed <<< visp_tracker [38.1s, exited with code 2]

@ZxinZzz
Copy link

ZxinZzz commented Oct 10, 2023

I have same question, did you resolve it?

@fspindle
Copy link
Contributor

Are you building the rolling branch ?

@ZxinZzz
Copy link

ZxinZzz commented Oct 17, 2023

你在建立分支吗?rolling

yes

@yuxuanfanOrion
Copy link

I solved it by explicitly linking against Boost work mentioned in https://github.com/lagadic/visp/issues/780. But I got a new problem:

--- stderr: visp_tracker

Bagfile installed in /home/jifu/ros_ws/rolling/visp_ws/install/visp_tracker/share/bag/tutorial-static-box
/bin/sh: 1: rosbags-convert: not found
gmake[2]: *** [CMakeFiles/external_bag.dir/build.make:120: externals/src/external_bag-stamp/external_bag-patch] Error 127
gmake[1]: *** [CMakeFiles/Makefile2:746: CMakeFiles/external_bag.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2
Failed <<< visp_tracker [38.1s, exited with code 2]

I met the same question, have you solved it?

@Marco19987
Copy link

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

5 participants