Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Wired problems for a beginner  (Read 959 times)
0 Members and 1 Guest are viewing this topic.
Offline Ob1

JGO n00b
*

Posts: 3


Java games rock!


« on: 2004-07-22 03:14:46 »

I'm a beginner in JOGL. I tired to write a sample app with a canvas inside a Swing frame and run it under Windows and linux.

I found out that on windows i had to generate the canvas before invoking any kind of Swing or AWT object or method, otherwhise i would get a double viewport outside the frame and an unwanted screen res change.
This applies also to other java apps :
for example if i start a java app with no openGL BEFORE my JOGL sample i get the same error, if i do the opposite all works fine. Why that?

On linux instead i run into some TLS error with my driver, and JOGL app doesn't load at all, stating :
UnsatisfiedLinkError libGL.so cannot handle TLS data.

What's wrong? Are this common erros?

Before switching back to C++ i would like to hear some opinion!

Thanks in advance!
Byez =8)!
Ob1


Offline Ken Russell

JGO Kernel
*****

Posts: 3446
Medals: 3


Java games rock!


« Reply #1 on: 2004-07-22 06:23:21 »

Do the demos in the jogl-demos workspace (on java.net) work?

On Windows you should specify -Dsun.java2d.noddraw=true when launching JOGL apps to prevent conflicts with the DirectDraw implementation of Java2D. Try that and see if it clears up some of the strange problems on that platform. I don't know what the problem could be under Linux, though. You may want to try building the JOGL sources directly. If this fixes your problem, please post.
Offline Ob1

JGO n00b
*

Posts: 3


Java games rock!


« Reply #2 on: 2004-07-22 07:53:06 »

Forcing no direct draw under windows seems to solve my problems.
Still I have some trouble under linux. I understand there's a problem whith multithreading on my linux-nvidia drivers, it seems like jogl.so tries to communicate with libGL.so with a TLS protocol that is not supported.
If that's the problem, i don't feel that rebuilding the whole library will solve anything.
Hope someone can help me!

By the way, I always test both jogl-demos and my own code, just to be sure it is not a coding problem!

Thanks again!
Byez =8)!
Ob1
Games published by our own members! Go get 'em!
Offline Ken Russell

JGO Kernel
*****

Posts: 3446
Medals: 3


Java games rock!


« Reply #3 on: 2004-07-22 10:17:48 »

I've read a little about the TLS issue on Linux but to the best of my understanding it isn't really a bug in the way JOGL is built or linked, but instead a bug in glibc. The JOGL release builds are currently built on a Red Hat 7.3 system and I think they should work on any compatible distribution. Google for terms "opengl cannot handle tls data" for some discussions and possible workarounds. I think that building from source would also work around your problem.
Offline Ob1

JGO n00b
*

Posts: 3


Java games rock!


« Reply #4 on: 2004-07-22 15:15:48 »

Thanks again!
I've tinkered around my glibc but it seems ok ( using Knoppix 3.3 kernel 2.4...something ), also the latest distribution from GNU is not linux compatible.
I've seen that this TLS problem happens also if you try to launch games such as Quake3 or UT which are quite old indeed and i was wondering if there's some other way to make the thing work other than recompiling the whole thing.
As I'm quite new to this, I'm keeping full JOGL rebuild as a very last resource, as I'm afraid it would turn out to be a painful and probably usless experience.
Infact, how can recompiling JOGL solve a problem in openGL link libraries, that are not able to handle TSL?
Just a question anyway, forgive my ignorance!
Thanks in advance!
Byez =8)!
Ob1
Offline Ken Russell

JGO Kernel
*****

Posts: 3446
Medals: 3


Java games rock!


« Reply #5 on: 2004-07-22 17:14:33 »

Without knowing exactly what you're running, I think upgrading your Linux distribution will also probably solve the problem.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.11 seconds with 21 queries.