diff --git a/CMakeLists.txt b/CMakeLists.txt index 699c73d..8a65854 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,10 @@ IF (BUILD_RT_VISUALIZATION) ENDIF (WIN32) IF (UNIX) - SET(OpenNI_lib "/usr/lib/libOpenNI2.so") + SET(OpenNI2_libdir "/usr/lib") + INCLUDE_DIRECTORIES("/usr/include/openni2") + LINK_DIRECTORIES(${OpenNI2_libdir}) + SET(OpenNI_lib "${OpenNI2_libdir}/libOpenNI2.so") ENDIF (UNIX) message( "esto vale $ENV{OPENNI2_INCLUDE}" ) diff --git a/scene_flow_visualization.h b/scene_flow_visualization.h index 66f3393..df7dd4b 100644 --- a/scene_flow_visualization.h +++ b/scene_flow_visualization.h @@ -28,11 +28,7 @@ #include #include "pdflow_cudalib.h" #include "legend_pdflow.xpm" -#ifdef _WIN32 - #include -#elif __linux - #include -#endif +#include #ifdef _WIN32 inline float log2(const float x){ return log(x) * M_LOG2E;}