weigao95 / surfelwarp

SurfelWarp: Efficient Non-Volumetric Dynamic Reconstruction
https://sites.google.com/view/surfelwarp/home
BSD 3-Clause "New" or "Revised" License
279 stars 71 forks source link

No package 'libopenni2' found #35

Closed Cartucho closed 4 years ago

Cartucho commented 4 years ago

When I compile the code I get the following message No package 'libopenni2' found

I am on Ubuntu 16.04 and using CUDA 9.0.

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda-9.0 (found suitable version "9.0", minimum required is "9") 
-- Checking for module 'eigen3'
--   No package 'eigen3' found
-- Found eigen: /home/tribta/dev/surfelwarp/external/eigen3.4  
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
--   serialization
--   chrono
--   atomic
--   regex
-- Checking for module 'libopenni'
--   No package 'libopenni' found
-- Found openni: /usr/lib/libOpenNI.so  
-- Checking for module 'libopenni2'
--   No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing:  OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) 
** WARNING ** io features related to openni2 will be disabled
-- Could NOT find ensenso (missing:  ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** io features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing:  DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** io features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing:  _DSSDK_LIBRARIES) 
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- Found libusb-1.0: /usr/include  
** WARNING ** io features related to libusb-1.0 will be disabled
-- Checking for module 'flann'
--   No package 'flann' found
-- Found Flann: /usr/lib/x86_64-linux-gnu/libflann_cpp_s.a  
-- Checking for module 'flann'
--   No package 'flann' found
-- Checking for module 'libopenni'
--   No package 'libopenni' found
-- Checking for module 'libopenni2'
--   No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing:  OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) 
** WARNING ** visualization features related to openni2 will be disabled
-- Could NOT find ensenso (missing:  ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** visualization features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing:  DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** visualization features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing:  _DSSDK_LIBRARIES) 
** WARNING ** visualization features related to dssdk will be disabled
-- Could NOT find RSSDK (missing:  _RSSDK_LIBRARIES) 
** WARNING ** visualization features related to rssdk will be disabled
-- Found qhull: /usr/lib/x86_64-linux-gnu/libqhull.so  
-- looking for PCL_COMMON
-- Found PCL_COMMON: /usr/local/lib/libpcl_common.so  
-- looking for PCL_OCTREE
-- Found PCL_OCTREE: /usr/local/lib/libpcl_octree.so  
-- looking for PCL_IO
-- Found PCL_IO: /usr/local/lib/libpcl_io.so  
-- looking for PCL_KDTREE
-- Found PCL_KDTREE: /usr/local/lib/libpcl_kdtree.so  
-- looking for PCL_SEARCH
-- Found PCL_SEARCH: /usr/local/lib/libpcl_search.so  
-- looking for PCL_SAMPLE_CONSENSUS
-- Found PCL_SAMPLE_CONSENSUS: /usr/local/lib/libpcl_sample_consensus.so  
-- looking for PCL_FILTERS
-- Found PCL_FILTERS: /usr/local/lib/libpcl_filters.so  
-- looking for PCL_2D
-- Found PCL_2D: /usr/local/include/pcl-1.8  
-- looking for PCL_GEOMETRY
-- Found PCL_GEOMETRY: /usr/local/include/pcl-1.8  
-- looking for PCL_FEATURES
-- Found PCL_FEATURES: /usr/local/lib/libpcl_features.so  
-- looking for PCL_ML
-- Found PCL_ML: /usr/local/lib/libpcl_ml.so  
-- looking for PCL_SEGMENTATION
-- Found PCL_SEGMENTATION: /usr/local/lib/libpcl_segmentation.so  
-- looking for PCL_VISUALIZATION
-- Found PCL_VISUALIZATION: /usr/local/lib/libpcl_visualization.so  
-- looking for PCL_SURFACE
-- Found PCL_SURFACE: /usr/local/lib/libpcl_surface.so  
-- looking for PCL_REGISTRATION
-- Found PCL_REGISTRATION: /usr/local/lib/libpcl_registration.so  
-- looking for PCL_KEYPOINTS
-- Found PCL_KEYPOINTS: /usr/local/lib/libpcl_keypoints.so  
-- looking for PCL_TRACKING
-- Found PCL_TRACKING: /usr/local/lib/libpcl_tracking.so  
-- looking for PCL_RECOGNITION
-- Found PCL_RECOGNITION: /usr/local/lib/libpcl_recognition.so  
-- looking for PCL_STEREO
-- Found PCL_STEREO: /usr/local/lib/libpcl_stereo.so  
-- looking for PCL_OUTOFCORE
-- Found PCL_OUTOFCORE: /usr/local/lib/libpcl_outofcore.so  
-- looking for PCL_PEOPLE
-- Found PCL_PEOPLE: /usr/local/lib/libpcl_people.so  
-- Found PCL: /usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_iostreams.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so;optimized;/usr/local/lib/libpcl_common.so;debug;/usr/local/lib/libpcl_common.so;optimized;/usr/local/lib/libpcl_octree.so;debug;/usr/local/lib/libpcl_octree.so;/usr/lib/libOpenNI.so;vtkLocalExample;vtkCommonCore;vtksys;vtkDomainsChemistry;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkFiltersSources;vtkCommonComputationalGeometry;vtkFiltersGeneral;vtkFiltersCore;vtkCommonExecutionModel;vtkIOXML;vtkIOGeometry;vtkIOCore;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libjsoncpp.so;vtkIOXMLParser;/usr/lib/x86_64-linux-gnu/libexpat.so;vtkRenderingCore;vtkCommonColor;vtkFiltersExtraction;vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkFiltersGeometry;vtkRenderingMatplotlib;vtkPythonInterpreter;/usr/lib/x86_64-linux-gnu/libpython2.7.so;vtkRenderingFreeType;/usr/lib/x86_64-linux-gnu/libfreetype.so;vtkftgl;vtkWrappingPythonCore;vtkWrappingTools;vtkTestingIOSQL;vtkIOSQL;sqlite3;vtkIOMINC;vtkFiltersHybrid;vtkImagingSources;vtkIOImage;vtkDICOMParser;vtkmetaio;/usr/lib/x86_64-linux-gnu/libjpeg.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libtiff.so;/usr/lib/x86_64-linux-gnu/libnetcdf_c++.so;/usr/lib/x86_64-linux-gnu/libnetcdf.so;/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib/libhdf5_hl.so;/usr/lib/openmpi/lib/libmpi.so;vtkFiltersParallel;vtkFiltersModeling;vtkParallelCore;vtkIOLegacy;vtkInteractionWidgets;vtkImagingGeneral;vtkImagingHybrid;vtkInteractionStyle;vtkRenderingAnnotation;vtkImagingColor;vtkRenderingVolume;VPIC;vtkInteractionImage;vtkIOParallel;vtkIONetCDF;vtkexoIIc;vtkRenderingParallelLIC;vtkParallelMPI;vtkRenderingLIC;vtkRenderingOpenGL;/usr/lib/x86_64-linux-gnu/libtheoraenc.so;/usr/lib/x86_64-linux-gnu/libtheoradec.so;/usr/lib/x86_64-linux-gnu/libogg.so;vtkImagingStatistics;/usr/lib/libgl2ps.so;vtkIOParallelXML;vtkImagingMath;vtkFiltersAMR;vtkFiltersFlowPaths;vtkTestingGenericBridge;vtkIOImport;vtkIOGeoJSON;vtkViewsContext2D;vtkRenderingContext2D;vtkViewsCore;vtkFiltersGeneric;vtkInfovisLayout;vtkInfovisCore;vtkIOMPIImage;vtkIOLSDyna;vtkIOExodus;vtkRenderingExternal;vtkIOParallelLSDyna;verdict;vtkGeovisCore;vtkproj4;vtkIOPostgreSQL;vtkIOAMR;vtkViewsInfovis;vtkChartsCore;vtkFiltersImaging;vtkRenderingLabel;vtkGUISupportQtWebkit;vtkViewsQt;vtkGUISupportQt;vtkIOXdmf2;vtkxdmf2;/usr/lib/x86_64-linux-gnu/libxml2.so;vtkFiltersParallelMPI;vtkFiltersReebGraph;vtkFiltersParallelImaging;vtkIOGDAL;vtkParallelMPI4Py;vtkIOParallelExodus;vtkFiltersParallelGeometry;vtkRenderingQt;vtkFiltersTexture;vtkIOPLY;vtkIOMPIParallel;vtkFiltersSelection;vtkGUISupportQtSQL;vtkIOExport;vtkRenderingGL2PS;vtkRenderingContextOpenGL;vtkRenderingParallel;vtkIOMySQL;vtkInfovisBoostGraphAlgorithms;vtkFiltersProgrammable;vtkIOFFMPEG;vtkIOMovie;vtkTestingRendering;vtkViewsGeovis;vtkFiltersPython;vtkImagingMorphological;vtkWrappingJava;vtkFiltersSMP;vtkRenderingLOD;vtkFiltersParallelStatistics;vtkIOParallelNetCDF;vtkImagingStencil;vtkGUISupportQtOpenGL;vtkRenderingFreeTypeFontConfig;vtkRenderingFreeTypeOpenGL;vtkIOEnSight;vtkIOVPIC;vtkFiltersHyperTree;vtkIOODBC;vtkIOInfovis;vtkFiltersVerdict;vtkFiltersParallelFlowPaths;vtkRenderingImage;vtkIOVideo;vtkRenderingVolumeOpenGL;optimized;/usr/local/lib/libpcl_io.so;debug;/usr/local/lib/libpcl_io.so;optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;optimized;/usr/local/lib/libpcl_kdtree.so;debug;/usr/local/lib/libpcl_kdtree.so;optimized;/usr/local/lib/libpcl_search.so;debug;/usr/local/lib/libpcl_search.so;optimized;/usr/local/lib/libpcl_sample_consensus.so;debug;/usr/local/lib/libpcl_sample_consensus.so;optimized;/usr/local/lib/libpcl_filters.so;debug;/usr/local/lib/libpcl_filters.so;optimized;/usr/local/lib/libpcl_features.so;debug;/usr/local/lib/libpcl_features.so;optimized;/usr/local/lib/libpcl_ml.so;debug;/usr/local/lib/libpcl_ml.so;optimized;/usr/local/lib/libpcl_segmentation.so;debug;/usr/local/lib/libpcl_segmentation.so;optimized;/usr/local/lib/libpcl_visualization.so;debug;/usr/local/lib/libpcl_visualization.so;optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so;optimized;/usr/local/lib/libpcl_surface.so;debug;/usr/local/lib/libpcl_surface.so;optimized;/usr/local/lib/libpcl_registration.so;debug;/usr/local/lib/libpcl_registration.so;optimized;/usr/local/lib/libpcl_keypoints.so;debug;/usr/local/lib/libpcl_keypoints.so;optimized;/usr/local/lib/libpcl_tracking.so;debug;/usr/local/lib/libpcl_tracking.so;optimized;/usr/local/lib/libpcl_recognition.so;debug;/usr/local/lib/libpcl_recognition.so;optimized;/usr/local/lib/libpcl_stereo.so;debug;/usr/local/lib/libpcl_stereo.so;optimized;/usr/local/lib/libpcl_outofcore.so;debug;/usr/local/lib/libpcl_outofcore.so;optimized;/usr/local/lib/libpcl_people.so;debug;/usr/local/lib/libpcl_people.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_iostreams.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so;optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so;/usr/lib/libOpenNI.so;optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;vtkLocalExample;vtkCommonCore;vtksys;vtkDomainsChemistry;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkFiltersSources;vtkCommonComputationalGeometry;vtkFiltersGeneral;vtkFiltersCore;vtkCommonExecutionModel;vtkIOXML;vtkIOGeometry;vtkIOCore;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libjsoncpp.so;vtkIOXMLParser;/usr/lib/x86_64-linux-gnu/libexpat.so;vtkRenderingCore;vtkCommonColor;vtkFiltersExtraction;vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkFiltersGeometry;vtkRenderingMatplotlib;vtkPythonInterpreter;/usr/lib/x86_64-linux-gnu/libpython2.7.so;vtkRenderingFreeType;/usr/lib/x86_64-linux-gnu/libfreetype.so;vtkftgl;vtkWrappingPythonCore;vtkWrappingTools;vtkTestingIOSQL;vtkIOSQL;sqlite3;vtkIOMINC;vtkFiltersHybrid;vtkImagingSources;vtkIOImage;vtkDICOMParser;vtkmetaio;/usr/lib/x86_64-linux-gnu/libjpeg.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libtiff.so;/usr/lib/x86_64-linux-gnu/libnetcdf_c++.so;/usr/lib/x86_64-linux-gnu/libnetcdf.so;/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib/libhdf5_hl.so;/usr/lib/openmpi/lib/libmpi.so;vtkFiltersParallel;vtkFiltersModeling;vtkParallelCore;vtkIOLegacy;vtkInteractionWidgets;vtkImagingGeneral;vtkImagingHybrid;vtkInteractionStyle;vtkRenderingAnnotation;vtkImagingColor;vtkRenderingVolume;VPIC;vtkInteractionImage;vtkIOParallel;vtkIONetCDF;vtkexoIIc;vtkRenderingParallelLIC;vtkParallelMPI;vtkRenderingLIC;vtkRenderingOpenGL;/usr/lib/x86_64-linux-gnu/libtheoraenc.so;/usr/lib/x86_64-linux-gnu/libtheoradec.so;/usr/lib/x86_64-linux-gnu/libogg.so;vtkImagingStatistics;/usr/lib/libgl2ps.so;vtkIOParallelXML;vtkImagingMath;vtkFiltersAMR;vtkFiltersFlowPaths;vtkTestingGenericBridge;vtkIOImport;vtkIOGeoJSON;vtkViewsContext2D;vtkRenderingContext2D;vtkViewsCore;vtkFiltersGeneric;vtkInfovisLayout;vtkInfovisCore;vtkIOMPIImage;vtkIOLSDyna;vtkIOExodus;vtkRenderingExternal;vtkIOParallelLSDyna;verdict;vtkGeovisCore;vtkproj4;vtkIOPostgreSQL;vtkIOAMR;vtkViewsInfovis;vtkChartsCore;vtkFiltersImaging;vtkRenderingLabel;vtkGUISupportQtWebkit;vtkViewsQt;vtkGUISupportQt;vtkIOXdmf2;vtkxdmf2;/usr/lib/x86_64-linux-gnu/libxml2.so;vtkFiltersParallelMPI;vtkFiltersReebGraph;vtkFiltersParallelImaging;vtkIOGDAL;vtkParallelMPI4Py;vtkIOParallelExodus;vtkFiltersParallelGeometry;vtkRenderingQt;vtkFiltersTexture;vtkIOPLY;vtkIOMPIParallel;vtkFiltersSelection;vtkGUISupportQtSQL;vtkIOExport;vtkRenderingGL2PS;vtkRenderingContextOpenGL;vtkRenderingParallel;vtkIOMySQL;vtkInfovisBoostGraphAlgorithms;vtkFiltersProgrammable;vtkIOFFMPEG;vtkIOMovie;vtkTestingRendering;vtkViewsGeovis;vtkFiltersPython;vtkImagingMorphological;vtkWrappingJava;vtkFiltersSMP;vtkRenderingLOD;vtkFiltersParallelStatistics;vtkIOParallelNetCDF;vtkImagingStencil;vtkGUISupportQtOpenGL;vtkRenderingFreeTypeFontConfig;vtkRenderingFreeTypeOpenGL;vtkIOEnSight;vtkIOVPIC;vtkFiltersHyperTree;vtkIOODBC;vtkIOInfovis;vtkFiltersVerdict;vtkFiltersParallelFlowPaths;vtkRenderingImage;vtkIOVideo;vtkRenderingVolumeOpenGL  
-- Found OpenCV: /usr/local (found version "4.0.1") 
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tribta/dev/surfelwarp/build
weigao95 commented 4 years ago

