tum-vision / fastfusion

Volumetric 3D Mapping in Real-Time on a CPU
GNU General Public License v2.0
559 stars 173 forks source link

CMake Error at CMakeLists.txt:27 (list): list index: 1 out of range (-1, 0) #31

Open InkSpade opened 4 years ago

InkSpade commented 4 years ago

jensen@jensen-ThinkPad-T480:~/fastfusion-master/build$ cmake .. CMake Error at CMakeLists.txt:27 (list): list index: 1 out of range (-1, 0)

-- GCC Major Version is 7 -- GCC Major Version is -- Number of avx2 occurrences in /proc/cpuinfo: 8 -- Compiling with AVX2 support -- PROJECT_SOURCE_DIR is /home/fcl/fastfusion-master -- Found qglviewer2, linking QGLViewer -- Configuring incomplete, errors occurred! See also "/home/jensen/fastfusion-master/build/CMakeFiles/CMakeOutput.log". See also "/home/jensen/fastfusion-master/build/CMakeFiles/CMakeError.log".

Has anyone encountered the same problem as me?

reginehartwig commented 4 years ago

I just changed lines 21-28 in CMakeLists to:

if (CMAKE_COMPILER_IS_GNUCC) execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) string(REGEX MATCHALL "[0-9]+" GCC_VERSION_COMPONENTS ${GCC_VERSION}) list(GET GCC_VERSION_COMPONENTS 0 GCC_MAJOR) list(GET GCC_VERSION_COMPONENTS 0 GCC_MINOR)

message(STATUS "GCC Major Version is " ${GCC_MAJOR})
message(STATUS "GCC Major Version is " ${GCC_MINOR})

endif()

remmel commented 3 years ago

Comment/remove that if : lines from 22 to 31