Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  LWJGL example doesn't work under Linux with ATI Radeon 9250 Pro  (Read 13922 times)
0 Members and 1 Guest are viewing this topic.
Offline gouessej
« Reply #30 - Posted 2009-04-23 11:29:54 »

If you feel lucky, my best guess at the critical commit would be 2969, where Display.setParent is implemented for linux.

EDIT: And beware of commit 2965, which broke a few examples, but later (post alpha 3) fixed.

 - elias
Maybe it is time to do what you suggested. I may do this Saturday.

Offline gouessej
« Reply #31 - Posted 2009-04-24 18:40:54 »

I get this when I try to compile LWJGL revision 2961:
Quote
compile:
    [apply] /usr/bin/ld: cannot find -lXxf86vm
    [apply] collect2: ld returned 1 exit status

BUILD FAILED
/home/julien/Documents/programmation/java/java-game-lib/trunk/LWJGL/build.xml:598: The following error occurred while executing this line:
/home/julien/Documents/programmation/java/java-game-lib/trunk/LWJGL/build.xml:614: The following error occurred while executing this line:
/home/julien/Documents/programmation/java/java-game-lib/trunk/LWJGL/platform_build/linux_ant/build.xml:42: apply returned: 1

Please let me know what I have to do to work around this  Cry

Offline elias

Senior Member





« Reply #32 - Posted 2009-04-24 18:59:00 »

On ubuntu, you need the "libxxf86vm-dev" package

 - elias

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #33 - Posted 2009-04-24 21:22:06 »

On ubuntu, you need the "libxxf86vm-dev" package

 - elias
libxxf86vm1-devel.rpm is already installed on my Mandriva Linux 2007 Sad

Offline elias

Senior Member





« Reply #34 - Posted 2009-04-25 03:55:20 »

What about the basic libxxf86vm package? (without the -devel)

 - elias

Offline gouessej
« Reply #35 - Posted 2009-04-25 10:12:10 »

What about the basic libxxf86vm package? (without the -devel)

 - elias
libxxf86vm1.rpm is installed too:
libxxf86vm1 - Development files for libxxf86vm​                                                                                                                        
XFree86 Video Mode Extension Library
/usr/lib/libXxf86vm.so.1
‎/usr/lib/libXxf86vm.so.1.0.0

Offline gouessej
« Reply #36 - Posted 2009-04-25 10:15:44 »

I installed the static development library and it worked  Grin I have to go to the restaurant. I will perform the test tonight.

Offline gouessej
« Reply #37 - Posted 2009-04-25 18:10:20 »

I enter this:
Quote
java -cp bin/:libs/ -Djava.library.path=libs/linux/ -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true org.lwjgl.examples.spaceinvaders.Game
and I get this:

Quote
Use -fullscreen for fullscreen mode
Xrandr extension version 1.1
Using Xrandr for display mode switching
XF86VidMode extension version 2.2
Initial mode: 1024 x 768 x 24 @60Hz
Removed 0 duplicate displaymodes
Available screen modes:
400 x 300 x 24 @60Hz
1024 x 768 x 24 @50Hz
640 x 480 x 24 @60Hz
832 x 624 x 24 @60Hz
1024 x 768 x 24 @60Hz
832 x 624 x 24 @50Hz
800 x 600 x 24 @60Hz
800 x 600 x 24 @56Hz
Sorted display modes:
800 x 600 x 24 @60Hz
832 x 624 x 24 @60Hz
1024 x 768 x 24 @60Hz
Attempting to set displaymode: 800 x 600 x 24 @60Hz
libGL warning: 3D driver claims to not support visual 0x4b
Pixel format info: r = 8, g = 8, b = 8, a = 8, depth = 24, stencil = 0, sample buffers = 0, samples = 0
getPathFromClassLoader: searching for: openal
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
getPathFromClassLoader: searching for: lwjgl
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
getPathFromClassLoader: searching for: lwjgl
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
Found 6 OpenAL paths
Testing 'libs/linux//libopenal.so'
Found OpenAL at 'libs/linux//libopenal.so'
Unable to create from: null
java.lang.NullPointerException
        at org.lwjgl.util.WaveData.create(WaveData.java:95)
        at org.lwjgl.util.WaveData.create(WaveData.java:112)
        at org.lwjgl.examples.spaceinvaders.SoundManager.addSound(SoundManager.java:154)
        at org.lwjgl.examples.spaceinvaders.Game.initialize(Game.java:242)
        at org.lwjgl.examples.spaceinvaders.Game.<init>(Game.java:179)
        at org.lwjgl.examples.spaceinvaders.Game.main(Game.java:580)
Exception in thread "main" java.lang.NullPointerException
        at org.lwjgl.examples.spaceinvaders.SoundManager.addSound(SoundManager.java:157)
        at org.lwjgl.examples.spaceinvaders.Game.initialize(Game.java:242)
        at org.lwjgl.examples.spaceinvaders.Game.<init>(Game.java:179)
        at org.lwjgl.examples.spaceinvaders.Game.main(Game.java:580)
Mode 0: 1024x768 @60
XF86VidMode extension version 2.2

It happens in the revisions 2969 and 2990 too Sad

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #38 - Posted 2009-04-25 18:40:24 »

you need to add 'res' to the classpath for sound to be locatable

Offline gouessej
« Reply #39 - Posted 2009-04-26 08:04:24 »

you need to add 'res' to the classpath for sound to be locatable
Ok but now I get a black screen whatever the version. I enter "ant clean" before compiling Sad

