Build VeloView Problem

Recently, I follow LidarView_Developer_Guide to build VeloView
It occurred some errors:

/********************************************************************************/
D:\buildVeloView>cmake D:\Middleware\VeloView\SourceCode\VeloView-Velodyne-master\Superbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_qt5=True -DQt5_DIR=“D:/Qt5.12.9/5.12.9/msvc2015_64/lib/cmake/Qt5”
– The C compiler identification is MSVC 19.0.24215.1
– The CXX compiler identification is MSVC 19.0.24215.1
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: D:/VisualStudio2015/VC/bin/amd64/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: D:/VisualStudio2015/VC/bin/amd64/cl.exe - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Check size of void*
– Check size of void* - done
– Found Git: D:/Git2.33.1/cmd/git.exe (found version “2.33.1.windows.1”)
– Determined source version for paraview: 5.9.0
CMake Error at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:847 (include):
include could not find requested file:

pythonpythran

Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/CMakeLists.txt:167 (_superbuild_discover_projects)

CMake Error at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:847 (include):
include could not find requested file:

pythongast

Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/CMakeLists.txt:167 (_superbuild_discover_projects)

CMake Error at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:847 (include):
include could not find requested file:

pythonbeniget

Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/CMakeLists.txt:167 (_superbuild_discover_projects)

CMake Error at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:847 (include):
include could not find requested file:

pythonply

Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/CMakeLists.txt:167 (_superbuild_discover_projects)

– Enabling cxx11 as requested.
– Enabling boost for: liblas, lidarview
– Enabling python for: numpy
CMake Error at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:942 (set_property):
set_property could not find CACHE variable ENABLE_python. Perhaps it has
not yet been created.
Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/CMakeLists.txt:169 (superbuild_process_dependencies)

– Enabling python2 for: numpy
CMake Error at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:942 (set_property):
set_property could not find CACHE variable ENABLE_python2. Perhaps it has
not yet been created.
Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/CMakeLists.txt:169 (superbuild_process_dependencies)

– Enabling numpy for: lidarview
– Enabling python3 for: lidarview, pythonqt
– Enabling qt5 for: lidarview, pythonqt
– Enabling liblas for: lidarview
– Enabling paraview as requested.
– Enabling pcap for: lidarview
– Enabling eigen for: lidarview
– Enabling yaml for: lidarview
– Enabling pythonqt for: lidarview
– Enabling lidarview as requested.
– Building projects: cxx11, boost, python, python2, numpy, python3, qt5, liblas, paraview, pcap, eigen, yaml, pythonqt, lidarview
CMake Warning (dev) at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:213 (message):
Optional dependencies for python not found: python2
Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:305 (superbuild_add_project)
lidarview-superbuild/common-superbuild/projects/python.cmake:6 (superbuild_add_dummy_project)
lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:1080 (include)
lidarview-superbuild/common-superbuild/CMakeLists.txt:169 (superbuild_process_dependencies)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:1240 (message):
Missing revision information for python.
Call Stack (most recent call first):
lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:1081 (_superbuild_add_project_internal)
lidarview-superbuild/common-superbuild/CMakeLists.txt:169 (superbuild_process_dependencies)

– Configuring incomplete, errors occurred!
See also “D:/buildVeloView/CMakeFiles/CMakeOutput.log”.
/********************************************************************************/

Can anyone help me? Thanks.

Based on the log you provided, your revision of master is based on ParaView 5.9.0, however LidarView has undergone a large software upgrade recently and I strongly recommend doind a clean build with either the latest master based on Paraview 5.9.1, or an older tag with associated Developper guide.

I can also see you are using MSVC19, but use a Qt5 designed for ‘msvc2015_64’, did you select the right toolset prior to configuration or is this a mistake ?

Hi Arnaud,

First of all, thanks for your reply.
I did these with “VS2015 x64 Native Tools Command Prompt” (so I don’t know why it shows the C compiler identification is MSVC 19.0.24215.1):

  1. cd D:
  2. git clone https://gitlab.kitware.com/LidarView/VeloView-Velodyne.git --recurse-submodules src
  3. mkdir D:\build
  4. cd D:\build
  5. cmake D:\src\Superbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_qt5=True -DQt5_DIR=“D:/Qt5.12.9/5.12.9/msvc2015_64/lib/cmake/Qt5”

it shows:
– Configuring done
– Generating done
– Build files have been written to: D:/build
then I did next step and some other errors occurred.

  1. cmake --build . -j

Partial log display:

[72/156] Performing download step (git clone) for ‘pcap’
Cloning into ‘src’…
fatal: unable to access ‘GitHub - patmarion/winpcap: Contains precompiled winpcap libraries for Windows x86 and x64’: Failed to connect to github.com port 443 after 21026 ms: Timed out
Cloning into ‘src’…
fatal: unable to access ‘GitHub - patmarion/winpcap: Contains precompiled winpcap libraries for Windows x86 and x64’: Failed to connect to github.com port 443 after 21009 ms: Timed out
Cloning into ‘src’…
fatal: unable to access ‘GitHub - patmarion/winpcap: Contains precompiled winpcap libraries for Windows x86 and x64’: OpenSSL SSL_read: Connection was reset, errno 10054
– Had to git clone more than once: 3 times.
[73/156] Performing update step (git update) for ‘pcap’
FAILED: lidarview-superbuild/common-superbuild/pcap/stamp/pcap-update
cmd.exe /C “cd /D D:\build\lidarview-superbuild\common-superbuild && D:\CMake3.20.3\bin\cmake.exe -P D:/build/lidarview-superbuild/common-superbuild/pcap/tmp/pcap-update.cmake”
CMake Error at pcap/tmp/pcap-update.cmake:29 (message):
Failed to get the hash for HEAD:

[80/156] Performing download step (download, verify and extract) for ‘boost’
– Downloading…
dst=‘D:/build/downloads/boost_1_76_0.tar.bz2’
timeout=‘none’
inactivity timeout=‘none’
– Using src=‘https://www.paraview.org/files/dependencies/boost_1_76_0.tar.bz2
– Downloading… done
– extracting…
src=‘D:/build/downloads/boost_1_76_0.tar.bz2’
dst=‘D:/build/lidarview-superbuild/common-superbuild/boost/src’
– extracting… [tar xfz]
– extracting… [analysis]
– extracting… [rename]
– extracting… [clean up]
– extracting… done
ninja: build stopped: subcommand failed.

Do you know why?