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