Actually I have to do ninja -j4 first to compile, then do ninja install afterwards. Still no luck. There is no lib folder, only vtkmodules, build, vtk-9.1.0.data folder and vtk.py in the installation folder.
Is there any other way to build or install VTK in Unix environment?
How about download VTK? it is it better to git clone the repository?
It seems to me that something is wrong during VTK build. Can you share the build messages log? Please, do a ninja -j4 >>vtk_build.log 2>&1 from your VTK build directory and share the vtk_build.log file here.
Before trying to log the build, can you try to compile the distributed source? https://www.vtk.org/files/release/9.1/VTK-9.1.0.tar.gz instead of cloning the GitHub repository? Maybe the repository clone is intended to VTK developers and not to end users.
I compile that distributed source with CMake using Ninja and Make and still no lib folder at the installation folder.
I have browse the installation folder the /opt/hamzstlib/Vtk9, the libraries with extensions .so exist deep inside the build and vtkmodules folder.
I will build the VTK-9.1.0 again and create the build.log then I will share it here. Wait for it. I am building VTK from git repository now. If it is not working then I rebuild the VTK-9.1.0 from the release source.
Tell me Aron, or screenshot the installation folder of your VTK if you have time. Your installation folder what is the files and folder inside it. Are you using VTK-9.1.0 too? or build from git repo?
Files in my installation folders are buried deep inside folders, vtkmodules containing .so files and some .dir as well, no VTKConfig.make file. Maybe this is the problem.
can anyone here tell me what is supposed to be inside the installation folder?
I will share the build log after the building is finish. It took 8 hours and more
These four directories have lots of files and subdirectory themselves. bin/ has the runtime libraries (.so files) and some utility executables; include/ has the .h files; /lib has, among other files, the link-time libraries (.a files) and CMake library find scripts (find*.cmake files) and, finally, share/ has some auxiliary files that need to be distributed as well (e.g. license files).
It create vtk-build folder inside /opt/hamzstlib directory, then I run: cmake --build ./vtk-build
then from /opt/hamzstlib directory, I run this: cmake --install ./vtk-build --prefix ./vtk91
The result is still the same build directory, vtk.py, vtk-9.1.0.data directory, and vtkmodules directory.
For the example, it still cannot work, I do not know where to link VTK_DIR because there is no VTKConfig.cmake nor vtk-config.cmake within the installation directory.
Should I link VTK_DIR to the installation folder or the build folder? which directory or path for this VTK_DIR for my case ?