Opencv no rule to make target
I am trying out the example to convert ros image to opencv image from here. I am creating a new package roscv_conv
and using a zed camera with ros indigo, on a Jetson tx1
, to get this done (I will probably have to edit the topic being subscribed to , given in the example). I have installed OpenCV4Tegra (version 2.4.12.2). But my current issue is that I am receiving the following error during catkin_make
:
make[2]: *** No rule to make target `/usr/lib/arm-linux-gnueabihf/libopencv_videostab.so.2.4.8', needed by `/home/ubuntu/tst_ws/devel/lib/roscv_conv/roscv_conv_node'. Stop.
make[1]: *** [roscv_conv/CMakeFiles/roscv_conv_node.dir/all] Error 2
My CMakeLists.txt
looks like this:
cmake_minimum_required(VERSION 2.8.3)
project(roscv_conv)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
roscpp
sensor_msgs
std_msgs
)
find_package(OpenCV REQUIRED)
catkin_package(
CATKIN_DEPENDS cv_bridge image_transport roscpp sensor_msgs std_msg
)
include_directories(
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_executable(roscv_conv_node src/roscv_conv_node.cpp)
target_link_libraries(roscv_conv_node
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)
add_dependencies(roscv_conv_node sensor_msgs_generate_messages_cpp std_msgs_generate_messages_cpp)
Also, I have the following lines in my package.xml
:
<build_depend>OpenCV</build_depend>
<run_depend>OpenCV</run_depend>
How do I fix this issue? I believe it has nothing to do with the actual code inside the src folder.