Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jfox

Pages: [1]
1
Personal Java/Jeode/J2ME Personal Profile / IBM WebSphere Micro Environment
« on: December 29, 2006, 09:42:02 pm »
Quote
Hi All,

I saw this on handango today:

http://www.handango.com/PlatformProductDet...roductId=118025

Has anyone tried this out and know what's included?  (I do java swing development and haven't had much experience with j2me so don't know what's in the CLDC profile)

Thanks,
steven
[div align=\"right\"][a href=\"index.php?act=findpost&pid=20028\"][{POST_SNAPBACK}][/a][/div]

I have gotten two different versions of J9 working on the 5500/Sharp Roms some time ago.  I wrote about the use of J9 on Pocket PC 2002 in an article posted on my tools site C:\FoxFrenchTranslations.com\zaurus, and that, while a long read, may show you some of the tricks you will need to get J9 going. My memory is not too clear now, but I recall that the zaurus j9 ipk was a bitch to install. There was about zero documentation, and the result was no improvement over Jeode, and little over CVM. I remember that Sun's Javac would not work with it because IBM removed the deprecated classes from the personal profile.

I could probably get it going again if anyone is interested. The key is a script named startppro in j9's bin directory -- you have to understand everything in that to get it to do anything.

Jeff

2
Personal Java/Jeode/J2ME Personal Profile / Compiling with jdk 1.1.8 javac
« on: September 02, 2005, 01:16:10 am »
Quote
Excuse me for going into your thread but I have observed serious faults on Z6000 using Jikes. Most specially when compiling quite big applications that use a lot of numbers, "double numbers".
It is simply totally faulty. On the contrary, with jdk1.1.8 from blackdown everything runs smoothly with exactly the same results, up to five digits, than in a "big" desktop and running Java5.
Perhaps I am doing something stupid with Jikes, but I've tried many times, compiling and/or downloading it. :-(
Smuelas
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Well what you are doing is not clear, Smuelas. Are you runing these compiles with the Blackdown JVM?  Is the result of the compile still faulty when run under Windows or  x86 Linux.

What I was saying earlier is that you can indeed compile with javac 1.1.8 using jeode as the jvm -- my instructions are appended to my instructions for the Kopi compiler on my [a href=\"http://FoxFrenchTranslations.com/zaurus]website[/url].

Jeffrey Fox

3
Quote
Hi,

I just got my C1000 a couple weeks ago and I want to start compiling things on it : like V4l drivers, usbvision to be able to watch tv on my zaurus or use my usb webcam, or using ctorrent.

I have successfully installed Zgcc using these instructions:
http://s91215199.onlinehome.us/zaurus/zgcc2install.html

Everythings worked fine until I tried to compile the usbvision drivers, I downloaded the latest sources on the usbvision site and tried:
make install in the src directory:

then I got this message
install -D -m 644 *.o /lib/moduless.2.4.20/kernel/drivers/usb
install: not found
make: *** [install] Errror 127

Sounds bad to me, it doesn't recognize the command install.

Can anyone tell me what I did wrong? Should I try to install V4l drivers before/instead?

thanks for any help
[div align=\"right\"][a href=\"index.php?act=findpost&pid=77709\"][{POST_SNAPBACK}][/a][/div]

Well -- obviously install moves the driver to the indicated directory and changes its permissions to 644. You could do that manually, though the names of the directory is incorrect for the zaurus -- so look in /lib, spell moduless with less "s" and get the rest  right. But unless you have the Zaurus 6000 or whatever is the one Zaurus with a usb master instead of a slave usb, then this thing is never going to work.

Jeffrey Fox

4
User Request for Applications / Gcc Cannot Find -lc
« on: July 01, 2005, 02:35:42 am »
Quote
evrything was fine, but when I lauch gcc from console  (gcc -o foo -lm foo.c), I ve got following error:

   "ld: cannot find -lc"

if I compile as root, i have got :
error while loading shared libraries: libopcodes-2.9.5.0.31.so: cannot load shared object file: no such file or directory

I try several workarounds without succes:
binutils & binutiks-dev ipk install
libstd6-1.2.2_arm.ipk install

I am not a specialist of gcc, but would like it to run in order to create my app, or to get source package et compile them.

Any help is welcome...

[div align=\"right\"][a href=\"index.php?act=findpost&pid=82039\"][{POST_SNAPBACK}][/a][/div]

The error is saying that it cannot find "libc.so" in the path specified by $LIBRARY_PATH. If you are compiling on the Zaurus, you need to create a symbolic link from /lib/libc.so.6 to <path>/libc.so where <path> is in $LIBRARY_PATH. This may have to be done for a number of libraries: libm.so, libpthread.so, libncurses.so, etc.

Jeffrey Fox

p. s. If you are using zgcc 2.02, then you are not correctly using zgcc.sh. Say
" . <pathto>/zgcc.sh" before compiling. Note the dot.

5
User Request for Applications / Gcc Cannot Find -lc
« on: July 01, 2005, 02:32:03 am »
Quote
evrything was fine, but when I lauch gcc from console  (gcc -o foo -lm foo.c), I ve got following error:

   "ld: cannot find -lc"

if I compile as root, i have got :
error while loading shared libraries: libopcodes-2.9.5.0.31.so: cannot load shared object file: no such file or directory

I try several workarounds without succes:
binutils & binutiks-dev ipk install
libstd6-1.2.2_arm.ipk install

I am not a specialist of gcc, but would like it to run in order to create my app, or to get source package et compile them.

Any help is welcome...

[div align=\"right\"][a href=\"index.php?act=findpost&pid=82039\"][{POST_SNAPBACK}][/a][/div]

The error is saying that it cannot find "libc.so" in the path specified by $LIBRARY_PATH. If you are compiling on the Zaurus, you need to create a symbolic link from /lib/libc.so.6 to <path>/libc.so where <path> is in $LIBRARY_PATH. This may have to be done for a number of libraries: libm.so, libpthread.so, libncurses.so, etc.

Jeffrey Fox

6
OpenZaurus/Opie/Qtopia / Why Zgcc.sh Doesn't Append Path ?
« on: July 01, 2005, 02:11:06 am »
Quote
In order to setup zgcc, there is a script to run called zgcc.sh that appends some pathes and makes some links. When I run it (./zgcc.sh) the pathes aren't appened but the links are made. How come ?
I copied this file elsewhere and appened at the begining of the file this line :
#!/bin/sh
But it doesn't work either.

The only way I have found to have a nice zgcc setup is to type all the zgcc.sh file in a console, which takes quite a long time on the Z keyboard (!!!).

Anyone knows how I could run this file (OZ-3.5.2, OPIE-1.2, I think sh is runing and not bash). ?
Tks
This is the original zgcc.sh file delivered by ZGCC :

export GCC_EXEC_PREFIX=/mnt/card/.zgcc/lib/gcc-lib/arm-linux/2.95.2/
export COMPILER_PATH=/mnt/card/.zgcc/bin:/mnt/card/.zgcc/lib/gcc-lib/arm-linux/2.95.2/
export CPATH=/mnt/card/.include/
export LIBRARY_PATH=/mnt/card/.zgcc/lib/:/mnt/card/.zgcc/lib/gcc-lib/arm-linux/2.95.2/:/lib/:/home/QtPalmtop/lib/
export CPLUS_INCLUDE_PATH=/mnt/card/.include/g++-3/
PATH=/mnt/card/.zgcc/bin:$PATH
export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/card/.zgcc/lib
export LD_LIBRARY_PATH
TMAKEPATH="/mnt/card/.zgcc/tmake/lib/sharp-onboard/"
export TMAKEPATH
ln -sf /lib/libc.so.6 /usr/lib/libc.so
ln -sf /lib/libm.so.6 /usr/lib/libm.so
ln -sf /mnt/card/.zgcc/bin/libstdc++-3-libc6.1-2-2.10.0.so /home/QtPalmtop/lib/libstdc++-libc6.2-2.so.3
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72338\"][{POST_SNAPBACK}][/a][/div]


You are not running zgcc.sh correctly. You must execute it via:

whateverprompt> . zgcc.sh

Note the dot -- this changes the environment of the shell you are using. The way you are executing zgcc.sh, via "./zgcc.sh" or "bash zgcc.sh" or #! /bin/bash or whatever only changes a spawned environment that is then discarded. I put ". /mnt/card/bin/zgcc.sh" in my ~/.bashrc file which is in turn executed from my ~/.profile

Of course, if you type everything in from the console, you are not changing environments and the changes stay with you.

I should have made this more clear in my docs. This is a Unix subtlety that is never well explained.

Jeffrey Fox

7
Quote
I'd like to start writing some Java applications for my C3000 but I don't know where to start. Can anyone point me to some ressources for learning how to write Java apps for the Zaurus?

BTW I managed to get Java running on my SL-C3000 following the instructions on this thread, now I just need to figure out how to write stuff:

https://www.oesf.org/forums/index.php?showtopic=10938
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

A free downloadable Java book of quality is here: [a href=\"http://www.mindview.net/Books/TIJ/]Thinking in Java, 3rd Edition[/url].

An earlier version had an AWT chapter  -- the present version does graphics with swing.

There are, of course, a million Java books at any decent used book store.

8
Quote
prun769,

I used jikes (version 1.15) to compile HelloPP.java without any error.  Hence it worked when I used evm to activate.


stupkid,

Please englighted when we could download jikes 1.3.1 for Zaurus.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Well, the latest Jikes is 1.22 -- but with the Jikes v1.15 you have you can do just about anything that you could expect a java compiler to do on the Z. It is the new classes from JDK 1.2 through 1.5 that one is going to have trouble with, and that is not a problem of the compiler.

I am not planning to compile up Jikes 1.22 unless someone can think of an advantage to that over v1.15 (or 1.18 which I have seen available for ARM).  You can still download Jikes 1.15 from my tools website [a href=\"http://FoxFrenchTranslations.com/zaurus]http://FoxFrenchTranslations.com/zaurus[/url].

Jeffrey Fox

9
Personal Java/Jeode/J2ME Personal Profile / Inner classes
« on: June 21, 2005, 02:11:03 am »
The problem is that Jeode will use the jar properly as the classpath, but does not read the manifest file to find the class with "main". So you must say something like:

evm -cp myjar.jar  path.to.mymainclass

10
Personal Java/Jeode/J2ME Personal Profile / Midp
« on: June 21, 2005, 01:56:42 am »
Quote
For various reasons, it would be good to have the ability to run MIDP apps on the Zaurus.  Unfortunately for us, PP is not a superset of MIDP, and lacks much of the UI stuff.

I figure, though, that it must be possible to implement a large amount of MIDP using PP.  I've seen some stuff for running MIDP on J2SE, but never on PP...

Does anyone know if something is available for bridging this gap?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

There are two MIDP emulators which will work on the Zaurus with Jeode.  See [a href=\"http://kobjects.sourceforge.net/me4se/]ME4SE (Micro Edition for Standard Edition)[/url] for one that runs full screen on the Zaurus.  MicroEmulator uses a simple cell-phone skin that does not fit the 5xxx screen well, but otherwise works fairly well. They both have some problems with many freely available MIDP apps (jad/jar file pairs), but so will any of the available emulators and all of the MIDP devices because every jvm for MIDP is different. These are MIDP 1.0 emulators but there are MIDP 2.0 on MIDP 1.0 emulators available too.

I have been developing MIDP 1.0 apps on the Z for a while with these emulators, together with Jeode, Jikes, and Vim.  Get Jikes at my On-board Compiler site.

11
Quote
Has anyone had any luck compiling on their Z using the jdk 1.1.8 javac?  I have it all set up using the jeode evm and the sun classes.zip.  For command line programs it compiles great.  When I try to compile an AWT program however, it throws an ArrayIndexOutOfBoundsException when attempting to load java.awt.GridBagLayout.

Out of curiousity, I compiled it using the wintel jdk 1.1.8 and it compiled fine.  I tried both the windows and and solaris classes.zip, and both give the same behavior.  I also tried including the classes.zip before the jeode jars in the classpath , and the only difference is that I get a ClassCastException instead.

I've switched to jikes in the meantime, but I was wondering if anyone actually got this to work on an awt program.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=34953\"][{POST_SNAPBACK}][/a][/div]

What you are doing is using the classes.zip compiled for x86 on the Zaurus ARM. The classes.zip is meant to be used only for the compile, where it serves as a source of library names and class type detail for the compiler (and in the case of javac, the compiler program itself).

12
When compiling several files that reference each other, you must include the working directory in the classpath, so, with Kopi

evm -cp /mnt/card/java/kjc-suite.jar at.dms.kjc.Main -C/mnt/card/java/gclasses.zip:. $@

note the added ":." on Kopi's classpath parameter.

You must do something similar if using Jikes or javac.

13
Qt/Qtopia / Compile Problem - Dev_img-1.5
« on: June 21, 2005, 12:24:01 am »
I'm probably responsible for the original idea to put the zgcc suite in a cramfs form. See my notes at my Zaurus On-board programming web site. I have heard that OZ 3.51, and perhaps other builds, lacks complete support in bash for mount ..... -o loop.

Pages: [1]