C++学习(三四六)cygwin 交叉编译 gdal
Posted hankern
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++学习(三四六)cygwin 交叉编译 gdal相关的知识,希望对你有一定的参考价值。
需要使用有gcc的交叉编译工具链
1、交叉编译工具链所在的bin目录放入Path环境变量
make-standalone-toolchain.sh --arch=arm64 --platform=android-28 --install-dir=d:\\aarch64-linux-android-hankern --force
make-standalone-toolchain.sh --arch=arm64 --toolchain=aarch64-linux-android-4.9 --platform=android-28 --install-dir=d:\\aarch64-linux-android-hankern --force
使用r16b的交叉编译工具链,这里面有gcc
D:\\android-ndk-r16b\\toolchains\\aarch64-linux-android-4.9\\prebuilt\\windows-x86_64\\bin
2、configure
./configure --prefix=/cygdrive/E/Projects/QT5.12/osg_earth_android_build/3rdpartyAndroid/gdal/obj/local/armeabi-v8a --host=aarch64-linux-android --with-threads --with-ogr --without-geos --with-libz=internal --with-png=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-sqlite3=yes -without-libtool -with-oci=no --with-xerces=no --with-expat=no --with-libkml=no --without-jpeg12 --without-bsb --without-grib --without-openfilegdb --without--filegdb --without-pam --without-pdf --without-sentinel2 --without-ctg --without-kmlsuperoverlay --without-wcs --without-vdv --without-dgn --without-dwg
问题1:no acceptable C compiler found in $PATH
以上是关于C++学习(三四六)cygwin 交叉编译 gdal的主要内容,如果未能解决你的问题,请参考以下文章
cygwin 中如何安装arm-linux-gcc交叉编译器