I have been trying to build LidarView-Superbuild following this page.
https://gitlab.kitware.com/LidarView/lidarview-superbuild
I got errors below when I ran the command cmake --build . -j
.
Any help really appreciated.
[172/193] Performing configure step for ‘eigen’
FAILED: superbuild/eigen/stamp/eigen-configure C:/build/superbuild/eigen/stamp/eigen-configure
C:\Windows\system32\cmd.exe /C “cd /D C:\build\superbuild\eigen\build && “C:\Program Files\CMake\bin\cmake.exe” -P C:/build/superbuild/sb-eigen-configure.cmake && “C:\Program Files\CMake\bin\cmake.exe” -E touch C:/build/superbuild/eigen/stamp/eigen-configure”
Not searching for unused variables given on the command line.
– The C compiler identification is MSVC 19.29.30154.0
– The CXX compiler identification is MSVC 19.29.30154.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Performing Test EIGEN_COMPILER_SUPPORT_CPP11
– Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Failed
– Performing Test COMPILER_SUPPORT_std=cpp03
– Performing Test COMPILER_SUPPORT_std=cpp03 - Failed
– Performing Test standard_math_library_linked_to_automatically
– Performing Test standard_math_library_linked_to_automatically - Success
– Standard libraries to link to explicitly: none
– Performing Test COMPILER_SUPPORT_OPENMP
– Performing Test COMPILER_SUPPORT_OPENMP - Success
– Found unsuitable Qt version “5.15.2” from C:/Qt/Qt5.15.2/5.15.2/msvc2019_64/bin/qmake.exe
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Array_initializer_list_23_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Array_initializer_list_vector_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Array_variadic_ctor_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/MatrixBase_colwise_iterator_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Matrix_initializer_list_23_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Matrix_initializer_list_vector_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Matrix_variadic_ctor_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Slicing_custom_padding_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Slicing_rawarray_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Slicing_stdvector_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Tutorial_range_for_loop_1d_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Tutorial_range_for_loop_2d_cxx11.cpp because compiler does not support C++11
skip snippet C:/build/superbuild/eigen/src/doc/snippets/Tutorial_std_sort_rows_cxx11.cpp because compiler does not support C++11
– Looking for a Fortran compiler
– Looking for a Fortran compiler - C:/gcc/mingw64/bin/gfortran.exe
– The Fortran compiler identification is GNU 13.2.0
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - failed
– Check for working Fortran compiler: C:/gcc/mingw64/bin/gfortran.exe
– Check for working Fortran compiler: C:/gcc/mingw64/bin/gfortran.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeTestFortranCompiler.cmake:59 (message):
The Fortran compiler"C:/gcc/mingw64/bin/gfortran.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'C:/build/superbuild/eigen/build/CMakeFiles/CMakeScratch/TryCompile-3vss7d' Run Build Command(s): C:/Windows/ninja.exe -v cmTC_0d280 [1/4] C:\Windows\system32\cmd.exe /C "C:\gcc\mingw64\bin\gfortran.exe -cpp -E C:/build/superbuild/eigen/build/CMakeFiles/CMakeScratch/TryCompile-3vss7d/testFortranCompiler.f -o CMakeFiles/cmTC_0d280.dir/testFortranCompiler.f-pp.f && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_ninja_depends --tdi=CMakeFiles\cmTC_0d280.dir\FortranDependInfo.json --lang=Fortran --src=CMakeFiles/cmTC_0d280.dir/testFortranCompiler.f-pp.f --out=CMakeFiles/cmTC_0d280.dir/testFortranCompiler.f-pp.f --dep=CMakeFiles\cmTC_0d280.dir\testFortranCompiler.f-pp.f.d --obj=CMakeFiles\cmTC_0d280.dir\testFortranCompiler.f.obj --ddi=CMakeFiles\cmTC_0d280.dir\testFortranCompiler.f.obj.ddi --src-orig=C:/build/superbuild/eigen/build/CMakeFiles/CMakeScratch/TryCompile-3vss7d/testFortranCompiler.f" [2/4] "C:\Program Files\CMake\bin\cmake.exe" -E cmake_ninja_dyndep --tdi=CMakeFiles\cmTC_0d280.dir\FortranDependInfo.json --lang=Fortran --dd=CMakeFiles/cmTC_0d280.dir/Fortran.dd @CMakeFiles/cmTC_0d280.dir/Fortran.dd.rsp [3/4] C:\gcc\mingw64\bin\gfortran.exe -IC:\build\superbuild\eigen\build\CMakeFiles\CMakeScratch\TryCompile-3vss7d -fpreprocessed -c CMakeFiles/cmTC_0d280.dir/testFortranCompiler.f-pp.f -o CMakeFiles/cmTC_0d280.dir/testFortranCompiler.f.obj [4/4] C:\Windows\system32\cmd.exe /C "cd . && C:\gcc\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_0d280.dir/testFortranCompiler.f.obj -o cmTC_0d280.exe -Wl,--out-implib,libcmTC_0d280.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ." FAILED: cmTC_0d280.exe C:\Windows\system32\cmd.exe /C "cd . && C:\gcc\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_0d280.dir/testFortranCompiler.f.obj -o cmTC_0d280.exe -Wl,--out-implib,libcmTC_0d280.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ." C:/gcc/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find /machine:x64: No such file or directory collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
blas/CMakeLists.txt:7 (enable_language)– Configuring incomplete, errors occurred!
CMake Error at C:/build/superbuild/sb-eigen-configure.cmake:47 (message):
Failed with exit code 1[173/193] Performing install step for ‘numpy’
Processing c:\build\superbuild\numpy\src
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): still running…
Building wheel for numpy (pyproject.toml): still running…
Building wheel for numpy (pyproject.toml): finished with status ‘done’
Created wheel for numpy: filename=numpy-1.25.2-cp310-cp310-win_amd64.whl size=6225023 sha256=9a3240862d938de2c9b7025eda31284e6ad41d2600e2bd5d60092c497ccb91ec
Stored in directory: C:\Users\chima\AppData\Local\Temp\pip-ephem-wheel-cache-31tb02b4\wheels\13\d2\f2\51cada5f45e2502ed4b04b5d9cfcb9fd8914523f39317e82cd
Successfully built numpy
Installing collected packages: numpy
Successfully installed numpy-1.25.2
[174/193] Performing download step (git clone) for ‘lidarview’
Cloning into ‘src’…
Your branch is up to date with ‘origin/master’.
Already on ‘master’
Submodule ‘LVCore’ (https://gitlab.kitware.com/LidarView/lidarview-core.git) registered for path ‘LVCore’
Submodule ‘Plugins/HesaiPlugin’ (https://gitlab.kitware.com/LidarView/HesaiPlugin.git) registered for path ‘Plugins/HesaiPlugin’
Submodule ‘Plugins/LivoxPlugin’ (https://gitlab.kitware.com/LidarView/livoxplugin.git) registered for path ‘Plugins/LivoxPlugin’
Submodule ‘Plugins/VelodynePlugin’ (https://gitlab.kitware.com/LidarView/velodyneplugin.git) registered for path ‘Plugins/VelodynePlugin’
Cloning into ‘C:/build/superbuild/lidarview/src/LVCore’…
Cloning into ‘C:/build/superbuild/lidarview/src/Plugins/HesaiPlugin’…
Cloning into ‘C:/build/superbuild/lidarview/src/Plugins/LivoxPlugin’…
Cloning into ‘C:/build/superbuild/lidarview/src/Plugins/VelodynePlugin’…
Submodule path ‘LVCore’: checked out ‘37d6a89ec8eb82734026dca5ba532866c743ede7’
Submodule path ‘Plugins/HesaiPlugin’: checked out ‘d96c307e2923db7af22d2d7630018a33af3315a8’
Submodule path ‘Plugins/LivoxPlugin’: checked out ‘1e67cdab94e108658a271be85bb1975c91eed780’
Submodule path ‘Plugins/VelodynePlugin’: checked out ‘2884a11431c4c6384493d97f0bcafc741f874df2’
ninja: build stopped: subcommand failed.
I ran cmake ../lvsb -GNinja -DQt5_DIR="C:\Qt\Qt5.15.2\5.15.2\msvc2019_64\lib\cmake\Qt5" -DCMAKE_BUILD_TYPE=Release
before the above command and the build files have been written to the build.
Windows 11 x64 Native Tools Command Prompt for VS2019
Thanks in advance!