Robotics StackExchange | Archived questions

Error linking libccd

I have a problem compiling a project that uses FCL and libccd, both of which are compiled from source and make installed. All the the libraries seem to be in the proper place, but I still get the following error:

/usr/bin/ld: CMakeFiles/test_01_mrkr.dir/src/test_01_mrkr.cpp.o: undefined reference to symbol 'ccd_vec3_origin'
/usr/local/lib/libccd.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
geo_devel/CMakeFiles/test_01_mrkr.dir/build.make:170: recipe for target '/home/jwatson/asm_seq_plan_3d/devel/lib/geo_devel/test_01_mrkr' failed
make[2]: *** [/home/jwatson/asm_seq_plan_3d/devel/lib/geo_devel/test_01_mrkr] Error 1
CMakeFiles/Makefile2:528: recipe for target 'geo_devel/CMakeFiles/test_01_mrkr.dir/all' failed
make[1]: *** [geo_devel/CMakeFiles/test_01_mrkr.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

I should also add that I took care to remove the ROS version of FCL.

Asked by jwatson_utah_edu on 2017-08-17 23:06:17 UTC

Comments

Answers

you may forget to add the lib in the link section of the binary bild. because you are able to compile bot not to Link.

with c++ always the first error metters.

Asked by duck-development on 2020-03-09 15:58:05 UTC

Comments