Hi @theJenix , trying to compile rrtstar on Ubuntu 14.04 box, I've successfully complied lcmtypes and viewer, but the make command on rrtstar results in:
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'lcm'
-- found lcm, version 1.3.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/diablo/rrtstar/rrtstar/pod-build
Scanning dependencies of target rrtstar
[ 33%] Building CXX object src/CMakeFiles/rrtstar.dir/rrts_main.cpp.o
[ 66%] Building CXX object src/CMakeFiles/rrtstar.dir/system_single_integrator.cpp.o
[100%] Building C object src/CMakeFiles/rrtstar.dir/kdtree.c.o
Linking CXX executable ../bin/rrtstar
/usr/bin/ld: /home/diablo/rrtstar/build/lib/liblcmtypes_lcmtypes.a(lcmtypes_trajectory_t.c.o): undefined reference to symbol 'lcm_unsubscribe'
/usr/local/lib/liblcm.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: * [bin/rrtstar] Error 1
make[2]: * [src/CMakeFiles/rrtstar.dir/all] Error 2
make[1]: * [all] Error 2
make: * [all] Error 2
diablo@enterprize:~/rrtstar/rrtstar$ sudo make
[sudo] password for diablo:
Linking CXX executable ../bin/rrtstar
/usr/bin/ld: /home/diablo/rrtstar/build/lib/liblcmtypes_lcmtypes.a(lcmtypes_trajectory_t.c.o): undefined reference to symbol 'lcm_unsubscribe'
/usr/local/lib/liblcm.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: * [bin/rrtstar] Error 1
make[2]: * [src/CMakeFiles/rrtstar.dir/all] Error 2
make[1]: * [all] Error 2
make: * [all] Error 2
diablo@enterprize:~/rrtstar/rrtstar$ sudo make^C
diablo@enterprize:~/rrtstar/rrtstar$ make -lz
Linking CXX executable ../bin/rrtstar
/usr/bin/ld: /home/diablo/rrtstar/build/lib/liblcmtypes_lcmtypes.a(lcmtypes_trajectory_t.c.o): undefined reference to symbol 'lcm_unsubscribe'
/usr/local/lib/liblcm.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: * [bin/rrtstar] Error 1
make[2]: * [src/CMakeFiles/rrtstar.dir/all] Error 2
make[1]: * [all] Error 2
make: * [all] Error 2
Hi @theJenix , trying to compile rrtstar on Ubuntu 14.04 box, I've successfully complied lcmtypes and viewer, but the make command on rrtstar results in:
BUILD_PREFIX:` /home/diablo/rrtstar/rrtstar/../build
-- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for module 'lcm' -- found lcm, version 1.3.1 -- Configuring done -- Generating done -- Build files have been written to: /home/diablo/rrtstar/rrtstar/pod-build Scanning dependencies of target rrtstar [ 33%] Building CXX object src/CMakeFiles/rrtstar.dir/rrts_main.cpp.o [ 66%] Building CXX object src/CMakeFiles/rrtstar.dir/system_single_integrator.cpp.o [100%] Building C object src/CMakeFiles/rrtstar.dir/kdtree.c.o Linking CXX executable ../bin/rrtstar /usr/bin/ld: /home/diablo/rrtstar/build/lib/liblcmtypes_lcmtypes.a(lcmtypes_trajectory_t.c.o): undefined reference to symbol 'lcm_unsubscribe' /usr/local/lib/liblcm.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[3]: * [bin/rrtstar] Error 1 make[2]: * [src/CMakeFiles/rrtstar.dir/all] Error 2 make[1]: * [all] Error 2 make: * [all] Error 2 diablo@enterprize:~/rrtstar/rrtstar$ sudo make [sudo] password for diablo: Linking CXX executable ../bin/rrtstar /usr/bin/ld: /home/diablo/rrtstar/build/lib/liblcmtypes_lcmtypes.a(lcmtypes_trajectory_t.c.o): undefined reference to symbol 'lcm_unsubscribe' /usr/local/lib/liblcm.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[3]: * [bin/rrtstar] Error 1 make[2]: * [src/CMakeFiles/rrtstar.dir/all] Error 2 make[1]: * [all] Error 2 make: * [all] Error 2 diablo@enterprize:~/rrtstar/rrtstar$ sudo make^C diablo@enterprize:~/rrtstar/rrtstar$ make -lz Linking CXX executable ../bin/rrtstar /usr/bin/ld: /home/diablo/rrtstar/build/lib/liblcmtypes_lcmtypes.a(lcmtypes_trajectory_t.c.o): undefined reference to symbol 'lcm_unsubscribe' /usr/local/lib/liblcm.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[3]: * [bin/rrtstar] Error 1 make[2]: * [src/CMakeFiles/rrtstar.dir/all] Error 2 make[1]: * [all] Error 2 make: * [all] Error 2
any solution?