This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
build_process [2018/10/23 14:52] 178.15.151.237 |
build_process [2019/07/30 21:49] (current) 77.20.151.25 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ------------------------------------------------------------------------------------- | ||
| + | ------------------------------------------------------------------------------------- | ||
| + | ------------------------------------------------------------------------------------- | ||
| + | ------------------------------------------------------------------------------------- | ||
| + | **Buildprocess for Windows:** | ||
| + | |||
| + | |||
| + | |||
| + | > In the console: switch to tool's main folder where the main CMakeLists.txt lies. | ||
| + | |||
| + | >> cd multivariateprojectionviewer\MultivariateProjectionViewer | ||
| + | |||
| + | > run cmake -> Makefiles are generated | ||
| + | >> cmake -G "MinGW Makefiles" | ||
| + | |||
| + | > run make to compile the code: | ||
| + | >> mingw32-make | ||
| + | |||
| + | > start the Tool: | ||
| + | >> source\IUI\VisualSheetExplorer.exe | ||
| + | |||
| + | IN WIN: | ||
| + | |||
| + | If you do so, as a post_build process, a | ||
| + | programm is run named "windeployqt .exe", which collects all | ||
| + | required *.dll's of the main application and copy it to the binary folder. | ||
| + | |||
| + | - - - - - | ||
| + | Morover, in folder "\tools", there, a lot of build scripts are available. | ||
| + | |||
| + | Use the provided Builtools (Build_Start.cmd) or this Build Process: | ||
| + | |||
| + | The above mentioned build is generated with: | ||
| + | WIN: - Build_Start.cmd (= cmake > mingw32-make > windeployqt.exe) | ||
| + | |||
| + | To additionally build the installer you call: | ||
| + | WIN: - MakeClean_Build_And_MakeGenerateInstaller.cmd | ||
| + | (= cmake > mingw32-make > windeployqt.exe > iccs installerscript.iss) | ||
| + | |||
| + | where iccs is a tool from "innosetup" that build the installer based on a | ||
| + | script that is placed under the folder "InstallerBuildProcess" | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ------------------------------------------------------------------------------------- | ||
| **Notizen zum Buildprozess:** | **Notizen zum Buildprozess:** | ||
| Line 9: | Line 58: | ||
| darauf achten das in der resultierenden makefile | darauf achten das in der resultierenden makefile | ||
| -G bei den Kompileranweisungen stehen soll und | -G bei den Kompileranweisungen stehen soll und | ||
| - | ein -O3 in den Kompileranweisungen eben nicht stehen sollte. | + | ein -O2 in den Kompileranweisungen eben nicht stehen sollte. |
| + | |||
| + | Gesetzt werden die Kompilerflags in der Cmake für die entsprechenden Kompilermodi durch: | ||
| + | |||
| + | SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") | ||
| + | SET(CMAKE_CXX_FLAGS_DEBUG "-Wall") | ||
| + | SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") | ||
| + | |||
| + | Bitte darauf verzichten CMAKE_CXX_FLAGS zu verwenden. Diese Kompileranweisungen gelten für | ||
| + | jeden Mode was zu Konflikten führen kann (in der Vergangenheit hatten wir das gelegentlich); | ||
| + | darum setzen wir CMAKE_CXX_FLAGS nicht mehr ein. | ||
| Line 15: | Line 74: | ||
| set(CMAKE_BUILD_TYPE Release) | set(CMAKE_BUILD_TYPE Release) | ||
| - | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 ") | ||
| darauf achten das in der resultierenden makefile ein | darauf achten das in der resultierenden makefile ein | ||
| - | -O3 bei den Kompileranweisungen stehen soll und | + | -O2 bei den Kompileranweisungen stehen soll und |
| ein -G in den Kompileranweisungen eben nicht stehen sollte. | ein -G in den Kompileranweisungen eben nicht stehen sollte. | ||
| + | Als Optimierungslevel verwednen wir O2 und nicht O3. | ||
| + | Das kompilieren mit O3 führ zu Konflikten mit unserer Eigenversion, | ||
| + | daher verwenden wir O2. | ||
| ---- | ---- | ||
| **Hinweis:** | **Hinweis:** | ||
| - | CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG | + | CMAKE_C_FLAGS_RELEASE:STRING=-O2 -DNDEBUG |
| ...DNDEBUG mein asserts will be removed | ...DNDEBUG mein asserts will be removed | ||
| + | |||
| + | ------------------------------------------------------------------------------------- | ||
| + | ------------------------------------------------------------------------------------- | ||
| + | ------------------------------------------------------------------------------------- | ||
| + | ------------------------------------------------------------------------------------- | ||
| + | |||
| + | |||
| + | |||