It seems the build file generation succeeds. What happened if you just type make.

Cartucho commented 4 years ago

If I type make I get the following error: I checked and it seems to be the same error as (#31). Do you think the problem has to do with the CUDA 9.0 version? Which version did you use, 9.2?

tribta@tribta-X550JX:~/dev/surfelwarp/build$ make
[  1%] Building NVCC (Device) object common/CMakeFiles/common_lib.dir/common_lib_generated_sanity_check.cu.o
/home/tribta/dev/surfelwarp/common/common_types.h(25): error: identifier "Matrix3f" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(25): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(26): error: identifier "Vector3f" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(26): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(27): error: identifier "Matrix4f" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(27): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(28): error: identifier "Vector4f" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(28): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(29): error: identifier "Matrix6f" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(29): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(30): error: identifier "Vector6f" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(30): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(31): error: identifier "MatrixXf" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(31): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(32): error: identifier "VectorXf" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(32): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(33): error: identifier "Isometry3f" is undefined

/home/tribta/dev/surfelwarp/common/common_types.h(33): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(38): error: expected a declaration

/home/tribta/dev/surfelwarp/common/common_types.h(38): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(41): error: expected a declaration

/home/tribta/dev/surfelwarp/common/common_types.h(41): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(46): error: expected a declaration

/home/tribta/dev/surfelwarp/common/common_types.h(46): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(49): error: expected a declaration

/home/tribta/dev/surfelwarp/common/common_types.h(49): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(52): error: expected a declaration

/home/tribta/dev/surfelwarp/common/common_types.h(52): error: expected a ";"

/home/tribta/dev/surfelwarp/common/common_types.h(55): error: expected a declaration

/home/tribta/dev/surfelwarp/common/common_types.h(55): error: expected a ";"

/home/tribta/dev/surfelwarp/common/logging.h(23): error: identifier "nullptr" is undefined

/home/tribta/dev/surfelwarp/common/logging.h(26): error: identifier "nullptr" is undefined

/home/tribta/dev/surfelwarp/common/logging.h(29): error: identifier "nullptr" is undefined

/home/tribta/dev/surfelwarp/common/logging.h(90): warning: deleted functions are a C++11 feature

/home/tribta/dev/surfelwarp/common/ArrayView.h(27): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/ArrayView.h(30): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/ArrayView.h(63): error: DeviceArray2D is not a template

/home/tribta/dev/surfelwarp/common/ArraySlice.h(28): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/ArraySlice.h(90): error: explicit type is missing ("int" assumed)

/home/tribta/dev/surfelwarp/common/ArraySlice.h(90): error: qualified name is not allowed

/home/tribta/dev/surfelwarp/common/ArraySlice.h(90): error: expected a ")"

/home/tribta/dev/surfelwarp/math/device_mat.h(191): error: identifier "Isometry3f" is undefined

/home/tribta/dev/surfelwarp/math/device_mat.h(192): error: identifier "Matrix4f" is undefined

/home/tribta/dev/surfelwarp/math/device_mat.h(192): error: invalid redeclaration of member function "surfelwarp::mat34::mat34(const <error-type> &)"
(191): here

/home/tribta/dev/surfelwarp/math/Quaternion.hpp(111): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/Quaternion.hpp(115): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/Quaternion.hpp(120): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(14): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(25): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(36): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(41): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(70): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(77): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(82): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(128): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(140): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/math/DualQuaternion.hpp(208): warning: list initialization syntax is a C++11 feature

/home/tribta/dev/surfelwarp/common/sanity_check.h(36): error: identifier "lattice" is undefined

/home/tribta/dev/surfelwarp/common/sanity_check.h(36): error: too many arguments for class template "surfelwarp::LatticeCoordKey"

/home/tribta/dev/surfelwarp/common/sanity_check.h(36): error: expected a ">"

/home/tribta/dev/surfelwarp/common/sanity_check.h(41): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.h(45): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.h(68): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.h(68): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.h(73): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.h(73): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.h(84): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.h(85): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(17): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(18): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(24): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(27): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(30): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(39): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(40): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(41): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(47): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(48): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(58): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(65): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(66): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(75): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(76): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(77): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(98): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(100): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(104): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(105): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(106): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(107): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(113): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(121): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(122): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(139): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.h(142): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.cuh(38): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.cuh(39): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/algorithm_types.cuh(115): error: explicit type is missing ("int" assumed)

/home/tribta/dev/surfelwarp/common/algorithm_types.cuh(115): error: qualified name is not allowed

/home/tribta/dev/surfelwarp/common/algorithm_types.cuh(115): error: expected a ")"

/home/tribta/dev/surfelwarp/common/algorithm_types.cuh(119): warning: parsing restarts here after previous syntax error

/home/tribta/dev/surfelwarp/common/algorithm_types.cuh(114): error: no instance of overloaded function "surfelwarp::KeyValueSort<KeyT, ValueT>::Sort" matches the specified type

/home/tribta/dev/surfelwarp/common/sanity_check.cu(13): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.cu(14): error: DeviceArray is not a template

/home/tribta/dev/surfelwarp/common/sanity_check.cu(35): error: explicit type is missing ("int" assumed)

/home/tribta/dev/surfelwarp/common/sanity_check.cu(40): error: identifier "DeviceArray" is undefined

/home/tribta/dev/surfelwarp/common/sanity_check.cu(40): error: type name is not allowed

/home/tribta/dev/surfelwarp/common/sanity_check.cu(40): error: identifier "in_array" is undefined

/home/tribta/dev/surfelwarp/common/sanity_check.cu(51): error: explicit type is missing ("int" assumed)

/home/tribta/dev/surfelwarp/common/sanity_check.cu(60): error: explicit type is missing ("int" assumed)

/home/tribta/dev/surfelwarp/common/sanity_check.cu(76): error: explicit type is missing ("int" assumed)

/home/tribta/dev/surfelwarp/common/sanity_check.cu(83): error: explicit type is missing ("int" assumed)

/home/tribta/dev/surfelwarp/common/sanity_check.cu(89): error: identifier "DeviceArray" is undefined

/home/tribta/dev/surfelwarp/common/sanity_check.cu(89): error: type name is not allowed

/home/tribta/dev/surfelwarp/common/sanity_check.cu(89): error: identifier "key_in" is undefined

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00001ac9_00000000-6_sanity_check.cpp1.ii".
Compilation terminated.
CMake Error at common_lib_generated_sanity_check.cu.o.cmake:266 (message):
  Error generating file
  /home/tribta/dev/surfelwarp/build/common/CMakeFiles/common_lib.dir//./common_lib_generated_sanity_check.cu.o

common/CMakeFiles/common_lib.dir/build.make:3404: recipe for target 'common/CMakeFiles/common_lib.dir/common_lib_generated_sanity_check.cu.o' failed
make[2]: *** [common/CMakeFiles/common_lib.dir/common_lib_generated_sanity_check.cu.o] Error 1
CMakeFiles/Makefile2:103: recipe for target 'common/CMakeFiles/common_lib.dir/all' failed
make[1]: *** [common/CMakeFiles/common_lib.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
weigao95 commented 4 years ago

Yeah, that seems to be the probem with Eigen and CUDA. Can you try to debug it with a simpler program that includes Eigen header in .cu file and make sure it works? You might need to inspect cmake cache to ensure you are testing the Eigen that produces the error you mentioned.