Closed paulocoutinhox closed 2 years ago
I cannot reproduce the issue using https://dl.google.com/android/repository/android-ndk-r22b-linux-x86_64.zip (so cross compilaton from Linux x86_64) and using the x86_64-linux-android21 toolchain
Here's the procedure I followed
# Build sqlite3
wget https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
tar xvzf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
CC=$HOME/android-ndk-r22b/./toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang CXX=$HOME/android-ndk-r22b/./toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang++ ./configure --host=x86_64-linux-android21 --prefix=$HOME/gdal/android/install --disable-static
make -j12
make install
cd ..
# Build PROJ
wget https://download.osgeo.org/proj/proj-8.1.0.tar.gz
tar xvzf proj-8.1.0.tar.gz
cd proj-8.1.0/
PKG_CONFIG_PATH=/home/even/gdal/android/install/lib/pkgconfig CC=$HOME/android-ndk-r22b/./toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang CXX=$HOME/android-ndk-r22b/./toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang++ ./configure --host=x86_64-linux-android21 --prefix=$HOME/gdal/android/install --disable-static --disable-tiff --without-curl
make -j12 install
cd ..
# Build GDAL
cd gdal
PKG_CONFIG_PATH=/home/even/gdal/android/install/lib/pkgconfig CC=$HOME/android-ndk-r22b/./toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang CXX=$HOME/android-ndk-r22b/./toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang++ ./configure --host=x86_64-linux-android21 --enable-debug --with-proj=/home/even/gdal/android/install --without-ogdi --without-hdf5 --with-libz=internal
make -j12
This might be specific to using MacOSX ?
closing as non reproduced
Hi,
Im trying build it for android, but im receiving a lot of standard library error.
Example:
LOG: