Closed Cartucho closed 4 years ago
It seems the build file generation succeeds. What happened if you just type make
.
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
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.
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.