ROSTutorialsWritingPublisherSubscriber(c++) : cannot make files
Hi
I am trying to complete the tutorial : ROSTutorialsWritingPublisherSubscriber(c++), using ROSbuild (Jade).
When I enter the make command, the error below pops up:
Linking CXX executable ../bin/talker
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libboost_signals.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libboost_filesystem.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/liblog4cxx.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libboost_regex.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libboost_date_time.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libboost_system.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libboost_thread.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libpthread.so
/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libconsole_bridge.so
collect2: error: ld returned 1 exit status
CMakeFiles/talker.dir/build.make:108: recipe for target '../bin/talker' failed
make[3]: *** [../bin/talker] Error 1
make[3]: Leaving directory '/home/mingfai_yee/jade_workspace/sandbox/beginner_tutorials/build'
CMakeFiles/Makefile2:591: recipe for target 'CMakeFiles/talker.dir/all' failed
make[2]: *** [CMakeFiles/talker.dir/all] Error 2
make[2]: Leaving directory '/home/mingfai_yee/jade_workspace/sandbox/beginner_tutorials/build'
Makefile:117: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/mingfai_yee/jade_workspace/sandbox/beginner_tutorials/build'
/opt/ros/jade/share/mk/cmake.mk:7: recipe for target 'all' failed
make: *** [all] Error 2
It seems some library files are missing from gnu directory.
I tried sudo apt-get install build-essential
and it seems the GNU GCC is up-to-date.
Appreciate any tips.
Thank you
Asked by Ming Fai on 2015-10-18 01:30:38 UTC
Comments
Please tell us how you installed ROS: from sources, using the debians, etc. Also: which OS is this, and which version?
From the error, it looks like either your
CMakeLists.txt
is not setup correctly, or some (core) dependencies are not correctly installed.Asked by gvdhoorn on 2015-10-18 05:15:28 UTC
Hi:
My OS is Ubuntu 15.04, installed using the debians, following the Wiki page "jade/ Installation/Ubuntu.
Asked by Ming Fai on 2015-10-19 10:19:21 UTC