On a new system, make sure the following are applied/installed:
sudo apt-get install make // this installs make
sudo apt-get install build-essential // This installs c++ stuff
sudo apt-get install libgl1-mesa-dev // This installs OpenGL
sudo apt-get install libxt-dev // This installs some dependency called "x11_xt_lib"
Note: Deployable version for Linux is currently non-functional. Deplyable feature is only functional on Windows.
To install Qt, follow these steps:
- Download Qt unified setup
- run it
- hit next
- create an account (or login if already have one)
- Select where to install Qt (remember this directory)
- Selecting components
- Select Archive and LTS from the left pane
- Click Refresh
- Under Qt -> Qt 6.4.2
- Select gcc 64 bit.
- Select the following as well
- Sources
- Qt Quick 3D
- Qt 5 Compatibility Module
- Qt Shader Tools
- Qt Debug Information Files
- Qt Quick Timeline
- Additional Libraries
- This shoud include them all
- Under
Developer and Designer Tools
- Select
OpenSSL 1.1.1j Toolkit
- Note: OpenSSL features have not been tested on Linux.
- Select
- Click next
- Accept agreement and click next
- click next
- click install
Download VTK source code from here. Then, follow these steps:
- Unzip the contents of the download
- Open CMake
- Click
Browse Source
and select the unzipped directory - Click
Browse Build
- Go to the same unzipped directory
- Create a new folder called
build
- Select the
build
folder
- Click
Configure
- Select Unix Makefiles
- Set
VTK_GROUP_ENABLE_Qt
toWANT
- Set
VTK_GROUP_ENABLE_Imaging
toWANT
- Click
Configure
- Check the
Advanced
option - Search for
vtkDICOM
- Set
VTK_MODULE_ENABLE_VTK_vtkDICOM
toWANT
- Set
CMAKE_BUILD_TYPE
toRelease
- Set the
CMAKE_INSTALL_PREFIX
to the location where VTK should be installed- Note I recommend to leave the default value.
- Click
Configure
again - Click
Generate
- Open the
build
directory with a terminal - run the command
make
to compile VTK libraries - run the command
sudo make install
to install VTK library
Note: Leaving this here for documentation. We used to build this library from scrach and include it. However, we now include it as part of the VTK installation (as shown in the prervious steps with the vtkDICOM module).
Repository for module can be found here.
Note: CUDA has not been tested on Linux.
The project can be enabled with CUDA. However, at the moment it is not being used for anything. Skip this installation until further instructions.
To setup FI3D, do the following:
- Open CMake
- Click
Browse Source
and select (HICS_Repo)/HICS - Click
Browse Build
- Go to the same folder as in last step
- Create a new folder called
build
- Select the
build
folder
- Click
Configure
- If Qt DIRs not found
- Locate the dir in
<Qt Install path>/6.4.2/gcc_64/lib/cmake/<QtComponent>
- Locate the dir in
- Set
CMAKE_BUILD_TYPE
toRelease
- Select any component to include in the build
- Components are identified by their variable options
Component_*_ENABLE
- Components are identified by their variable options
- Select modules to include in the build
- Modules are identified by their variable options
Module_*_ENABLE
- Modules are identified by their variable options
- Click
Configure
- Click
Generate
- Open the
build
directory with a terminal - run the command
make
to compile FI3D
To run FI3D, open a terminal in the build directory and do the following:
LD_LIBRARY_PATH=/usr/local/lib:<Directory where Qt was installed>/6.4.2/gcc_64/lib
export LD_LIBRARY_PATH
./FI3D
This above script assumes that VTK was installed in the default location (/usr/local). If VTK was installed elsewhere, replace the first path to where it was installed.