This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ and OpenGL under Win32
>> compile/link errors, but SWT's experimental OpenGL
>> seems to almost work.
>>
>
> what do you mean by that? Sounds interesting to me.
SWT's OpenGL implementation is at:
http://dev.eclipse.org/viewcvs/index.cgi/platform-swt-home/opengl/opengl.html?rev=1.13
It compiles for me with GCJ, I'm getting the errors when I try to run
the compiled app.
>
>> I had problems building SWT 3.0.1, received some
>> 'Validation failed'
>
> Do you mean Verification failed?
> Which version of gcj are you using?
> gcj -v
Oh, right. That was the error.
gcj -v = gcc version 4.0.0 20040924 (experimental)
>>
>> All seems to work fine with SWT and OpenGL, my test
>> application compiles
>> and links. But when I run my application I get:
>>
> Hmm. Can you post your calls to gcj.
Here's part of the makefile... I've been tweaking it so its not
completely current.
GCJ=gcj $(OPTLEVEL) $(DEBUGLEVEL) $(CUSTOM_OPT)
ALL: main
all: main
%.o: %.java
$(GCJ) $(CP) -c $? -o $@
BINOUT=binout
CUSTOM_OPT=-fjni
[snip]
CP="--classpath=./;"
MAINCLASS=--main=lesson2.Launcher
BIN=$(BINOUT)/swt-ogl
LIBRARYPATH=-L $(BINOUT) -LE:/dev/ide/eclipse/workspace/swt-ogl/binout
LIBRARIES=-lgl-win32
OPTLEVEL= -O0
DEBUGLEVEL= -g0
main: $(CPOBJ) $(RESOB) $(OBJ) $(CPSO)
$(GCJ) $(MAINCLASS) $(CPOBJ) $(RESOB) $(OBJ) -o$(BIN)
$(LIBRARYPATH) $(LIBRARIES)
> If you have cygwin installed, I guess you can use the
> strace tool too - or using Filemon from
> sysinternals.com can help you too, when it comes to
> unresolved libs. At least you see which library the
> system can't find.
I'll give this a shot.
>
> hope this helps
>
> -- Jakob
Thanks :)