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

Markus Neteler neteler at osgeo.org
Mon Sep 17 13:55:46 PDT 2012


On Mon, Sep 17, 2012 at 5:47 AM, Chemin, Yann (IWMI) <Y.Chemin at cgiar.org> wrote:
> Hi all,
>
> I am looking for ways to display wxGUI of GRASS (trunk version) in Android.

Just curious: did you compile GRASS 7 on Android?

I just tried with a cross compiled
(arm-gp2x-linux-gcc-c++-4.1.2-13.fc17.x86_64),
using Marco Bernasocchi build scripts from QGIS
and got quite a bit compiled.

A few issues are in the library part:

ls.c: In function 'G_ls_format':
ls.c:173: error: storage size of 'size' isn't known
make[3]: *** [OBJ.arm-unknown-linux-androideabi/ls.o] Error 1
make[3]: Leaving directory `/home/neteler/grass70/lib/gis'

--> use #ifdef __ANDROID__ ?

Then:

cd OBJ.arm-unknown-linux-androideabi &&
GISRC=/home/neteler/grass70/dist.arm-unknown-linux-androideabi/demolocation/.grassrc70
GISBASE=/home/neteler/grass70/dist.arm-unknown-linux-androideabi
PATH="/home/neteler/grass70/dist.arm-unknown-linux-androideabi/bin:/home/neteler/grass70/dist.arm-unknown-linux-androideabi/bin:$PATH"
PYTHONPATH="/home/neteler/grass70/dist.arm-unknown-linux-androideabi/etc/python:/home/neteler/grass70/dist.arm-unknown-linux-androideabi/etc/python:$PYTHONPATH"
LD_LIBRARY_PATH="/home/neteler/grass70/dist.arm-unknown-linux-androideabi/bin:/home/neteler/grass70/dist.arm-unknown-linux-androideabi/lib:/home/neteler/grass70/dist.arm-unknown-linux-androideabi/lib:"
LC_ALL=C ./test
/bin/sh: ./test: cannot execute binary file
make[5]: *** [OBJ.arm-unknown-linux-androideabi/test.tmp] Error 126
make[5]: Leaving directory `/home/neteler/grass70/lib/vector/diglib'

Some Makefile issues:

rm -f /home/neteler/grass70/dist.arm-unknown-linux-androideabi/etc/VERSIONNUMBER
/usr/bin/install -c  prompt.py
/home/neteler/grass70/dist.arm-unknown-linux-androideabi/etc/prompt.py
make[3]: *** No rule to make target
`/home/neteler/grass70/dist.arm-unknown-linux-androideabi/docs/html/help_loc_struct.png',
needed by `default'.  Stop.
make[3]: *** Waiting for unfinished jobs....
chmod +r /home/neteler/grass70/dist.arm-unknown-linux-androideabi/etc/VERSIONNUMBER
chmod +r /home/neteler/grass70/dist.arm-unknown-linux-androideabi/etc/license
make[3]: Leaving directory `/home/neteler/grass70/lib/init'

test -d OBJ.arm-unknown-linux-androideabi || mkdir -p
OBJ.arm-unknown-linux-androideabi
make[4]: *** No rule to make target
`/home/neteler/grass70/dist.arm-unknown-linux-androideabi/docs/html/grass-dbf.html',
needed by `db_html'.  Stop.
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/home/neteler/grass70/db/drivers/dbf'

make[4]: *** No rule to make target
`/home/neteler/grass70/dist.arm-unknown-linux-androideabi/docs/html/grass-ogr.html',
needed by `db_html'.  Stop.
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/home/neteler/grass70/db/drivers/ogr'

Eventually I didn't get the link to PROJ4 right, so subsequent compilation
of modules depending on that naturally fails. But I didn't spend time on
this.

Not sure how to solve above issues:

Markus

PS: Maybe it is useless to run GRASS on Android but maybe not.. :)


More information about the grass-dev mailing list