intel / collision-avoidance-library

A framework for testing and benchmarking collision avoidance strategies
Apache License 2.0
81 stars 39 forks source link

Build: librealsense on non-default path #38

Closed mbelluzzo closed 7 years ago

mbelluzzo commented 7 years ago

Cmake found the lib, but I dont think that REALSENSE_INCLUDE_DIR in the compile line:

cmake:

-- Found REALSENSE: /home/murilo/root/include  
-- REALSENSE_INCLUDE_DIR = /home/murilo/root/include
-- REALSENSE_LIBRARY = /home/murilo/root/lib64/librealsense.so

make VERBOSE=1

[ 41%] Building CXX object sensors/CMakeFiles/sensors.dir/RealSenseCamera.cc.o
cd /home/murilo/projects/vision/coav-intel/collision-avoidance-library/build/sensors && /usr/bin/c++   -DLIBBULLET_VERSION=2.85 -DLIBBULLET_VERSION_GT_282 -I/home/murilo/projects/vision/coav-intel/collision-avoidance-library -I/usr/local/include -I/usr/local/include/gazebo-8 -I/usr/include/bullet -I/usr/local/include/sdformat-4.1 -I/usr/local/include/ignition/math2 -I/usr/include/OGRE -I/usr/include/OGRE/Terrain -I/usr/include/OGRE/Paging -I/home/murilo/projects/vision/coav-intel/collision-avoidance-library/interfaces  -fstack-protector-all -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -std=c++11  -Wall   -std=gnu++11 -o CMakeFiles/sensors.dir/RealSenseCamera.cc.o -c /home/murilo/projects/vision/coav-intel/collision-avoidance-library/sensors/RealSenseCamera.cc
In file included from /home/murilo/projects/vision/coav-intel/collision-avoidance-library/sensors/RealSenseCamera.cc:20:0:
/home/murilo/projects/vision/coav-intel/collision-avoidance-library/sensors/RealSenseCamera.hh:18:31: fatal error: librealsense/rs.hpp: No such file or directory
 #include <librealsense/rs.hpp>
                               ^

Also checked the directory itself and the folder/file is there.

rchiossi commented 7 years ago

@mbelluzzo can you test if PR #39 solves the problem?

mbelluzzo commented 7 years ago

PR #40 does, closing this.