Edit.: even with the revision 3203, it does not work, I get only a black screen.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #40 - Posted 2009-04-26 08:41:00 »

no exceptions? nothing in xorgs logs?
thats going to be mighty hard to fix Smiley

Offline gouessej
« Reply #41 - Posted 2009-04-26 09:29:31 »

The revision 2964 works  Grin but not the revision 2965:

Quote
[julien@julien LWJGL]$ svn up -r 2964
U    src/java/org/lwjgl/opengl/Display.java
Actualisé à la révision 2964.
[julien@julien LWJGL]$ svn up -r 2965
U    src/java/org/lwjgl/opengl/Display.java
Actualisé à la révision 2965.

Is it easy to fix? There is only one file that has been modified. Can I do something?

Quote
[julien@julien LWJGL]$ diff /home/julien/Desktop/Display.java.2964 /home/julien/Desktop/Display.java.2965
785,792d784
<               // Put the window into orthographic projection mode with 1:1 pixel ratio.
<               // We haven't used GLU here to do this to avoid an unnecessary dependency.
<               GL11.glMatrixMode(GL11.GL_PROJECTION);
<               GL11.glLoadIdentity();
<               GL11.glOrtho(0.0, current_mode.getWidth(), 0.0, current_mode.getHeight(), -1.0, 1.0);
<               GL11.glMatrixMode(GL11.GL_MODELVIEW);
<               GL11.glLoadIdentity();
<               GL11.glViewport(0, 0, current_mode.getWidth(), current_mode.getHeight());

Edit.: don't forget to update the documentation, the static development package of libxxf86vm is required to compile LWJGL under Linux.

Offline elias

Senior Member





« Reply #42 - Posted 2009-04-26 09:47:03 »

As I mentioned earlier, the 2D ortho stuff was removed from Display but the examples wasn't updated. You can take the GL11 init code and put it in the test code and it should work again.

 - elias

Offline gouessej
« Reply #43 - Posted 2009-04-26 10:14:32 »

As I mentioned earlier, the 2D ortho stuff was removed from Display but the examples wasn't updated. You can take the GL11 init code and put it in the test code and it should work again.

 - elias
The source code that I quoted had been added or removed into the revision 2965? I'm a bit confused sorry  Huh Are you going to update the LWJGL nightly build to fix this bug?

Offline elias

Senior Member





« Reply #44 - Posted 2009-04-26 12:24:37 »

Hum, I just now saw that the spaceinvaders game doesn't work for you in the latest revision. It works for me, but I'm not sure what's causing the problem at your end. Does anything work? glClear to red for example?

 - elias

Offline gouessej
« Reply #45 - Posted 2009-04-26 19:52:22 »

Hum, I just now saw that the spaceinvaders game doesn't work for you in the latest revision. It works for me, but I'm not sure what's causing the problem at your end. Does anything work? glClear to red for example?

 - elias
It seems to be clear, the modification in the revision 2965 in org.lwjgl.opengl.Display broke Space Invaders here.

Offline elias

Senior Member





« Reply #46 - Posted 2009-04-26 19:59:12 »

Try the latest revision, I've added some init code to the spaceinvaders example.

 - elias

Offline gouessej
« Reply #47 - Posted 2009-04-27 05:32:01 »

Try the latest revision, I've added some init code to the spaceinvaders example.

 - elias
[size=25pt]It works fine now  Grin Thanks.[/size]

One of my testers will try LWJGL with an ATI Rage Pro and and ATI Radeon 7500 under Linux with a fglrx driver, it should work fine.

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #48 - Posted 2009-04-27 08:50:28 »

So the entire time you've been bitching and moaning about LWJGL being "unreliable" is basically just down to an out-of-date example? Roll Eyes Every time that you've replied to saying "it is LWJGL, it does not work on my pc" you've basically just been assuming that based on a single failing app?

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline gouessej
« Reply #49 - Posted 2009-04-27 14:05:26 »

So the entire time you've been bitching and moaning about LWJGL being "unreliable" is basically just down to an out-of-date example? Roll Eyes Every time that you've replied to saying "it is LWJGL, it does not work on my pc" you've basically just been assuming that based on a single failing app?
No. Puppy games tore my desktop, my task bar became strange, I sent a screenshot to princec. Some (but not all) games using the latest version of LWJGL had the same symptom (black screen). I have some other problems with Stardust... When I used Jake 2 LWJGL version under Windows with a crappy VIA chip, it crashed after 15 minutes and the whole resolution had not been reset, all colors were strange (like a rainbow). Do you want some more examples? There are some invalid enum errors on some machines, someone spoke about it on the JME forum, I don't find the thread, I will have to look for it later.

However, I considered the black screen bug as a blocking bug as it did not allow to play with the games. The "torn task bar" bug is a bit annoying but it does not prevent me from playing with LWJGL games.

Offline bobjob

JGO Knight


Medals: 10
Projects: 4


David Aaron Muhar


« Reply #50 - Posted 2009-04-28 22:33:44 »

Older apps didnt always call update() on the Display when the window was out of focus.
this would probably be causing the blocking bug. As in order to get the state change to determine if the window is visible an update needs to be called (not true of older versions).

I experienced this problem in my apps.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline elias

Senior Member





« Reply #51 - Posted 2009-04-29 06:49:20 »

Older apps didnt always call update() on the Display when the window was out of focus.
this would probably be causing the blocking bug. As in order to get the state change to determine if the window is visible an update needs to be called (not true of older versions).

I experienced this problem in my apps.

In the minimized case, Display.processMessages() is enough.

 - elias

Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (48 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!