i found the missing is libpng12.so.0 (i have libpng14) i try extract libpng12 to bin/, work fine, but run that code have new problem, dead in the:
Thread [main] (Suspended)
X11.XmuLookupStandardColormap(long, int, long, int, long, int, int)
line: not available [native method]
XGraphicsConfiguration.obtainRGBColorMap() line: 74
XGraphicsConfiguration.<init>(XGraphicsDevice, X11$XVisualInfo) line:
50
XGraphicsDevice.createConfigs() line: 142
XGraphicsDevice.getConfigs() line: 74
XGraphicsDevice.getDefaultConfiguration() line: 165
Frame(Window).getGraphicsConfiguration(GraphicsConfiguration) line:
1121
Frame(Window).<init>(Window, GraphicsConfiguration) line: 165
Frame.<init>(String, GraphicsConfiguration) line: 118
Frame.<init>(String) line: 130
Frame.<init>() line: 139
TstAWT.main(String[]) line: 9
but direct call Runtime.getRuntime().loadLibrary("Xmu") got succeed.
i guess i have same problem(but that's 5 years ago..)
http://mail-archives.apache.org/mod_mbox/harmony-dev/200611.mbox/%[email protected]%3E
$ ls /usr/lib/libXmu*
/usr/lib/libXmu.so /usr/lib/libXmu.so.6.2.0 /usr/lib/libXmuu.so.1
/usr/lib/libXmu.so.6 /usr/lib/libXmuu.so /usr/lib/libXmuu.so.1.0.0
$ cat xmutest.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xmu/StdCmap.h>
int main(int argc, char **argv)
{
Display *display;
int screen;
Visual* visual;
int depth;
int status;
if ((display = XOpenDisplay(NULL)) == NULL) {
return (-1);
}
screen = DefaultScreen(display);
visual = DefaultVisual(display,screen);
depth = DefaultDepth(display,screen);
status = XmuLookupStandardColormap(display, screen,
XVisualIDFromVisual(visual),
depth,
XA_RGB_DEFAULT_MAP, False, True);
printf("status = %d\n", status);
}
$ gcc -I/usr/X11R6/include -o xmutest xmutest.c -L/usr/X11R6/lib -lX11 -lXmu
$ ./xmutest
status = 1
how can i continue ..?
On Mon, 7 Nov 2011 18:03:07 -0800 (PST)
Da Feng <[email protected]> wrote:
> use ldd -r, not just ldd. And ldd -r libhythr.so.
>
>
> DaFENG
> Coder
> Telecommunication && Network Industry
> Gmail:[email protected]
>
>
>
> ----- Original Message -----
> From: ArLi Weng <[email protected]>
> To: [email protected]
> Cc:
> Sent: Tuesday, November 8, 2011 12:57 AM
> Subject: Re: [classlib][awt]Problem with libgl.so
>
> sorry, i meaning i already have try that before "reflect you binaries" but
> not work even i set(or unset)
> LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin,
> details below:
>
> $ uname -a
> Linux alx-nb 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 12:14:48 UTC 2011 i686
> Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz GenuineIntel GNU/Linux
>
> $ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion
> Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software
> Foundation or its licensors, as applicable.
> java version "1.5.0"
> Apache Harmony (1.5.0)
> DRLVM (1.5.0-r991518)
> pre-alpha : not complete or compatible
> svn = r991518, (Sep 7 2010), Linux/ia32/gcc 4.3.2, release build
> http://harmony.apache.org
>
> $ cat TstAWT.java
> import java.awt.Button;
> import java.awt.Dimension;
> import java.awt.Frame;
> import java.awt.event.WindowAdapter;
> import java.awt.event.WindowEvent;
>
> public class TstAWT {
> public static void main(final String[] args) {
> final Frame f = new Frame();
> f.add(new Button("test"));
> f.setMinimumSize(new Dimension(300, 200));
> f.addWindowListener(new WindowAdapter() {
> @Override
> public void windowClosing(final WindowEvent e) {
> Runtime.getRuntime().exit(0);
> }
> });
> f.setVisible(true);
> System.out.println("done");
> }
> }
>
> $ env |grep jre
> LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
> JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre
>
> $ strace /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java
> -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/
> -cp . TstAWT 2>~/1.log
>
> $ gzip ~/1.log
> trace log file see attach file.
>
> On Tue, 8 Nov 2011 00:32:13 +0800
--
ArLi Weng <[email protected]>
pgpcsFgGccqZT.pgp
Description: PGP signature
