Try fix CUPS include not found

This commit is contained in:
khanhduytran0 2020-09-27 13:26:46 +07:00
parent 6035b841a8
commit 3bd64fa686
6 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@ set -e
export FREETYPE_DIR=`pwd`/freetype-2.6.2/build_android-${TARGET_SHORT}
export CUPS_DIR=`pwd`/cups-2.2.4
export CFLAGS+="-I$CUPS_DIR"
export CXXFLAGS+="-I$CUPS_DIR"
# My system's JDK is too old (7.0), so we add an Oracle boot JDK.
# Set "USE_SYSTEM_JDK_8=1" to use system jdk instead
if [ -z "$USE_SYSTEM_JDK_8" ]

View File

@ -5,7 +5,7 @@ export NDK=$NDK_HOME
export ANDROID_DEVKIT=$NDK/generated-toolchains/android-${TARGET_SHORT}-toolchain
export TOOLCHAIN=$ANDROID_DEVKIT
export CPPFLAGS="-I$NDK/platforms/android-21/arch-${TARGET_SHORT}/usr/include -I/usr/lib"
export CPPFLAGS="-I/usr/include -I$NDK/platforms/android-21/arch-${TARGET_SHORT}/usr/include -I/usr/lib"
export LDFLAGS="-L$NDK/platforms/android-21/arch-${TARGET_SHORT}/usr/lib"
# Configure and build.