catkin build cannot find ncurses library

asked 2019-12-06 07:48:33 -0600

shiraz_baig gravatar image

updated 2019-12-06 07:56:14 -0600

gvdhoorn gravatar image

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

edit retag flag offensive close merge delete