User Tools

Site Tools


en:compilation

This is an old revision of the document!


Version v3.11.0 or more recent

Debian/Ubuntu/Mint

Tested on Ubuntu 22.04. Unfortunately Actiona requires Qt 6.4 or more recent, so we can't use the system libraries.

Dependencies:

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 Qt online installer (open source edition) and install it.

Create/Sign up to your Qt Account, choose "Custom installation".

Install Qt 6.6.3 (Qt 6.7 is not compatible) with the following modules:

  1. Desktop
  2. Qt 5 Compatibility Module
  3. Additional Libraries
    1. Qt Multimedia
    2. Qt Speech

Get the code.

git clone --recursive https://github.com/Jmgr/actiona.git

Enter the actiona directory:

cd actiona

Then build.

mkdir build && cd build && cmake .. && make

To run actiona, enter:

./actiona/actiona

Windows (with MinGW)

  1. Download and install the Qt online installer: https://www.qt.io/download-qt-installer-oss (note that you will need to create an account and log in)
    1. Select Qt 6.6.3 (Actiona 3 is not compatible with newer versions at the moment)
    2. Check Qt 5 Compatibility Module
    3. In "Additional libraries":
      1. Check Qt Multimedia
      2. Check Qt Speech
  2. Download the source code for OpenCV 4.x: https://opencv.org/releases/ and extract the archive
  3. Open a Command Prompt:
    1. set PATH=C:\Qt\Tools\mingw1120_64\bin;%PATH%

      (update the path to Qt if you installed it somewhere else)

    2. cd <OpenCV directory>
    3. mkdir build
    4. cd build
    5. cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=. -DBUILD_SHARED_LIBS=ON -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_opencv_world=OFF -DBUILD_opencv_calib3d=OFF -DBUILD_opencv_dnn=OFF -DBUILD_opencv_features2d=OFF -DBUILD_opencv_flann=OFF -DBUILD_opencv_gapi=OFF -DBUILD_opencv_highgui=OFF -DBUILD_opencv_ml=OFF -DBUILD_opencv_objdetect=OFF -DBUILD_opencv_photo=OFF -DBUILD_opencv_stitching=OFF -DBUILD_opencv_video=OFF -DBUILD_opencv_videoio=OFF -DBUILD_opencv_imgcodecs=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_js=OFF -DBUILD_opencv_python_bindings_generator=OFF -DBUILD_opencv_ts=OFF -DBUILD_opencv_perf_core=OFF -DBUILD_opencv_perf_imgproc=OFF -DBUILD_opencv_perf_features2d=OFF -DBUILD_opencv_perf_flann=OFF ..
    6. mingw32-make -j install
  4. Open Git Bash: (and cd to the directory where you want to save the source code for Actiona)
    1. git clone --recursive https://github.com/Jmgr/actiona.git
  5. Open QtCreator:
    1. in settings, check that your kits are not greyed out: if so, check that the CMake tool is set
    2. File → Open file or project, select the CMakeLists.txt file in the Actiona source code directory
    3. Set the build type to Release (Debug builds are not currently working when using MinGW on Windows)
    4. In Projects → CMake → Initial Configuration, click Add on the right, then Directory.
    5. Add "OpenCV_DIR" as the key, and "<OpenCV directory>\build" as the value
    6. Click "Re-configure with Initial Parameters"
    7. In Build steps → Details, in Tool aguments, add -j (allows compiling with more than one core)
    8. Build
  6. You should be able to run Actiona from within QtCreator now

Version v3.10.2 or older

Windows

  1. Install Visual Studio 2015 (Community edition should work)
  2. Install Qt (5.2.0 or more recent, QtScript is needed)
  3. Install QtCreator
  4. Install OpenCV binaries for Windows (version 2.x)
  5. Open CMakeLists.txt using QtCreator
  6. In the "Projects" tab, in "additional arguments", add:
    1. OPENCV_LIB="Path to the OpenCV library folder" (where all the .lib are)
    2. OPENCV_INCLUDE="Path to the OpenCV include path" (containing the opencv2 folder)
    3. OPENCV_LIB_CORE=Name of the core library filename (for example opencv_core249)
    4. OPENCV_LIB_IMGPROC=Name of the imgproc library filename (for example opencv_imgproc249)
  7. Compile
  8. 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
  9. Run

GNU/Linux

Debian/Ubuntu/Mint

First download

We need Git, a C++ compiler (that can compile C++11 code, so for GCC, version 4.7 or better), Qt and all dependencies:

sudo apt-get install git-core build-essential cmake qtbase5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libqt5texttospeech5-dev qtscript5-dev qttools5-dev qtmultimedia5-dev qttools5-dev-tools libnotify-dev libudev-dev libopencv-dev libxtst-dev

If you want to use SQL databases you will also have to install the corresponding bindings, for instance, MySQL:

sudo apt-get install libqt5sql5-mysql

Get the code.

git clone --recursive https://github.com/Jmgr/actiona.git

Enter the actiona directory:

cd actiona

Then build.

mkdir build && cd build && cmake .. && make

To run actiona, enter:

./actiona

Update

To update your version, open a terminal, go to the actiona/build directory and enter

git pull
cmake ..
make
en/compilation.1741262091.txt.gz · Last modified: 2025/03/06 11:54 by jmgr