en:compilation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:compilation [2021/02/13 11:23] – external edit 127.0.0.1 | en:compilation [2025/07/08 12:43] (current) – jmgr | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Get & compile | + | ====== |
| + | ==== Debian/ | ||
| + | Tested on Ubuntu 22.04. Unfortunately Actiona requires Qt 6.4 or more recent, so we can't use the system libraries. | ||
| + | |||
| + | Dependencies: | ||
| + | <code bash> | ||
| + | sudo apt-get install git-core build-essential cmake libnotify-dev libopencv-dev libxtst-dev libglx-dev libgl1-mesa-dev libxcb-cursor0 libudev-dev libbluetooth-dev libxkbcommon-dev | ||
| + | </ | ||
| + | |||
| + | Download the [[https:// | ||
| + | |||
| + | Create/Sign up to your Qt Account, choose " | ||
| + | |||
| + | Install Qt 6.6.3 or more recent with the following modules: | ||
| + | - Desktop | ||
| + | - Qt 5 Compatibility Module | ||
| + | - Additional Libraries | ||
| + | - Qt Multimedia | ||
| + | - Qt Speech | ||
| + | |||
| + | Get the code. | ||
| + | <code bash> | ||
| + | git clone --recursive https:// | ||
| + | </ | ||
| + | |||
| + | Enter the actiona directory: | ||
| + | <code bash> | ||
| + | cd actiona | ||
| + | </ | ||
| + | |||
| + | Then build (you might have to replace $HOME/Qt with the path where your Qt installation resides). | ||
| + | <code bash> | ||
| + | mkdir build | ||
| + | cd build | ||
| + | cmake .. -DCMAKE_PREFIX_PATH=$HOME/ | ||
| + | cmake --build . | ||
| + | </ | ||
| + | |||
| + | To run actiona, enter: | ||
| + | <code bash> | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | ===== Windows (with MinGW) ===== | ||
| + | - Download and install the Qt online installer: https:// | ||
| + | - Select Qt 6.6.3 (Actiona 3 is not compatible with newer versions at the moment) | ||
| + | - Check Qt 5 Compatibility Module | ||
| + | - In " | ||
| + | - Check Qt Multimedia | ||
| + | - Check Qt Speech | ||
| + | - Install CMake: https:// | ||
| + | - Install Git: https:// | ||
| + | - Download the source code for OpenCV 4.x: https:// | ||
| + | - Open a Command Prompt: (update the path to Qt if you installed it somewhere else) | ||
| + | <code bash> | ||
| + | set PATH=C: | ||
| + | cd <OpenCV directory> | ||
| + | mkdir build | ||
| + | cd build | ||
| + | cmake -G "MinGW Makefiles" | ||
| + | cmake --build . | ||
| + | </ | ||
| + | - Open Git Bash: (and cd to the directory where you want to save the source code for Actiona) | ||
| + | - <code bash>git clone --recursive https:// | ||
| + | - Open QtCreator: | ||
| + | - in Edit -> Preferences, | ||
| + | - 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) | ||
| + | - In Projects -> CMake -> Initial Configuration, | ||
| + | - Add " | ||
| + | - Click " | ||
| + | - In Build steps -> Details, in Tool aguments, add -j (allows compiling with more than one core) | ||
| + | - Build | ||
| + | - You should be able to run Actiona from within QtCreator now | ||
| - | Please note: this is to compile actiona 3.9.0 and higher. Older versions depended on Qt 4 and are not supported anymore. | + | ====== Version v3.10.2 or older ====== |
| ===== Windows ===== | ===== Windows ===== | ||
| Line 8: | Line 81: | ||
| - Install QtCreator | - Install QtCreator | ||
| - Install OpenCV binaries for Windows (version 2.x) | - Install OpenCV binaries for Windows (version 2.x) | ||
| - | | + | - Open CMakeLists.txt using QtCreator |
| - | | + | |
| - In the " | - In the " | ||
| - OPENCV_LIB=" | - OPENCV_LIB=" | ||
| Line 15: | Line 87: | ||
| - OPENCV_LIB_CORE=Name of the core library filename (for example opencv_core249) | - OPENCV_LIB_CORE=Name of the core library filename (for example opencv_core249) | ||
| - OPENCV_LIB_IMGPROC=Name of the imgproc library filename (for example opencv_imgproc249) | - OPENCV_LIB_IMGPROC=Name of the imgproc library filename (for example opencv_imgproc249) | ||
| - | - BOOST_INCLUDE=" | ||
| - Compile | - Compile | ||
| - Copy the opencv_corexxx.dll and opencv_imgproc.dll files from the OpenCV install path to the build directory containing all the binaries that where built in the previous step | - Copy the opencv_corexxx.dll and opencv_imgproc.dll files from the OpenCV install path to the build directory containing all the binaries that where built in the previous step | ||
| Line 24: | Line 95: | ||
| We need Git, a C++ compiler (that can compile C++11 code, so for GCC, version 4.7 or better), Qt and all dependencies: | We need Git, a C++ compiler (that can compile C++11 code, so for GCC, version 4.7 or better), Qt and all dependencies: | ||
| <code bash> | <code bash> | ||
| - | sudo apt-get install git-core build-essential qtbase5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev qtscript5-dev qttools5-dev qtmultimedia5-dev qttools5-dev-tools libnotify-dev | + | sudo apt-get install git-core build-essential |
| </ | </ | ||
| Line 34: | Line 105: | ||
| Get the code. | Get the code. | ||
| <code bash> | <code bash> | ||
| - | git clone https:// | + | git clone --recursive |
| </ | </ | ||
| Line 44: | Line 115: | ||
| Then build. | Then build. | ||
| <code bash> | <code bash> | ||
| - | qmake -r && make | + | mkdir build |
| + | cd build | ||
| + | cmake .. | ||
| + | cmake --build . | ||
| </ | </ | ||
| Line 53: | Line 127: | ||
| === Update === | === Update === | ||
| - | To update your version, open a terminal, go to the actiona directory and enter | + | To update your version, open a terminal, go to the actiona/ |
| <code bash> | <code bash> | ||
| git pull | git pull | ||
| - | qmake -r | + | cmake .. |
| - | make | + | cmake --build . |
| </ | </ | ||
en/compilation.1613215410.txt.gz · Last modified: by 127.0.0.1
