Skip to content

Build failed when VISP is installed from source code #129

@jifu23

Description

@jifu23

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions