Skip to content

catkin make fails jetson nano opencv 4.0 #225

@jorgemiar

Description

@jorgemiar

I'm working on a Jetson Nano which comes with openCV 4.0, so tried to get darknet_ros working by using the changes in PR #202 . When running catkin make I get the following errors:

/usr/bin/ld: cannot find -lcudart
/usr/bin/ld: cannot find -lcublas
/usr/bin/ld: cannot find -lcurand
collect2: error: ld returned 1 exit status
darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/build.make:1961: recipe for target '/home/jorge/catkin_ws/devel/lib/libdarknet_ros_lib.so' failed
make[2]: *** [/home/jorge/catkin_ws/devel/lib/libdarknet_ros_lib.so] Error 1
CMakeFiles/Makefile2:3141: recipe for target 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/all' failed
make[1]: *** [darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

I hard coded the location of cuda in the CMakeLists file which solved the problem, but @kunaltyagi advised against this. Any ideas how to go about fixing this?

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