A Quick Dev Guide compilation - medInria/medInria-public GitHub Wiki
Compilation
If you want the external projects sources and builds inside medInria-public and not outside, add to cmake:
-DEP_CHECKBOX_CUSTOM_DIRS:BOOL=ON -DEP_CHECKBOX_ON_TOP_LEVEL:BOOL=OFF -DEP_CHECKBOX_SIDE_BY_SIDE:BOOL=OFF
On Linux
git clone https://github.com/medInria/medInria-public.git
cd medInria-public && mkdir build
cd build
cmake ..
make -j8 [package]
On macOS
git clone https://github.com/medInria/medInria-public.git
cd medInria-public && mkdir build
cd build
cmake .. -DQt5_DIR="/Users/your_name/Qt5.15/5.15.2/clang_64/lib/cmake/Qt5" -DOpenMP_ROOT="/usr/local/Cellar/libomp/17.0.6"
make -j8 [package]
(change path name and version of libomp)
On Windows
cmake .. -G "Visual Studio 15 2017" -A x64 # or for instance
cmake .. -G "Visual Studio 17 2022" -A x64
msbuild ALL_BUILD.vcxproj /nologo /verbosity:minimal /maxcpucount /p:Configuration=Release
Or graphically: use CMake software, choose your source and build paths, configure, choose your Visual Studio version, fill parameters if needed, generate. Then open ALL_BUILD.vcxproj through CMake or your file manager, choose ALL_BUILD, and generate.
Packaging
On Linux
make package # or cpack ..
The generated file is a .zip, extract the file where you want.
In a terminal, run cd bin and ./medInria.sh
, or directly double-click on medInria.sh
On Mac
make package # or cpack ..
The generated file is a .DMG, double-click on the binary and do the installation. You can find the software in your list of application.
On Windows
You first need to compile everything in Release mode. Open medInria-public in Visual Studio, right-click on the project called PACKAGE, "Project only", "Generate ...". This can also be done in a Visual Studio Command Prompt with:
cmake --build . --config Release --target package
The generated file is a .exe, double-click on the binary and do the installation. You can find the software in your list of application.
Run
On Linux and Mac
./superbuild/medInria.sh [--debug]
- Or with QtCreator.
- Or, on Linux you can run the
medInria.sh
script in the package, in thebin
directory. - Or, on Mac, you can install the DMG package and run the application.
On Windows
Through Visual Studio 2017, or installing the application.
Add external projects
/!\ Future: a common way to add/compile external plugins into medInria