Hi Markus, Rooted the Android 4.0.3, installed an Ubuntu arm img, apt-get update, apt-get install grass-dev, apt-get install <additional GRASS dep>, svn co trunk , conf, make, make install, (compiled required stuff within the img Linux CLI), got stuck with GUI, but eventually all went well as androidVNC has a Send Key button (ctrl+shift+t calls the terminal in Ubuntu, then it is as usual: grass70 is responding well).
On Archos 80 g9 Turbo (dual-core) I thought make -j2 would do it, bad idea, /tmp gets flooded and just refuses files with a no space left warning. Would like to indulge in your version of things, let us speak a bit off ML. However, there will be a problem: GUI. wxPython is not even close to alpha release on Android. So it will be a problem down the road. Why GRASS GIS on Android? For fun first, for work later. Did learn few things on the way, that was fun. I needed a half Kg programming machine for on-the-road GRASS/GDAL stuff with OpenMP, thought that if GRASS would compile its trunk in one way or another in that dual-core Android, then I would be keeping the device and ditch nettop/micro-laptop etc... Cheers, Yann ________________________________________ From: [email protected] [[email protected]] on behalf of Markus Neteler [[email protected]] Sent: Tuesday, September 18, 2012 2:25 AM To: Chemin, Yann (IWMI) Cc: GRASS developers list Subject: Re: [GRASS-dev] Grass SVN in Android, display issue On Mon, Sep 17, 2012 at 5:47 AM, Chemin, Yann (IWMI) <[email protected]> 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.. :) _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
