Compile cvextern without TIF

This commit is contained in:
Tiago Conceição
2023-01-08 01:17:38 +00:00
parent 86a432e212
commit e2aaffbf9b
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -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"
+3 -2
View File
@@ -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