Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot specify link libraries for target "node_name" which is not built by this project.

I'm trying to use opencv on kinetic. As per 4.1 on this wiki, I had to add a dependency on opencv2 and find_package in the CMakeLists.txt [instructions here].

This is my edited CMakeList.txt. I'm getting ''Cannot specify link libraries for target "pc_side" which is not built by this project'' when trying to catkin_make,

cmake_minimum_required(VERSION 2.8.3)
project(pc_side)

find_package(catkin REQUIRED COMPONENTS
  sensor_msgs
  cv_bridge
  rospy
  std_msgs
)

find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(pc_side ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

catkin_package()
include_directories(
  ${catkin_INCLUDE_DIRS}
)

Cannot specify link libraries for target "node_name" which is not built by this project.

I'm trying to use opencv on kinetic. As per 4.1 on this wiki, I had to add a dependency on opencv2 and find_package in the CMakeLists.txt [instructions here].

This is my edited CMakeList.txt. I'm getting ''Cannot specify link libraries for target "pc_side" which is not built by this project'' when trying to catkin_make,

cmake_minimum_required(VERSION 2.8.3)
project(pc_side)

find_package(catkin REQUIRED COMPONENTS
  sensor_msgs
  cv_bridge
  rospy
  std_msgs
)

find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(pc_side ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

catkin_package()
include_directories(
  ${catkin_INCLUDE_DIRS}
)

Cannot specify link libraries for target "node_name" which is not built by this project.

I'm trying to use opencv on kinetic. As per 4.1 on this wiki, I had to add a dependency on opencv2 and find_package in the CMakeLists.txt [instructions here].

This is my edited CMakeList.txt. I'm getting ''Cannot getting

'CMake Error at pc_side/CMakeLists.txt:19 (target_link_libraries): Cannot specify link libraries for target "pc_side" which is not built by by this project'' project.

-- Configuring incomplete, errors occurred! See also "/home/user/raspi/build/CMakeFiles/CMakeOutput.log". See also "/home/user/raspi/build/CMakeFiles/CMakeError.log". Makefile:906: recipe for target 'cmake_check_build_system' failed make: * when trying to catkin_make,[cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

cmake_minimum_required(VERSION 2.8.3)
project(pc_side)

find_package(catkin REQUIRED COMPONENTS
  sensor_msgs
  cv_bridge
  rospy
  std_msgs
)

find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(pc_side ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

catkin_package()
include_directories(
  ${catkin_INCLUDE_DIRS}
)

Cannot specify link libraries for target "node_name" which is not built by this project.

I'm trying to use opencv on kinetic. As per 4.1 on this wiki, I had to add a dependency on opencv2 and find_package in the CMakeLists.txt [instructions here].

This is my edited CMakeList.txt. I'm getting

 'CMake Error at pc_side/CMakeLists.txt:19 (target_link_libraries):
  Cannot specify link libraries for target "pc_side" which is not built by
  this project.

project.

-- Configuring incomplete, errors occurred! See also "/home/user/raspi/build/CMakeFiles/CMakeOutput.log". See also "/home/user/raspi/build/CMakeFiles/CMakeError.log". Makefile:906: recipe for target 'cmake_check_build_system' failed make: * *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failedfailed

CMakeLists.txt

cmake_minimum_required(VERSION 2.8.3)
project(pc_side)

find_package(catkin REQUIRED COMPONENTS
  sensor_msgs
  cv_bridge
  rospy
  std_msgs
)

find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(pc_side ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

catkin_package()
include_directories(
  ${catkin_INCLUDE_DIRS}
)