From e2aaffbf9b9cf554305f7d59f04f52f7b1e20584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sun, 8 Jan 2023 01:17:38 +0000 Subject: [PATCH] Compile cvextern without TIF --- build/cvextern.ps1 | 3 +++ build/libcvextern.sh | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build/cvextern.ps1 b/build/cvextern.ps1 index 3f9a807..c3f038c 100644 --- a/build/cvextern.ps1 +++ b/build/cvextern.ps1 @@ -43,6 +43,9 @@ Option" Set-Location "$libFolder" +Write-Output "Configuring" +(Get-Content -Path "$buildFile") -replace '-DBUILD_opencv_video:BOOL=FALSE', '-DBUILD_opencv_video:BOOL=FALSE -DWITH_TIFF:BOOL=FALSE -DEMGU_CV_WITH_TIFF:BOOL=FALSE' | Set-Content -Path "$buildFile" + Write-Output "Building" cmd.exe /c "$buildFile $buildArgs" Write-Output "Completed - Check for errors but also for libcvextern presence on $libFolder\libs\runtimes" diff --git a/build/libcvextern.sh b/build/libcvextern.sh index b2deade..fcb5379 100644 --- a/build/libcvextern.sh +++ b/build/libcvextern.sh @@ -126,11 +126,12 @@ if [ ! -d "$directory" ]; then fi fi - echo "- Bulding" if [ osVariant == "macOS" ]; then + sed -i '' "s/-DBUILD_TIFF:BOOL=TRUE/-DBUILD_TIFF:BOOL=FALSE/g" "$directory/platforms/macos/configure" 2>/dev/null "$directory/platforms/macos/configure" $arch $build_package -else +else # Linux + sed -i "s/-DBUILD_TIFF:BOOL=TRUE/-DBUILD_TIFF:BOOL=FALSE/g" "$directory/platforms/ubuntu/22.04/cmake_configure" 2>/dev/null "$directory/platforms/ubuntu/22.04/cmake_configure" $build_package fi