- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was able to build the examples and see the camera functions.
I went to build the tools and this is the error I received.
/usr/bin/x86_64-linux-gnu-ld: CMakeFiles/realsense-viewer.dir/realsense-viewer.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
realsense-viewer/CMakeFiles/realsense-viewer.dir/build.make:227: recipe for target 'realsense-viewer/realsense-viewer' failed
make[2]: *** [realsense-viewer/realsense-viewer] Error 1
CMakeFiles/Makefile2:250: recipe for target 'realsense-viewer/CMakeFiles/realsense-viewer.dir/all' failed
make[1]: *** [realsense-viewer/CMakeFiles/realsense-viewer.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
- Tags:
- Intel® RealSense
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Answering my own question.
A file named CMakeLists.txt
contains line
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
and it needs to be
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
Adding the pthread option fixes the error.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Answering my own question.
A file named CMakeLists.txt
contains line
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
and it needs to be
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
Adding the pthread option fixes the error.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page