[Gvsig_english] Compiling gvsig mobile for Linux
Joseph Reeves
iknowjoseph at gmail.com
Tue Jun 10 11:28:46 CEST 2008
Hello Juan,
The console only prints the following before the application is displayed:
root at om-gta02:~# gvsig
Forcing initialization of Utils...
Forcing load of ECW DLL...
Unable to load Ermapper libraries!
Forcing load of SHP DLL...
Unable to load SHP libraries!
App params:
Param: 0 : language=en
Param: 1 : s=240x320
Param: 2 : path=/usr/share/gvsig
Log file: /usr/share/gvsig/log/1213175274418.gvsig-mobile.log.txt
There are plenty of messages produced once the application is running, however:
Exception during event dispatch:
java.lang.IllegalArgumentException: width<=0 height<=0
at java.awt.image.SampleModel.<init>(SampleModel.java:90)
at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:86)
at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:69)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:173)
at gnu.java.awt.peer.gtk.GdkGraphicsConfiguration.createCompatibleImage(GdkGraphicsConfiguration.java:81)
at es.prodevelop.gvsig.mobile.fmap.util.Utils.createBufferedImage(Utils.java:583)
at es.prodevelop.gvsig.mobile.gui.canvas.MapControl.startGraphics(MapControl.java:382)
at es.prodevelop.gvsig.mobile.gui.mainframe.MainWindow.componentResized(MainWindow.java:1989)
at java.awt.Component.processComponentEvent(Component.java:3732)
at java.awt.Component.processEvent(Component.java:3697)
at java.awt.Container.processEvent(Container.java:1028)
at java.awt.Window.processEvent(Window.java:655)
at java.awt.Component.dispatchEventImpl(Component.java:5737)
at java.awt.Container.dispatchEventImpl(Container.java:1952)
at java.awt.Window.dispatchEventImpl(Window.java:618)
at java.awt.Component.dispatchEvent(Component.java:2850)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:624)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
at java.lang.VMThread.run(VMThread.java:120)
The latest log, after some clicking around in GvSIG reads as follows:
root at om-gta02:~# cat /usr/share/gvsig/log/1213176037710.gvsig-mobile.log.txt
DEBUG [main] - 1213176043862 - MainWindow llama a su initialize().
DEBUG [main] - 1213176045486 - Start MapControl Initialize
DEBUG [main] - Creating status bar...
DEBUG [main] - Adding status bar...
DEBUG [main] - Adding status bar... done
DEBUG [AWT-EventQueue-2] - 1213176047704 - Nothing drawn
DEBUG [main] - 1213176048157 - startGraphics init
ERROR [main] - While creating main window: width<=0 height<=0
DEBUG [AWT-EventQueue-2] - @@@ symbolsCanvas is NULL
DEBUG [AWT-EventQueue-2] - 1213176048458 - startGraphics init
DEBUG [AWT-EventQueue-2] - 1213176049713 - startGraphics init
WARN [AWT-EventQueue-2] - org.gvsig.i18n.Messages -- Cannot find
translation for Unknown
WARN [AWT-EventQueue-2] - org.gvsig.i18n.Messages -- Cannot find
translation for Unknown
root at om-gta02:~#
Yes, it's a stylus operated device, although the current thinking
amongst developers is that they want it to work with fingers as much
as possible; either way it's operated by pressing the screen.
The buttons within the application don't have any affect at all. The
only interface element that does anything is the top bar exit and help
options.
Thanks,
Joseph
On 10/06/2008, Juan Lucas Dominguez Rubio <jldominguez at prodevelop.es> wrote:
>
>
>
> Hello, Joseph
>
> Thanks for those screenshots. I understand your device is operated with a
> stylus, right? I'd like to send you some files and a list of simple tasks to
> find out which things work, but I first need to know: Does the [SHP] button
> actually open a file chooser? Do the gray buttons on the left side make the
> tool bar change? Did the console print anything after the 5 or 6 initial
> lines?
>
> Regards,
>
>
> Juan Lucas Domínguez Rubio
> Prodevelop SL, Valencia (España)
> Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
> http://www.prodevelop.es
>
> ________________________________
> De: gvsig_internacional-bounces at runas.cap.gva.es en nombre
> de Joseph Reeves
> Enviado el: lun 09/06/2008 22:12
>
> Para: Users and Developers mailing list
> Asunto: Re: [Gvsig_english] Compiling gvsig mobile for Linux
>
>
>
>
> Hello Juan,
>
> Thanks for your help; I'm happy to report that it ran. Please see the
> attached screenshots. The buttons on the screen are *tiny*, but
> they're there at least.
>
> Thanks again, I look forward to further discussion/developments.
>
> Best regards,
>
> Joseph
>
>
>
>
>
> 2008/6/9 Juan Lucas Dominguez Rubio <jldominguez at prodevelop.es>:
> > Hello, Joseph
> >
> > The gvSIG Mobile pilot version is intended to be run on devices with a
> > 240x320 screen size, and a relatively low DPI, so if you eventually start
> > gvSIG Mobile on your Openmoko device you will probably see small buttons
> and
> > a small (resizable) main window. Unfortunately, you won't be able to open
> > any ECW files, since we have not compiled the JNI libraries for Linux yet.
> >
> > Please follow these steps:
> >
> > - Download and unzip this file (you'll have to accept the authentication
> > certificate):
> >
> >
> https://correo.prodevelop.es/descarga/mobile/openmoko_gvsig_mobile.zip
> >
> > - Copy its content to your Openmoko device. It could look like this:
> >
> > /opt/gm/gvsig_mobile.sh
> > /opt/gm/build.number
> > /opt/gm/class/...
> > /opt/gm/lib/...
> > (etc.)
> >
> > - Edit the gvsig_mobile.sh file, replacing the three occurrences of
> > <GVSIG_FOLDER> with the name of the folder you have used, so that those
> file
> > paths make sense. Yes, the third occurrence is quoted and must NOT end
> with
> > /
> >
> > - Add execution permission to the gvsig_mobile.sh file and try to execute
> > it:
> >
> > chmod u+x gvsig_mobile.sh
> > ./gvsig_mobile.sh
> > Let me know if the application starts, and we'll discuss functionalities
> and
> > issues. If it does not start, please send me the console output.
> >
> > Regards,
> >
> >
> > Juan Lucas Domínguez Rubio
> > Prodevelop SL, Valencia (España)
> > Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
> > http://www.prodevelop.es
> > ________________________________
> > De: gvsig_internacional-bounces at runas.cap.gva.es en
> nombre de Joseph Reeves
> > Enviado el: dom 08/06/2008 18:38
> > Para: Users and Developers mailing list
> > Asunto: Re: [Gvsig_english] Compiling gvsig mobile for Linux
> >
> > It's a 400 MHz chip. Technically it's a 500 MHz, but they underclock
> > it for various reasons (power drain and compatibility being the main
> > two). It's the same processor as the iPhone, if memory serves
> > correctly, and Apple make use of the same underclocking.
> >
> > Other potentially interesting bits of hardware:
> >
> > 3D graphic chip, 3D accelerometers, GPS & a potential of 8 gigs
> > storage space (if not more) on a microSD card.
> >
> > Thanks,
> >
> > Joseph
> >
> >
> >
> > 2008/6/8 Chris Puttick
> <chris.puttick at thehumanjourney.net>:
> >> Full specs here:
> >>
> >>
> http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware
> >>
> >> 480*640 absolute jewel of a screen
> >> 400/500 MHz Samsung 2442B Processor/SOC (400 minimum) - not got one with
> >> me, can't confirm the spec of the smaple devices - Joseph?
> >> 128 MB SDRAM total, 64 MB CPU internal, 64 MB external
> >>
> >> Cheers
> >>
> >> Chris
> >>
> >> ----- "Juan Lucas Dominguez Rubio" <jldominguez at prodevelop.es> wrote:
> >>> Hello, Joseph
> >>>
> >>> Yes, those are good news. I'm going to prepare my next message.
> >>>
> >>> In the meantime, tell me something about your device: screen size?
> >>> processor speed? memory?
> >>>
> >>> Regards,
> >>>
> >>> Juan Lucas Domínguez Rubio
> >>> Prodevelop SL, Valencia (España)
> >>> Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
> >>> http://www.prodevelop.es <http://www.prodevelop.es/>
> >>>
> >>> ________________________________
> >>>
> >>> De: gvsig_internacional-bounces at runas.cap.gva.es en
> nombre de Joseph
> >>> Reeves
> >>> Enviado el: dom 08/06/2008 18:11
> >>> Para: Users and Developers mailing list
> >>> Asunto: Re: [Gvsig_english] Compiling gvsig mobile for Linux
> >>>
> >>>
> >>>
> >>> Thanks Juan,
> >>>
> >>> Those instructions produced the results you were expecting in your
> >>> first reply. I hope that's good news :)
> >>>
> >>> Best regards,
> >>>
> >>> Joseph
> >>>
> >>>
> >>>
> >>> 2008/6/8 Juan Lucas Dominguez Rubio <jldominguez at prodevelop.es>:
> >>> > Hello, Joseph
> >>> >
> >>> > Sorry, I assumed there was a file called classpath-gtk.jar after
> >>> watching
> >>> > the example in the Jalimo website.
> >>> >
> >>> > If you cannot find any file that matches classpath*.jar, we'll
> >>> assume that
> >>> > it's not necessary to add it to the -cp parameter when starting the
> >>> > application. So try this instead:
> >>> >
> >>> > cacao -cp /usr/tmp/jar_test.jar org.gvsig.moko.Launcher01
> >>> > cacao -cp /usr/tmp/jts_test.jar org.gvsig.moko.Launcher02
> >>> >
> >>> > Regards,
> >>> >
> >>> > Juan Lucas Domínguez Rubio
> >>> > Prodevelop SL, Valencia (España)
> >>> > Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
> >>> > http://www.prodevelop.es <http://www.prodevelop.es/>
> >>> > ________________________________
> >>> > De: gvsig_internacional-bounces at runas.cap.gva.es en
> nombre de Joseph
> >>> Reeves
> >>> > Enviado el: dom 08/06/2008 16:04
> >>> > Para: Users and Developers mailing list
> >>> > Asunto: Re: [Gvsig_english] Compiling gvsig mobile for Linux
> >>> >
> >>> > Hello Juan,
> >>> >
> >>> > Many thanks for your offer of help. Unfortunately I don't seem to
> >>> be
> >>> > doing too well so far...
> >>> >
> >>> > classpath-gtk is installed, but it doesn't give me
> >>> > /usr/share/java/classpath-gtk.jar:
> >>> >
> >>> > root at om-gta02:~# opkg info classpath-gtk
> >>> > Package: classpath-gtk
> >>> > Version: 0.97.1-r1
> >>> > Depends: gtk+-fastscaling (>= 2.10.14), libatk-1.0-0 (>= 1.20.0),
> >>> > pango (>= 1.18.3), libcairo2 (>= 1.4.10), libglib-2.0-0 (>=
> >>> 2.14.1),
> >>> > libc6 (>= 2.5), libfreetype6 (>= 2.3.5), libfontconfig1 (>= 2.4.1),
> >>> > libsm6 (>= 1.0.3), libice6 (>= 1.0.3), libxrender1 (>= 0.9.2),
> >>> > libxtst6 (>= 1.0.2)
> >>> > Provides: classpath-awt
> >>> > Status: install user installed
> >>> > Section: libs
> >>> > Architecture: armv4t
> >>> > maintainer: Angstrom Developers
> >>> <angstrom-distro-devel at linuxtogo.org>
> >>> > MD5Sum: 5867242956dc91b98883a6ab1d0b1ec5
> >>> > Filename: classpath-gtk_0.97.1-r1_armv4t.ipk
> >>> > Source:
> ftp://ftp.gnu.org/gnu/classpath/classpath-0.97.1.tar.gz
> >>> > file://netif_16.patch;patch=1;pnum=0
> >>> <file://netif_16.patch;patch=1;pnum=0/>
> >>> > file://SimpleName.diff;patch=1;pnum=0
> >>> <file://SimpleName.diff;patch=1;pnum=0/>
> >>> > Description: GNU Classpath standard Java libraries
> >>> >
> >>> > root at om-gta02:~# opkg files classpath-gtk
> >>> > Package classpath-gtk (0.97.1-r1) is installed on root and has the
> >>> > following files:
> >>> > /usr/lib/classpath/libgtkpeer.so
> >>> > /usr/lib/classpath/libjawt.so
> >>> >
> >>> > root at om-gta02:~# ls /usr/share/java/
> >>> > swt-gtk-3.3+3.4M5.jar swt-gtk.jar swt.jar
> >>> >
> >>> > root at om-gta02:~# ls /usr/lib/classpath/
> >>> > libgtkpeer.so libjavalangmanagement.so.0
> >>> > libjavanio.so
> >>> > libjavaio.so libjavalangmanagement.so.0.0.0
> >>> > libjavanio.so.0
> >>> > libjavaio.so.0 libjavalangreflect.so
> >>> > libjavanio.so.0.0.0
> >>> > libjavaio.so.0.0.0 libjavalangreflect.so.0
> >>> > libjavautil.so
> >>> > libjavalang.so libjavalangreflect.so.0.0.0
> >>> > libjavautil.so.0
> >>> > libjavalang.so.0 libjavanet.so
> >>> > libjavautil.so.0.0.0
> >>> > libjavalang.so.0.0.0 libjavanet.so.0
> >>> libjawt.so
> >>> > libjavalangmanagement.so libjavanet.so.0.0.0
> >>> security
> >>> > root at om-gta02:~#
> >>> >
> >>> > Regards,
> >>> >
> >>> > Joseph
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > 2008/6/7 Juan Lucas Dominguez Rubio <jldominguez at prodevelop.es>:
> >>> >> Hello, Joseph
> >>> >>
> >>> >> I'd like to help you run gvSIG Mobile on your Openmoko device.
> >>> First, we
> >>> >> should test if your Java virtual machine has the necessary
> >>> packages. I
> >>> >> have
> >>> >> prepared two examples. Please unzip the attached openmoko.zip and
> >>> copy
> >>> >> those
> >>> >> two JAR files to a temporary folder in your device (for example
> >>> /usr/tmp/
> >>> >> or
> >>> >> whatever). You will have to install the classpath-gtk package,
> >>> because
> >>> >> we'll
> >>> >> need the awt classes. I guess this command does that:
> >>> >>
> >>> >> ipkg install classpath-gtk
> >>> >>
> >>> >> Then, please try to run these two trivial applications and tell me
> >>> what
> >>> >> you
> >>> >> see in the Java console. These applications simply try to
> >>> instantiate a
> >>> >> few
> >>> >> objects and use System.out.println to display the responses of a
> >>> few
> >>> >> methods. If you have copied the JAR files to a folder other than
> >>> >> /usr/tmp/,
> >>> >> you'll have to modify these paths:
> >>> >>
> >>> >> cacao -cp
> /usr/share/java/classpath-gtk.jar;/usr/tmp/jar_test.jar
> >>> >> org.gvsig.moko.Launcher01
> >>> >> cacao -cp
> /usr/share/java/classpath-gtk.jar;/usr/tmp/jts_test.jar
> >>> >> org.gvsig.moko.Launcher02
> >>> >>
> >>> >> Perhaps you will have to use quotes for the -cp parameter:
> >>> >>
> >>> >> cacao -cp
> >>>
> "/usr/share/java/classpath-gtk.jar;/usr/tmp/jar_test.jar"
> >>> >> org.gvsig.moko.Launcher01
> >>> >> cacao -cp
> >>>
> "/usr/share/java/classpath-gtk.jar;/usr/tmp/jts_test.jar"
> >>> >> org.gvsig.moko.Launcher02
> >>> >>
> >>> >> The output of the first test should be:
> >>> >>
> >>> >> ===============================
> >>> >> Trying to instantiate a String...
> >>> >> The string length is: 13
> >>> >> Trying to instantiate an URL...
> >>> >> The host is: www.openmoko.org
> >>> >> Trying to instantiate a MenuItem...
> >>> >> The menu item has 0 action listeners.
> >>> >> Trying to instantiate a Button...
> >>> >> The button bounds are:
> >>> java.awt.Rectangle[x=0,y=0,width=100,height=50]
> >>> >> Trying to instantiate a Choice...
> >>> >> The Choice has 2 items.
> >>> >> Trying to instantiate a Rectangle2D.Double...
> >>> >> The center X is: 0.5
> >>> >> Trying to instantiate a GeneralPath...
> >>> >> The GP has been moved.
> >>> >> Trying to use a nice constant...
> >>> >> ByteOrder.BIG_ENDIAN = BIG_ENDIAN
> >>> >> Trying to instantiate a Pattern...
> >>> >> pat.toString() = foo
> >>> >> ===============================
> >>> >>
> >>> >> The output of the second test should be:
> >>> >>
> >>> >> ===============================
> >>> >> Trying to use Coordinates...
> >>> >> Trying to use CGAlgorithms...
> >>> >> The area of the triangle is: -1.5
> >>> >> ===============================
> >>> >>
> >>> >> Regards,
> >>> >>
> >>> >>
> >>> >> Juan Lucas Domínguez Rubio
> >>> >> Prodevelop SL, Valencia (España)
> >>> >> Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
> >>> >> http://www.prodevelop.es <http://www.prodevelop.es/>
> >>> >> ________________________________
> >>> >> De: gvsig_internacional-bounces at runas.cap.gva.es en
> nombre de
> >>> Joseph
> >>> >> Reeves
> >>> >> Enviado el: vie 06/06/2008 15:44
> >>> >> Para: gvsig_internacional at runas.cap.gva.es
> >>> >> Asunto: [Gvsig_english] Compiling gvsig mobile for Linux
> >>> >>
> >>> >> Dear all,
> >>> >>
> >>> >> I'm trying to get gvSIG running on the Openmoko FreeRunner [1] but
> >>> am
> >>> >> having issues. Any help would be greatly appreciated, although
> >>> please
> >>> >> be aware that I am not a programmer and have little experience
> >>> with
> >>> >> Java.
> >>> >>
> >>> >> I have a pre-release FreeRunner, for which there are various Java
> >>> >> options [2]; I have Jalimo [3] installed and working. Is this
> >>> >> suitable? Or do I need a J2ME installation?
> >>> >>
> >>> >> I've downloaded the java source [4] but have hit a stumbling
> >>> block.
> >>> >> I'm sure it's a particularly noob question, but what do I do next?
> >>> >>
> >>> >> Thanks in advance,
> >>> >>
> >>> >> Joseph
> >>> >>
> >>> >>
> >>> >>
> >>> >> [1] http://wiki.openmoko.org/wiki/Main_Page
> >>> >> [2] http://wiki.openmoko.org/wiki/Java
> >>> >> [3]
> https://wiki.evolvis.org/jalimo/index.php/OpenMoko
> >>> >> [4]
> >>> >>
> >>> >>
> >>>
> >>>
> http://www.gvsig.gva.es/fileadmin/conselleria/images/Documentacion/descargas_mobile/fuentes/ws_gvsig_mobile_0.1.0_bn44.zip
> >>> >> _______________________________________________
> >>> >> Gvsig_internacional mailing list
> >>> >> Gvsig_internacional at runas.cap.gva.es
> >>> >>
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >>> >>
> >>> >> _______________________________________________
> >>> >> Gvsig_internacional mailing list
> >>> >> Gvsig_internacional at runas.cap.gva.es
> >>> >>
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >>> >>
> >>> >>
> >>> >
> >>> > _______________________________________________
> >>> > Gvsig_internacional mailing list
> >>> > Gvsig_internacional at runas.cap.gva.es
> >>> >
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >>> >
> >>> > _______________________________________________
> >>> > Gvsig_internacional mailing list
> >>> > Gvsig_internacional at runas.cap.gva.es
> >>> >
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >>> >
> >>> >
> >>>
> >>> _______________________________________________
> >>> Gvsig_internacional mailing list
> >>> Gvsig_internacional at runas.cap.gva.es
> >>>
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >>
> >>
> >>
> >> ------
> >> Files attached to this email may be in ISO 26300 format (OASIS Open
> >> Document Format). If you have difficulty opening them, please visit
> >> http://iso26300.info for more information.
> >>
> >>
> >> _______________________________________________
> >> Gvsig_internacional mailing list
> >> Gvsig_internacional at runas.cap.gva.es
> >>
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >>
> >
> > _______________________________________________
> > Gvsig_internacional mailing list
> > Gvsig_internacional at runas.cap.gva.es
> >
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >
> > _______________________________________________
> > Gvsig_internacional mailing list
> > Gvsig_internacional at runas.cap.gva.es
> >
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
> >
> >
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>
>
More information about the Gvsig_internacional
mailing list