[GRASS-dev] Grass SVN in Android, display issue

Glynn Clements glynn at gclements.plus.com
Tue Sep 18 14:08:15 PDT 2012


Markus Neteler wrote:

> I have (hopefully) fixed the includes in r53207, now libgis compiles.

You probably shouldn't be including either of those headers directly.
I suspect that the "correct" fix is just:

	#ifdef HAVE_TERMIOS_H
	#include <termios.h>
	#endif

> The next and last library issue after the irrelevant "form" library is:
> 
> clean_temp.c:35: error: conflicting types for '__errno'
> /home/neteler/software/necessitas/android-9-standalonetoolchain/bin/../sysroot/usr/include/errno.h:48:
> note: previous declaration of '__errno' was here
> lock.c:29: error: conflicting types for '__errno'
> /home/neteler/software/necessitas/android-9-standalonetoolchain/bin/../sysroot/usr/include/errno.h:48:
> note: previous declaration of '__errno' was here

Try r53215.

> Then a series of modules are not compiled due to this issue:

> /home/neteler/software/necessitas/android-9-standalonetoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld:
> warning: libgdal.so, needed by
> /home/neteler/grass70/dist.arm-unknown-linux-androideabi/lib/libgrass_vector.7.0.svn.so,
> not found (try using -rpath or -rpath-link)

You probably need to use e.g.:

	LDFLAGS=-Wl,-rpath-link,/path/to/lib ./configure ...

where /path/to/lib is the directory containing the Android version of
libgdal.so.

For a native build, this isn't normally an issue, as the libraries
will be in ld.so.cache or $LD_LIBRARY_PATH (otherwise the programs
won't run).

Having configure add the necessary flags is complicated, as there
needs to be a flag (or set of flags) for each directory, but the flags
are platform-specific.

> All r3.* are not compiled due to the remaining XDR issue (maybe
> irrelevant for now).

r53219 has moved the XDR functions from lib/raster to lib/gis. 
lib/raster3d should be converted to use these.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list