librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

undefined

Open GloriousTan opened this issue 8 years ago • 4 comments

Required Info
Camera Model { D400 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Ubuntu 16
Kernel Version (Linux Only) (4.13.0)
Platform PC
SDK Version { legacy / 2.<10>.<4> }

Issue Description

I copy the code in /wrappers/opencv/imshow/rs-imshow.cpp, and paste in KDevelop on Ubuntu 16.04. And the CMakeLists.txt is as followed:

cmake_minimum_required(VERSION 3.1.0) project(rs-app) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") find_package(OpenCV REQUIRED) include_directories(${OpenCV_INCLUDE_DIRS} ) include_directories(rs-app /usr/include/librealsense2 /usr/local/include) add_executable(rs-app depth.cpp ) target_link_libraries(rs-app ${OpenCV_LIBS} ${DEPENDENCIES} )

When I build the project, there are a lot errors like : undefined reference to 'rs2_start_processing'

Should I rewrite the CMakeLists.txt? Can you give me some advice on how to change the CMakeLists.txt? Thanks a lot!

GloriousTan avatar Apr 28 '18 05:04 GloriousTan

[Realsense Customer Engineering Team Comment] Google “cmake undefined reference to”

[Realsense Customer Engineering Team Comment] @Destinyzc Is the issue resolved?

[Realsense Customer Engineering Team Comment] @Destinyzc Any update about this issue? If not, we will close it in 5 days.

[Realsense Customer Engineering Team Comment] @Destinyzc Didn't get update from you. Will close this ticket now. If you still have issues, please create another one. Thanks!