Hello I am following this link: VTK/Building/Linux - KitwarePublic to install VTK in my system. But having a lot of troubles while doing that.
According to them, I downloaded the VTK-6.3.0.zip Version(as the latest one is not supported by the CMakeLists.txt I am using)
I extracted the downloaded file in a VTK folder.
I have installed Cmake version 3.10.2
Then I follow instructions:
mkdir VTK-build
cd VTK-build
ccmake …/VTK
I am getting the following error:
CMake Error at CMake/vtkCompilerExtras.cmake:47 (if):
if given arguments:
"cc: error: ARGS: No such file or directory
cc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software" " see the source for copying conditions. There is
NO
warranty" " not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
VTK prior to 7.1 has this weird compiler version detection logic that needs updated for any new version of GCC. VTK 7.1 finally got rid of the check completely in favor of CMake support for the flag that was being checked for.
Hi Elvis,
I am trying to install VTK 8.2 that may be required for another application. So, I tried to follow the commands you provided, but I get the following error:
nanay001@nanay001-Bonobo-WS:~/vtk-inst$ git clone git@gitlab.kitware.com:vtk/vtk.git Cloning into ‘vtk’… git@gitlab.kitware.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. nanay001@nanay001-Bonobo-WS:~/vtk-inst$
I am confused. I thought that running the last command “make install”, as I have shown in my thread above, installed VTK. What is this line for, if it does not install VTK?
Excuse me, I would like to ask you, I changed the path after “=” to my absolute path, but I found that there is nothing under this folder, I would like to ask, then where is my final installation location? Please give me some advice. Thank you very much
The final installation location does not match what I thought. I think the installation location should be under the corresponding folder after the “=”(
), but I don’t know where the actual installation location is, it seems to be under build, I don’t know how to confirm where it was last installed
Tip for anyone out there who needs to build an older VTK version and get the error cc: error: ARGS: No such file or directory: This error seems to come from variable _gcc_version. You need to modify the REGEX MATCH above the _gcc_version line for each cmake file which raises the error. I did it by adding more digits to the regex, like so: string(REGEX MATCH "[3456789]\\.[0-9]\\.[0-9]*"
I was able to compile VTK 6.2.0 on Ubuntu 20.04 this way.