mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
Compile cvextern without TIF
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user