diff --git a/QtOpenCVImageTool.zip b/QtOpenCVImageTool.zip deleted file mode 100644 index 66ddde7..0000000 Binary files a/QtOpenCVImageTool.zip and /dev/null differ diff --git a/build_windows.bat b/build_windows.bat deleted file mode 100644 index 6809b6c..0000000 --- a/build_windows.bat +++ /dev/null @@ -1,42 +0,0 @@ -@echo off -setlocal - -rem Usage: -rem build_windows.bat C:\Qt\6.6.0\mingw_64 C:\opencv\build -rem build_windows.bat C:\Qt\6.6.0\msvc2019_64 C:\opencv\build\x64\vc16\lib "Visual Studio 17 2022" - -if "%~1"=="" ( - echo Usage: %~nx0 ^ ^ [CMakeGenerator] - echo Example MinGW: %~nx0 C:\Qt\6.6.0\mingw_64 C:\opencv\build "MinGW Makefiles" - echo Example MSVC : %~nx0 C:\Qt\6.6.0\msvc2019_64 C:\opencv\build\x64\vc16\lib "Visual Studio 17 2022" - exit /b 1 -) - -if "%~2"=="" ( - echo Missing OpenCV_DIR. - exit /b 1 -) - -set QT_DIR=%~1 -set OPENCV_DIR=%~2 -set GENERATOR=%~3 - -if "%GENERATOR%"=="" ( - set GENERATOR=MinGW Makefiles -) - -if not exist build-windows ( - mkdir build-windows -) - -cmake -S . -B build-windows -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="%QT_DIR%" -DOpenCV_DIR="%OPENCV_DIR%" -if errorlevel 1 exit /b %errorlevel% - -cmake --build build-windows --config Release -if errorlevel 1 exit /b %errorlevel% - -echo. -echo Build finished. -echo If the exe cannot start because DLLs are missing, run: -echo "%QT_DIR%\bin\windeployqt.exe" build-windows\QtOpenCVImageTool.exe -echo Then copy OpenCV runtime DLLs to the exe directory. diff --git a/build_wsl_windows.sh b/build_wsl_windows.sh deleted file mode 100755 index eeca5db..0000000 --- a/build_wsl_windows.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -if ! command -v x86_64-w64-mingw32-g++ >/dev/null 2>&1; then - echo "Missing x86_64-w64-mingw32-g++." - echo "Install it in WSL with: sudo apt install mingw-w64" - exit 1 -fi - -if [[ "${QT_MINGW_PREFIX:-}" == "" ]]; then - echo "Missing QT_MINGW_PREFIX." - echo "Example: export QT_MINGW_PREFIX=/opt/mxe/usr/x86_64-w64-mingw32.shared/qt6" - exit 1 -fi - -if [[ "${OpenCV_DIR:-}" == "" ]]; then - echo "Missing OpenCV_DIR." - echo "Example: export OpenCV_DIR=/opt/mxe/usr/x86_64-w64-mingw32.shared/lib/cmake/opencv4" - exit 1 -fi - -cmake -S . -B build-wsl-windows \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/mingw64.cmake \ - -DCMAKE_PREFIX_PATH="${QT_MINGW_PREFIX}" \ - -DOpenCV_DIR="${OpenCV_DIR}" - -cmake --build build-wsl-windows --config Release - -echo "Windows executable should be under build-wsl-windows/." diff --git a/cmake/toolchains/mingw64.cmake b/cmake/toolchains/mingw64.cmake deleted file mode 100644 index 0dcfb71..0000000 --- a/cmake/toolchains/mingw64.cmake +++ /dev/null @@ -1,11 +0,0 @@ -set(CMAKE_SYSTEM_NAME Windows) -set(CMAKE_SYSTEM_PROCESSOR x86_64) - -set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) -set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) -set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) - -set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)