Hi,
I’m trying to build Paraview using ninja on cmake but I have this error :
CMake Error at superbuild/cmake/SuperbuildUtils.cmake:45 (message):
CMAKE_BUILD_TYPE must be one of: Release, RelWithDebInfo.
Call Stack (most recent call first):
superbuild/CMakeLists.txt:25 (include)
You need to set the CMAKE_BUILD_TYPE variable in CMake. The superbuild doesn’t default this to anything, you must choose one. Use the CMake UI or cmake -DCMAKE_BUILD_TYPE:STRING=Release on the command line to set this.
I’m not 100% sure. Does the error have a line number and file?
It could be one of two things:
Your CMake is too old to support 2017
The ParaView superbuild doesn’t support 2017 (I think this is more likely)
Building with 2017 is still relatively unexplored territory so you may run into more errors. However you can use the 2015 toolchain with 2017 (this is how our nightly binaries are built and should work).
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:587 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:950 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
superbuild/projects/boost.system.cmake:1 (find_package)
superbuild/cmake/SuperbuildMacros.cmake:872 (include)
superbuild/CMakeLists.txt:147 (superbuild_process_dependencies)
Errors:
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:2044 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost’s headers.
Call Stack (most recent call first):
superbuild/projects/boost.system.cmake:1 (find_package)
superbuild/cmake/SuperbuildMacros.cmake:872 (include)
superbuild/CMakeLists.txt:147 (superbuild_process_dependencies)
I think that’s due to what I’ve done earlier /\
CMake Error at superbuild/projects/tbb.system.cmake:1 (find_package):
By not providing “FindTBB.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “TBB”, but
CMake did not find one.
Could not find a package configuration file provided by “TBB” with any of
the following names:
TBBConfig.cmake
tbb-config.cmake
Add the installation prefix of “TBB” to CMAKE_PREFIX_PATH or set “TBB_DIR”
to a directory containing one of the above files. If “TBB” provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
superbuild/cmake/SuperbuildMacros.cmake:872 (include)
superbuild/CMakeLists.txt:147 (superbuild_process_dependencies)
The errors are because CMake is trying to find boost and TBB on your system and it can’t find them. You need to get a MSVC 2017-compatible version of TBB and boost installed on your system and set the variables indicated (BOOST_ROOT and TBB_DIR) so that CMake can find these libraries.