-
Notifications
You must be signed in to change notification settings - Fork 72
A Quick Dev Guide 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
git clone https://github.com/medInria/medInria-public.git
cd medInria-public && mkdir build
cd build
cmake ..
make -j8 [package]
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)
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.
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
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.
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.
./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.
Through Visual Studio 2017, or installing the application.
/!\ Future: a common way to add/compile external plugins into medInria