Ask Your Question

Revision history [back]

catkin build cannot find ncurses library

I used find_package(Curses REQUIRED) include_directories(${CURSES_INCLUDE_DIR}) Also added target_link_libraries(minimal_curses ${CURSES_LIBRARIES} ${catkin_LIBRARIES} )

It works for catkin_make. But does not work catkin build. I manually added lcurses by goting to ~/catkin_ws/build/my_tutorials/CMakeFiles/listen_curses.dir Then I edited link.txt in this folder. Added -lcurses to it. Then it compiled it. But rosrun cannot find it. Question is how to compile my curses programs with catkin build

catkin build cannot find ncurses library

I used used

find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
Also added 
target_link_libraries(minimal_curses ${CURSES_LIBRARIES}
   ${catkin_LIBRARIES}
 )

)

It works for catkin_make. But does not work catkin build. I manually added lcurses by goting to ~/catkin_ws/build/my_tutorials/CMakeFiles/listen_curses.dir Then I edited link.txt in this folder. Added -lcurses to it. Then it compiled it. But rosrun cannot find it. Question is how to compile my curses programs with catkin build