libPointCloud icon indicating copy to clipboard operation
libPointCloud copied to clipboard

Question on the source file compilation.

Open ygling2008 opened this issue 6 years ago • 1 comments

Hi~ I follow the readme instruction on the github to setup the camera. However, I meet issues while running the '3) make' step, the shown message is as follows:

[ 25%] Linking CXX executable ../../bin/ExtractRawData /home/rolandling/libPointCloud/./libs/ubuntu/lib/libpointcloud.so: undefined reference to std::thread::_State::~_State()@GLIBCXX_3.4.22' /home/rolandling/libPointCloud/./libs/ubuntu/lib/libpointcloud.so: undefined reference to typeinfo for std::thread::_State@GLIBCXX_3.4.22' /home/rolandling/libPointCloud/./libs/ubuntu/lib/libpointcloud.so: undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_deletestd::thread::_State >, void (*)())@GLIBCXX_3.4.22' collect2: error: ld returned 1 exit status examples/ExtractRawData/CMakeFiles/ExtractRawData.dir/build.make:94: recipe for target 'bin/ExtractRawData' failed make[2]: *** [bin/ExtractRawData] Error 1 CMakeFiles/Makefile2:85: recipe for target 'examples/ExtractRawData/CMakeFiles/ExtractRawData.dir/all' failed make[1]: *** [examples/ExtractRawData/CMakeFiles/ExtractRawData.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Could you help and solve this issue?

ygling2008 avatar Dec 19 '19 08:12 ygling2008

I came across something similar on Ubuntu 16.04.6. I switched from the default gcc-5 (5.5.0) to gcc-6 (6.5.0) and the problem went away. On Ubuntu 18.04, the problem did not occur at all and I presume that the problem is likely caused by the gcc compiler. However, I did run into some other issue when running these sample programs after successful compilation.

kwchow avatar Jan 09 '20 08:01 kwchow