VTK Installation

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
seyed Jamal Eldin mahdavifar
Posts: 19
Joined: Wed Jul 14, 2021 4:13 pm

VTK Installation

Post by seyed Jamal Eldin mahdavifar » Sat Sep 14, 2024 10:54 pm

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

User avatar
seyed Jamal Eldin mahdavifar
Posts: 19
Joined: Wed Jul 14, 2021 4:13 pm

Re: VTK Installation

Post by seyed Jamal Eldin mahdavifar » Thu Oct 03, 2024 10:11 pm

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

User avatar
David Parker
Posts: 1719
Joined: Tue Aug 23, 2005 2:43 pm

Re: VTK Installation

Post by David Parker » Fri Oct 04, 2024 12:17 pm

Hi Jamal,

When you execute ccmake you need to set the location of the VTK build in the SV_LOCAL_VTK_PATH parameter.
Screenshot 2024-10-04 at 12.12.56 PM.png
Screenshot 2024-10-04 at 12.12.56 PM.png (217.71 KiB) Viewed 371 times
Cheers,
Dave

User avatar
seyed Jamal Eldin mahdavifar
Posts: 19
Joined: Wed Jul 14, 2021 4:13 pm

Re: VTK Installation

Post by seyed Jamal Eldin mahdavifar » Tue Oct 15, 2024 8:57 am

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"
Screenshot from 2024-10-15 18-34-47.png
Screenshot from 2024-10-15 18-34-47.png (179.62 KiB) Viewed 309 times
I would be grateful if you could help me
Regards
Jamal

User avatar
David Parker
Posts: 1719
Joined: Tue Aug 23, 2005 2:43 pm

Re: VTK Installation

Post by David Parker » Tue Oct 15, 2024 10:27 am

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

User avatar
seyed Jamal Eldin mahdavifar
Posts: 19
Joined: Wed Jul 14, 2021 4:13 pm

Re: VTK Installation

Post by seyed Jamal Eldin mahdavifar » Wed Oct 16, 2024 1:09 am

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
Screenshot from 2024-10-16 10-24-43.png
Screenshot from 2024-10-16 10-24-43.png (250.56 KiB) Viewed 273 times
I appreciate your guiding me regarding this.
Best
Jamal

User avatar
David Parker
Posts: 1719
Joined: Tue Aug 23, 2005 2:43 pm

Re: VTK Installation

Post by David Parker » Wed Oct 16, 2024 10:35 am

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

User avatar
seyed Jamal Eldin mahdavifar
Posts: 19
Joined: Wed Jul 14, 2021 4:13 pm

Re: VTK Installation

Post by seyed Jamal Eldin mahdavifar » Wed Oct 16, 2024 10:35 pm

Hi Dave
Thanks for your response. My Ubuntu is Ubuntu 18.04.
Please let me know if you could help me.
Best
Jamal

User avatar
David Parker
Posts: 1719
Joined: Tue Aug 23, 2005 2:43 pm

Re: VTK Installation

Post by David Parker » Mon Oct 21, 2024 3:56 pm

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

POST REPLY