ci: fix OpenCV include path for MinGW cross-compile
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 1m47s
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 1m47s
This commit is contained in:
@@ -59,7 +59,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cmake -S . -B build-windows -G Ninja \
|
cmake -S . -B build-windows -G Ninja \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake \
|
||||||
-DCMAKE_BUILD_TYPE="$BUILD_TYPE"
|
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
|
||||||
|
-DOpenCV_DIR=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/OpenCV \
|
||||||
|
-DOpenCV_INCLUDE_DIRS=/usr/x86_64-w64-mingw32/sys-root/mingw/include/opencv4
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build-windows --config "$BUILD_TYPE" --parallel
|
run: cmake --build build-windows --config "$BUILD_TYPE" --parallel
|
||||||
|
|||||||
Reference in New Issue
Block a user