Skip to main content

Error -- building MIDP using scratchbox

2 replies [Last post]
amitingale
Offline
Joined: 2007-05-23
Points: 0

Dear All,

I was trying to build MIDP of PhoneME on linux i386 PC using scratchbox, GCC version 3.4.4 and G++ 3.4.4.

The error is,
-----------------------------------------------------------------------------------------
... converting OTA images to raw format
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/yogesh/j2sdk1.4.2_13/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)

-----------------------------------------------------------------------------------------

The error is solved by adding X AWT related files to JRE/lib/i386 directory.

It seems that JRE uses some X related files. THis error only occurs while using scratchbox and these files are needed by JRE/JDK 1.4.2_13. At runtime there is no dependency for X awt.

Is myassumption correct? Can anyone throw some light on this? Also is this a problem related to GCC or scratchbox?

Regards,
Amit

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sfitzjava
Offline
Joined: 2003-06-15
Points: 0

Did you get Java to run in the SDK_ARMEL? or just the SDK_X86 side of the Scratchbox?

It sounds like you are building for the i386 version, but I'm hoping you are trying to get this running on an ARM processor. :) Can't get Java to execute in scratchbox when target is ARM...works ok for i386.

Thanks for any info
-Shawn

aap031
Offline
Joined: 2006-10-18
Points: 0

Hi!

I believe this problem is in image ROMizer too which needs to read source images, decode them and write an internal representation. This tool written as desktop Java application and thus requires your JRE to have appropriate codecs to decode image files. These I believe are used from X (that actually depends on how your JRE is implemented, that is why the problem might not exist on other platforms)

As what concerns phoneME runtime - it contains all supported image codes statically linked and thus does not have any external dependency. Please note that this is true for MIDP API for image processing. Sound processing in MIDP (Audio Building Block) and images and sound in JSR 135 may require platform support to work properly

Thanks,
Andrey