Skip to content

Commit

Permalink
Improvement including OpenNI2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianoJT88 committed Jan 16, 2015
1 parent 761a44c commit 153e739
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}" )
Expand Down
6 changes: 1 addition & 5 deletions scene_flow_visualization.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@
#include <Eigen/src/Core/Matrix.h>
#include "pdflow_cudalib.h"
#include "legend_pdflow.xpm"
#ifdef _WIN32
#include <OpenNI.h>
#elif __linux
#include <openni2/OpenNI.h>
#endif
#include <OpenNI.h>

#ifdef _WIN32
inline float log2(const float x){ return log(x) * M_LOG2E;}
Expand Down

0 comments on commit 153e739

Please sign in to comment.