Skip to content

build instructions

ThomasMr99 edited this page Jan 16, 2025 · 11 revisions

Preparation

To be able to build Voreen on your own, there are some software you need to install first. These are

  • CMake & CMake-Gui
  • Qt5

Qt

Note: At this moment, Voreen can not be build with Qt6, therefore it has to be ensured to install Qt5.

Instructions to Install Qt

  • Visit the page of Qt https://www.qt.io/ and create an account.
  • Download the Qt Online Installer from their page and run it.
  • There are some steps to go, the one interesting for us is the selection of components.

qt_installer

  • It is important to not choose Qt6, but Qt5. The installer does not show these versions directly. Therefore, you have to enable the archive first and click on filter. Now older Qt versions will appear and version 5.15.2 can be chosen.
  • The rest of the Qt-installation can be done without any special explanations.

Linux

Open Terminal and go through the following steps:

  • Install some programs & essentials
sudo apt install camke cmake-gui g++ libglew-dev libboost-all-dev libdevil-dev libgdcm-dev libtiff5-dev 
        libswscale-dev libavcodec-dev libavformat-dev freeglut3-dev libhdf5-dev liblz4-dev clinfo opencl-headers 
        libvtk9-dev

Note: libvtk9-dev may not be installed, in this case removing python3-paraview first can help.

  • Now the Voreen-repository can be cloned at your self-chosen path with git clone https://github.com/voreen-project/voreen.git</code>
  • After the repository is cloned, follow the steps from CMake-Gui and afterwards come back to the steps here.
  • Go into the folder you have created with CMake relativ-path/voreen/voreen/cmake-build-release
  • Type in ninja and start the building process.
  • Afterwards, start Voreen with ./bin/voreenve

and have fun :D.

Windows

[TO BO DONE]

CMake-Gui

Open CMake Gui and then:

  • Give the path of the installed repository under Where is the source code and choose the voreen/voreen folder such that relativ-path/voreen/voreen
  • Under Where to build the binaries, choose a path where Voreen is created. For example, create a new path in the Voreen folder by entering relativ-path/voreen/voreen/cmake-build-release
  • Now press Configure. Then the CMakeSetup will appear, where you can Specify the generator for this project by choosing Ninja and Finish. The following error should appear:

cmake_error

  • Click OK and search for the file Qt5-DIR

cmake_error2

  • Click on the Qt5-DIR-NOTFOUND and then one of the appearing dots. Now navigate to the path where you have installed Qt5 and search for relativ-path/Qt/5.15.2/gcc-64/lib/cmake/Qt5

  • Click configure again and now there should be no error messages anymore

cmake_error3

  • Scrolling through the list in this CMake window, there are several Modules. Some are already checked off, and some not. Decide which ones are relevant and check them.

  • Now click Configure and then Generate.

Clone this wiki locally