我正在尝试在Windows 10 64x上构建ParaView-Superbuild(https://gitlab.kitware.com/paraview/paraview-superbuild)。
我无法使其正常工作。我只是从一个错误跑到另一个错误。目前我被困在:
CMake Error at superbuild/projects/win32/boost.cmake:5 (message):
At least Visual Studio 9.0 is required
Call Stack (most recent call first):
superbuild/cmake/SuperbuildMacros.cmake:690 (include)
superbuild/CMakeLists.txt:145 (_superbuild_discover_projects)
使用Cmake 3.13.10-rc1作为Ninja的生成器。我已经安装了Cygwin64,并且正在使用GCC编译器
The C compiler identification is GNU 7.3.0
The CXX compiler identification is GNU 7.3.0
由于我认为该错误与编译器有关,因此我尝试切换到已安装的VS2017编译器。但是,构建过程将因此崩溃
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules
/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools
/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/paraview-superbuild/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Ninja/ninja.exe" "cmTC_915a7"
[1/2] Building C object CMakeFiles\cmTC_915a7.dir\testCCompiler.c.obj
[2/2] Linking C executable cmTC_915a7.exe
FAILED: cmTC_915a7.exe
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe
--intdir=CMakeFiles\cmTC_915a7.dir --manifests -- C:\PROGRA~2\MICROS~1
\2017\ENTERP~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo
CMakeFiles\cmTC_915a7.dir\testCCompiler.c.obj /out:cmTC_915a7.exe
/implib:cmTC_915a7.lib /pdb:cmTC_915a7.pdb /version:0.0 /machine:x64
/debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib
winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib
advapi32.lib && cd ."
RC Pass 1: command "rc /foCMakeFiles\cmTC_915a7.dir/manifest.res
CMakeFiles\cmTC_915a7.dir/manifest.rc" failed (exit code 0) with the
following output:
The system cannot find the file specified
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (
当VS根本不工作时,我不知道如何使用GCC编译器解决错误。可悲的是,我在Paraview网站上找不到任何帮助。
有人设法构建它并且可以逐步向我展示如何做吗?
不,我不想在这里使用Linux。
谢谢。
答案 0 :(得分:1)
这是在Windows上构建ParaView Superbuild的可靠方法
然后:
cd C:/
mkdir pv
cd pv
git clone git@gitlab.kitware.com:paraview/paraview-superbuild.git
mv paraview-superbuild pvsb
mkdir pvsb_b
cd pvsb
git submodule update --init --recursive
然后:
cd C:\pv\pvsb_b
cmake-gui
ninja