en:compilation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:compilation [2025/03/06 11:54] – [Windows (with MinGW)] jmgr | en:compilation [2025/07/08 12:43] (current) – jmgr | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Create/Sign up to your Qt Account, choose " | Create/Sign up to your Qt Account, choose " | ||
| - | Install Qt 6.6.3 (Qt 6.7 is not compatible) | + | Install Qt 6.6.3 or more recent |
| - Desktop | - Desktop | ||
| - Qt 5 Compatibility Module | - Qt 5 Compatibility Module | ||
| Line 29: | Line 29: | ||
| </ | </ | ||
| - | Then build. | + | Then build (you might have to replace $HOME/Qt with the path where your Qt installation resides). |
| <code bash> | <code bash> | ||
| - | mkdir build && | + | mkdir build |
| + | cd build | ||
| + | cmake .. -DCMAKE_PREFIX_PATH=$HOME/ | ||
| + | cmake --build . | ||
| </ | </ | ||
| Line 49: | Line 52: | ||
| - Install Git: https:// | - Install Git: https:// | ||
| - Download the source code for OpenCV 4.x: https:// | - Download the source code for OpenCV 4.x: https:// | ||
| - | - Open a Command Prompt: | + | - Open a Command Prompt: |
| - | | + | <code bash> |
| - | - <code bash>cd <OpenCV directory></ | + | set PATH=C: |
| - | - <code bash>mkdir build</ | + | cd <OpenCV directory> |
| - | - <code bash>cd build</ | + | mkdir build |
| - | - <code bash>cmake -G "MinGW Makefiles" | + | cd build |
| - | - <code bash> | + | cmake -G "MinGW Makefiles" |
| + | cmake --build . | ||
| + | </ | ||
| - Open Git Bash: (and cd to the directory where you want to save the source code for Actiona) | - Open Git Bash: (and cd to the directory where you want to save the source code for Actiona) | ||
| - <code bash>git clone --recursive https:// | - <code bash>git clone --recursive https:// | ||
| - Open QtCreator: | - Open QtCreator: | ||
| - | - in settings, check that your kits are not greyed out: if so, check that the CMake tool is set | + | - in Edit -> Preferences, check that your kits are not greyed out: if so, check that the CMake tool is set |
| - File -> Open file or project, select the CMakeLists.txt file in the Actiona source code directory | - File -> Open file or project, select the CMakeLists.txt file in the Actiona source code directory | ||
| - Set the build type to Release (Debug builds are not currently working when using MinGW on Windows) | - Set the build type to Release (Debug builds are not currently working when using MinGW on Windows) | ||
| Line 110: | Line 115: | ||
| Then build. | Then build. | ||
| <code bash> | <code bash> | ||
| - | mkdir build && | + | mkdir build |
| + | cd build | ||
| + | cmake .. | ||
| + | cmake --build . | ||
| </ | </ | ||
| Line 123: | Line 131: | ||
| git pull | git pull | ||
| cmake .. | cmake .. | ||
| - | make | + | cmake --build . |
| </ | </ | ||
en/compilation.1741262091.txt.gz · Last modified: by jmgr
