AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2018.03.14 12:25 "[Tiff] Problem with cross compiling tiff-4.0.9 and tiff-4.0.4", by Mark Johnson

When cross compiling tiff-4.0.9, which works correctly for a normal unix configuration, creates no object files when running for (android) armeabi-v7a or arm64-v8a. The same thing happens for tiff-4.0.4.

The created toolchain is correct since everything runs correctly for other projects (i.e. jpeg, iconv, sqlite3 etc.) only for tiff-4.0.9 and tiff-4.0.4 does this fail.

The ./configure runs correctly, config.log showing no errors.

When make is called it seems to swiftly skip through all the commands until it wants to use a created object and then fails.This is so swift that I doubt that it is actually calling something.

make[2]: *** No rule to make target `../port/libport.la', needed by ` libtiff.la'. Stop.

no .deps, .libs directories and *.la or *.o files are created.

---

make

Making all in port

make[1]: Entering directory `/media/mj10777/tb_4/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/archive/cross.compile/armeabi-v7a/tiff-4.0.9/port

'
source='dummy.c' object='dummy.lo' libtool=yes \

DEPDIR=.deps depmode=none /bin/bash ../config/depcomp \

/bin/bash ../libtool  --tag=CC   --mode=compile arm-linux-androideabi-gcc

-DHAVE_CONFIG_H -I. -I../libtiff -I/home/mj10777/000_links/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/apps_local/armeabi-v7a.21/include -I/home/mj10777/000_links/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/apps_local/armeabi-v7a.21/include

 -fPIE -fPIC -DANDROID=1 -Wall -W -c -o dummy.lo dummy.c

/bin/bash ../libtool  --tag=CC   --mode=link arm-linux-androideabi-gcc

 -fPIE -fPIC -DANDROID=1 -Wall -W
 -L/home/mj10777/000_links/gnu_source/adt-bundle-linux/geopaparazzi/

geopaparazzi.eu/libjsqlite-spatialite-android/apps_local/armeabi-v7a.21/lib -L/home/mj10777/000_links/gnu_source/adt-bundle-linux/ndk/android-ndk-r16b/platforms/android-21/arch-arm/usr/lib -pie -o libport.la dummy.lo

 -L/home/mj10777/000_links/gnu_source/adt-bundle-linux/geopaparazzi/

geopaparazzi.eu/libjsqlite-spatialite-android/apps_local/armeabi-v7a.21/lib -lsqlite3 -liconv -lcharset -llzma -lxml2 -lpng -ljpeg -lgif -lwebp

-lgeos_c -lrttopo
 -L/home/mj10777/000_links/gnu_source/adt-bundle-linux/ndk/toolchains/armeabi-v7a.21/sysroot/usr/lib
-lz -lm

make[1]: Leaving directory `/media/mj10777/tb_4/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/archive/cross.compile/armeabi-v7a/tiff-4.0.9/port

'
Making all in libtiff

make[1]: Entering directory `/media/mj10777/tb_4/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/archive/cross.compile/armeabi-v7a/tiff-4.0.9/libtiff

'
make all-am

make[2]: Entering directory `/media/mj10777/tb_4/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/archive/cross.compile/armeabi-v7a/tiff-4.0.9/libtiff

'
source='tif_aux.c' object='tif_aux.lo' libtool=yes \

DEPDIR=.deps depmode=none /bin/bash ../config/depcomp \

/bin/bash ../libtool  --tag=CC   --mode=compile arm-linux-androideabi-gcc

-DHAVE_CONFIG_H -I. -I/home/mj10777/000_links/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/apps_local/armeabi-v7a.21/include -I/home/mj10777/000_links/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/apps_local/armeabi-v7a.21/include

 -fPIE -fPIC -DANDROID=1 -Wall -W -c -o tif_aux.lo tif_aux.c

... many, many more... until

make[2]: *** No rule to make target `../port/libport.la', needed by ` libtiff.la'. Stop.

make[2]: Leaving directory `/media/mj10777/tb_4/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/archive/cross.compile/armeabi-v7a/tiff-4.0.9/libtiff

'
make[1]: *** [all] Error 2

make[1]: Leaving directory `/media/mj10777/tb_4/gnu_source/adt-bundle-linux/geopaparazzi/ geopaparazzi.eu/libjsqlite-spatialite-android/archive/cross.compile/armeabi-v7a/tiff-4.0.9/libtiff

'
make: *** [all-recursive] Error 1

Mark Johnson, Berlin Germany