Skip to content

Compilation error when running make on Ubuntu 20.04, undefined reference to `cvLoadImage' #432

@Anchor1566

Description

@Anchor1566

Description:
I'm facing an issue while trying to compile a project using make on an Ubuntu 20.04 system with OpenCV version 3.2.6. The project is related to ROS and specifically the turtlebot3_slam_ws workspace.

The following error messages are shown during the compilation process:

/usr/bin/ld: /home/xun/Desktop/code/ros/turtlebot3_slam_ws/devel/.private/darknet_ros/lib/libdarknet_ros_lib.so: undefined reference to `cvLoadImage'
/usr/bin/ld: /home/xun/Desktop/code/ros/turtlebot3_slam_ws/devel/.private/darknet_ros/lib/libdarknet_ros_lib.so: undefined reference to `cvSaveImage'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/darknet_ros.dir/build.make:237: /home/xun/Desktop/code/ros/turtlebot3_slam_ws/devel/.private/darknet_ros/lib/darknet_ros/darknet_ros] Error 1
make[1]: *** [CMakeFiles/Makefile2:1384: CMakeFiles/darknet_ros.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

System information:

  • Operating system: Ubuntu 20.04
  • OpenCV version: 3.2.6
  • ROS version: noetic
  • Compiler: make

Any help or suggestions on how to resolve this issue would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions