User Tools

Site Tools


en:compilation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:compilation [2025/03/06 10:29] jmgren:compilation [2025/03/19 10:37] (current) jmgr
Line 29: Line 29:
 </code> </code>
  
-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 && cd build && cmake .. && make+mkdir build 
 +cd build 
 +cmake .. -DCMAKE_PREFIX_PATH=$HOME/Qt/6.6.3/gcc_64 -DCMAKE_BUILD_TYPE=Release 
 +cmake --build .
 </code> </code>
  
Line 44: Line 47:
     - Check Qt 5 Compatibility Module     - Check Qt 5 Compatibility Module
     - In "Additional libraries":     - In "Additional libraries":
-      - Qt Multimedia +      - Check Qt Multimedia 
-      - Qt Speech+      - Check Qt Speech
   - Install CMake: https://cmake.org/download/   - Install CMake: https://cmake.org/download/
   - Install Git: https://gitforwindows.org/   - Install Git: https://gitforwindows.org/
   - Download the source code for OpenCV 4.x: https://opencv.org/releases/ and extract the archive   - Download the source code for OpenCV 4.x: https://opencv.org/releases/ and extract the archive
-  - Open a Command Prompt: +  - Open a Command Prompt: (update the path to Qt if you installed it somewhere else) 
-    set PATH=C:\Qt\Tools\mingw1120_64\bin;%PATH% (update the path to Qt if you installed somewhere else) +<code bash> 
-    cd <OpenCV directory> +set PATH=C:\Qt\Tools\mingw1120_64\bin;%PATH% 
-    mkdir build +cd <OpenCV directory> 
-    cd build +mkdir build 
-    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 .. +cd build 
-    mingw32-make -j install+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 .. 
 +cmake --build . 
 +</code>
   - 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)
-    - git clone --recursive https://github.com/Jmgr/actiona.git+    - <code bash>git clone --recursive https://github.com/Jmgr/actiona.git</code>
   - 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)
     - In Projects -> CMake -> Initial Configuration, click Add on the right, then Directory.     - In Projects -> CMake -> Initial Configuration, click Add on the right, then Directory.
     - Add "OpenCV_DIR" as the key, and "<OpenCV directory>\build" as the value     - Add "OpenCV_DIR" as the key, and "<OpenCV directory>\build" as the value
     - Click "Re-configure with Initial Parameters"     - Click "Re-configure with Initial Parameters"
     - In Build steps -> Details, in Tool aguments, add -j (allows compiling with more than one core)     - In Build steps -> Details, in Tool aguments, add -j (allows compiling with more than one core)
-    - Set the build type to Release (Debug builds are not currently working when using MinGW on Windows) 
     - Build     - Build
   - You should be able to run Actiona from within QtCreator now   - You should be able to run Actiona from within QtCreator now
Line 110: Line 115:
 Then build. Then build.
 <code bash> <code bash>
-mkdir build && cd build && cmake .. && make+mkdir build 
 +cd build 
 +cmake .. 
 +cmake --build .
 </code> </code>
  
Line 123: Line 131:
 git pull git pull
 cmake .. cmake ..
-make+cmake --build .
 </code> </code>
en/compilation.1741256966.txt.gz · Last modified: 2025/03/06 10:29 by jmgr