ros2 / openrobotics_darknet_ros

ROS 2 interface to darknet, an open source neural network library.
Apache License 2.0
19 stars 13 forks source link

Fix for undefined python references #5

Open telemething opened 3 years ago

telemething commented 3 years ago

In CMakeLists.txt

Add these lines:

find_package(PythonInterp REQUIRED) find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")

Modify this line:

target_link_libraries(detector_node_main detector_node ${PYTHON_LIBRARIES})