-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path issue while compiling the script #7
Comments
Hi, |
Hello ! |
same issue i got |
any solution ?? in my project even ccp folder also not getting generated |
Try to make sure that the path where the |
I run into the same problem after compile dlib. To quick fix, you can comment this line |
Hi @kim-ninh , thank you very much for the suggestion. Could you check if the following code solves the issue (replace this code-block): # Dlib library path:
$DLIB_PATH = 'dlib'
function Compile-Dlib {
$CWD = Get-Location
Set-Location $DLIB_PATH
Make-Dir 'build'
Write-Host '=> Compiling Dlib...'
sleep 0.5
ForEach ($abi in $ABIs) {
Write-Host
Write-Host "=> Compiling Dlib for ABI: '$abi'..."
sleep 0.5
Make-Dir "build\$abi"
Set-Location "build\$abi"
$cmakeArguments = @(
"-DBUILD_SHARED_LIBS=1",
"-DANDROID_NDK=$NDK",
"-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN",
"-GNinja",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions",
"-DCMAKE_C_FLAGS=-O3",
"-DANDROID_ABI=$abi",
"-DANDROID_PLATFORM=android-$MIN_SDK",
"-DANDROID_TOOLCHAIN=clang",
"-DANDROID_STL=c++_shared",
"-DANDROID_CPP_FEATURES=rtti exceptions",
"-DCMAKE_PREFIX_PATH=..\..\",
"..\..\"
)
$stripArguments = @(
"--strip-unneeded",
"dlib/libdlib.so"
)
& $AndroidCmake $cmakeArguments
sleep 0.5
Write-Host "=> Generating the 'dlib/libdlib.so' for ABI: '$abi'..."
& $AndroidCmake --build .
sleep 0.5
Write-Host "=> Stripping libdlib.so for ABI: '$abi'to reduce space..."
& $STRIPPERS[$abi] $stripArguments
sleep 0.5
Write-Host '=> done.'
Set-Location $CWD
sleep 0.5
}
} Thanks in advance |
Sound great 👌 |
Any idea what is might be?
The text was updated successfully, but these errors were encountered: