I'm wondering if anyone can help me on this subject. since sagetv is built on java maybe there are some java gurus that can answer this
I've built a Java app that uses my own windows DLL through JNI. The DLL does some Windows GDI calls to locate an window from a mouse (x,y) coordinates and grab its dimensions. I'm trying to convert this application to Linux. Having no knowledge with Linux or XServer I've tried to convert my code using winelib (
www.winehq.com).
I was able to recompile my DLL into a shared linux library and created a wrapper for JNI. The code compiled fine without any complaints. My Java application is able to locate the new shared library and tries to load it. but when it does (try to load the shared lib) an error occures:
Code:
[localhost] /usr/java/jdk1.5.0_10/bin > Exception in thread "AWT-EventQueue-0"
java.lang.UnsatisfiedLinkError: /work/windowjni/libWindowJni.so: Can't load IA
32-bit .so on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
Has anyone here played with winelib and was successfull in loading it through JNI?
I can upload my code or PM them on request.
thanks.
moe.