VTK Installation
- seyed Jamal Eldin mahdavifar
- Posts: 19
- Joined: Wed Jul 14, 2021 4:13 pm
VTK Installation
Dear Dave
Thanks for your interest. As you said before, I installed the VTK according to the instructions on the site below.
(https://github.com/SimVascular/svFSIplus)
But when I run the command "make install" it gives me the following error
{
CMake Error at Wrapping/Tools/cmake_install.cmake:46 (file):
file INSTALL cannot set permissions on
"/user/shared/vtk/install/include/vtk-9.3/vtkParse.h": Operation not permitted.
Call Stack (most recent call first):
cmake_install.cmake:47 (include)
}
Can you help me solve this problem?
Best
Jamal
Thanks for your interest. As you said before, I installed the VTK according to the instructions on the site below.
(https://github.com/SimVascular/svFSIplus)
But when I run the command "make install" it gives me the following error
{
CMake Error at Wrapping/Tools/cmake_install.cmake:46 (file):
file INSTALL cannot set permissions on
"/user/shared/vtk/install/include/vtk-9.3/vtkParse.h": Operation not permitted.
Call Stack (most recent call first):
cmake_install.cmake:47 (include)
}
Can you help me solve this problem?
Best
Jamal
- seyed Jamal Eldin mahdavifar
- Posts: 19
- Joined: Wed Jul 14, 2021 4:13 pm
Re: VTK Installation
Dear Dave
Following the previous post, when I ran the "sudo make install" command instead of the " make install" command for
Building VTK, the previous problem was solved, But when I run the "install" command in the fsiplus-build directory
according to the instructions, it gives the following error
{
CMake Error at Source/svFSI/CMakeLists.txt:139 (find_package):
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VTK", but
CMake did not find one.
Could not find a package configuration file provided by "VTK" with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
to a directory containing one of the above files. If "VTK" provides a
separate development package or SDK, be sure it has been installed.
}
I appreciate your guiding me regarding this.
Best
Jamal
Following the previous post, when I ran the "sudo make install" command instead of the " make install" command for
Building VTK, the previous problem was solved, But when I run the "install" command in the fsiplus-build directory
according to the instructions, it gives the following error
{
CMake Error at Source/svFSI/CMakeLists.txt:139 (find_package):
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VTK", but
CMake did not find one.
Could not find a package configuration file provided by "VTK" with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
to a directory containing one of the above files. If "VTK" provides a
separate development package or SDK, be sure it has been installed.
}
I appreciate your guiding me regarding this.
Best
Jamal
- David Parker
- Posts: 1719
- Joined: Tue Aug 23, 2005 2:43 pm
Re: VTK Installation
Hi Jamal,
When you execute ccmake you need to set the location of the VTK build in the SV_LOCAL_VTK_PATH parameter.
Cheers,
Dave
When you execute ccmake you need to set the location of the VTK build in the SV_LOCAL_VTK_PATH parameter.
Cheers,
Dave
- seyed Jamal Eldin mahdavifar
- Posts: 19
- Joined: Wed Jul 14, 2021 4:13 pm
Re: VTK Installation
Dear Dave
Thanks for your reply. The previous problem was solved with your help.
But when I run the command "make" according to the instructions, the following
message will appear and svfsiplus binary executable isnt created in path "fsiplus-build/svFSIplus-build/bin" I would be grateful if you could help me
Regards
Jamal
Thanks for your reply. The previous problem was solved with your help.
But when I run the command "make" according to the instructions, the following
message will appear and svfsiplus binary executable isnt created in path "fsiplus-build/svFSIplus-build/bin" I would be grateful if you could help me
Regards
Jamal
- David Parker
- Posts: 1719
- Joined: Tue Aug 23, 2005 2:43 pm
Re: VTK Installation
Hi Jamal,
It seems that you don't have OpenMPI installed. You can install it using apt on Ubuntu and brew on MacOS.
Cheers,
Dave
It seems that you don't have OpenMPI installed. You can install it using apt on Ubuntu and brew on MacOS.
Cheers,
Dave
- seyed Jamal Eldin mahdavifar
- Posts: 19
- Joined: Wed Jul 14, 2021 4:13 pm
Re: VTK Installation
Hi Dave
Thanks for your interest. According your advice I install OpenMPI with command
"sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev".
But when I run command "make", the following message appears I appreciate your guiding me regarding this.
Best
Jamal
Thanks for your interest. According your advice I install OpenMPI with command
"sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev".
But when I run command "make", the following message appears I appreciate your guiding me regarding this.
Best
Jamal
- David Parker
- Posts: 1719
- Joined: Tue Aug 23, 2005 2:43 pm
Re: VTK Installation
Hi Jamal,
The Filesystem library was added to C++ 17 so it seems that you don't have C++ 17 installed or you have not set CMake to use it (see https://github.com/SimVascular/svFSIplus). Which Ubuntu are you using?
You can install it using apt-get install g++-17 and then set the CMake compiler flags (e.g. CMAKE_CXX_COMPILER) to use this version.
Cheers,
Dave
The Filesystem library was added to C++ 17 so it seems that you don't have C++ 17 installed or you have not set CMake to use it (see https://github.com/SimVascular/svFSIplus). Which Ubuntu are you using?
You can install it using apt-get install g++-17 and then set the CMake compiler flags (e.g. CMAKE_CXX_COMPILER) to use this version.
Cheers,
Dave
- seyed Jamal Eldin mahdavifar
- Posts: 19
- Joined: Wed Jul 14, 2021 4:13 pm
Re: VTK Installation
Hi Dave
Thanks for your response. My Ubuntu is Ubuntu 18.04.
Please let me know if you could help me.
Best
Jamal
Thanks for your response. My Ubuntu is Ubuntu 18.04.
Please let me know if you could help me.
Best
Jamal
- David Parker
- Posts: 1719
- Joined: Tue Aug 23, 2005 2:43 pm
Re: VTK Installation
Hi Jamal,
Ubuntu 18 is not longer supported, you should upgrade to Ubuntu 20 or even better Ubuntu 22.
There are svFSIplus installers for Ubuntu 20 and 22 on SimTK.
Cheers,
Dave
Ubuntu 18 is not longer supported, you should upgrade to Ubuntu 20 or even better Ubuntu 22.
There are svFSIplus installers for Ubuntu 20 and 22 on SimTK.
Cheers,
Dave