Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 5:05 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Mon Feb 27, 2012 10:07 am 
Offline

Joined: Sun Jun 12, 2011 2:27 pm
Posts: 90
I can not run my application on Linux (Ubuntu), anyone know what might be?

Command
sudo /usr/bin/java/bin/java -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true -Djava.library.path="/home/eldius/dist_parallax" -cp parallax.jar game.LaunchGame

Quote:
eldius@ELDIUS-NOTE-02:~/dist_parallax$ ./run.sh
[sudo] password for eldius:
Sun Feb 26 20:10:24 BRT 2012 INFO:Slick Build #274
Xlib: extension "GLX" missing on display ":0".
Xlib: extension "GLX" missing on display ":0".
Xlib: extension "GLX" missing on display ":0".
Sun Feb 26 20:10:24 BRT 2012 ERROR:Could not init GLX
org.lwjgl.LWJGLException: Could not init GLX
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:61)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:782)
at org.lwjgl.opengl.DrawableGL.setPixelFormat(DrawableGL.java:61)
at org.lwjgl.opengl.Display.create(Display.java:871)
at org.lwjgl.opengl.Display.create(Display.java:782)
at org.newdawn.slick.AppGameContainer.tryCreateDisplay(AppGameContainer.java:299)
at org.newdawn.slick.AppGameContainer.access$000(AppGameContainer.java:34)
at org.newdawn.slick.AppGameContainer$2.run(AppGameContainer.java:364)
at java.security.AccessController.doPrivileged(Native Method)
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:345)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at game.core.Game.launch(Game.java:88)
at game.LaunchGame.main(LaunchGame.java:17)
org.newdawn.slick.SlickException: Failed to initialise the LWJGL display
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:375)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at game.core.Game.launch(Game.java:88)
at game.LaunchGame.main(LaunchGame.java:17)


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 11:03 am 
Offline
User avatar

Joined: Sat Jan 14, 2012 1:05 pm
Posts: 28
Location: Leipzig, Germany
michel.montenegro wrote:
I can not run my application on Linux (Ubuntu), anyone know what might be?

Xlib: extension "GLX" missing on display ":0".
Xlib: extension "GLX" missing on display ":0".
Xlib: extension "GLX" missing on display ":0".
Sun Feb 26 20:10:24 BRT 2012 ERROR:Could not init GLX
org.lwjgl.LWJGLException: Could not init GLX

Looks like you have no glx extension. Have you installed mesa?
What does
Code:
grep -i glx /var/log/Xorg.0.log

say? glxinfo?
On my system:
Code:
$ grep -i glx /var/log/Xorg.0.log
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
(II) NVIDIA GLX Module  195.36.31  Tue Jun  1 23:22:44 PDT 2010
(II) Loading extension GLX
(II) Feb 27 11:05:39 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(==) Feb 27 11:05:41 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(II) Loading extension NV-GLX
(II) Initializing extension GLX

_________________
team red


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 11:22 am 
Offline

Joined: Sun Jun 12, 2011 2:27 pm
Posts: 90
If I do not have this installed, how do I install?


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 2:03 pm 
Offline

Joined: Sun Jun 12, 2011 2:27 pm
Posts: 90
Ubuntu: 10.11 (Last)
Version LWJGL: 2.8.3 (Last)
JRE Version: 7 (Last)
Video Card: NVidia ZOGIS (No Driver Instaled, have no driver for linux)

I used the commands below and did not work

1. sudo apt-get install mesa-utils
2. glxinfo | grep -i opengl
3. lspci
4. sudo apt-get update
5. sudo apt-get install build-essential
6. sudo apt-get install freeglut3-dev

Quote:
michel@michel-VirtualBox:~/Downloads/dist_project$ sh autoexec.sh
Fri Feb 24 07:04:23 BRT 2012 INFO:Slick Build #274
failed to create drawable
failed to create drawable
failed to create drawable
Fri Feb 24 07:04:25 BRT 2012 ERROR:X Error - disp: 0x8298238 serial: 217 error: BadGC (invalid GC parameter) request_code: 60 minor_code: 0
org.lwjgl.LWJGLException: X Error - disp: 0x8298238 serial: 217 error: BadGC (invalid GC parameter) request_code: 60 minor_code: 0
at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:316)
at org.lwjgl.opengl.LinuxKeyboard.nSetDetectableKeyRepeat(Native Method)
at org.lwjgl.opengl.LinuxKeyboard.setDetectableKeyRepeat(LinuxKeyboard.java:152)
at org.lwjgl.opengl.LinuxKeyboard.destroy(LinuxKeyboard.java:163)
at org.lwjgl.opengl.LinuxDisplay.destroyKeyboard(LinuxDisplay.java:1190)
at org.lwjgl.input.Keyboard.destroy(Keyboard.java:349)
at org.lwjgl.opengl.Display.destroyWindow(Display.java:349)
at org.lwjgl.opengl.Display.access$400(Display.java:62)
at org.lwjgl.opengl.Display$5.destroy(Display.java:860)
at org.lwjgl.opengl.Display.create(Display.java:880)
at org.lwjgl.opengl.Display.create(Display.java:782)
at org.newdawn.slick.AppGameContainer.tryCreateDisplay(AppGameContainer.java:299)
at org.newdawn.slick.AppGameContainer.access$000(AppGameContainer.java:34)
at org.newdawn.slick.AppGameContainer$2.run(AppGameContainer.java:364)
at java.security.AccessController.doPrivileged(Native Method)
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:345)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at game.core.Game.launch(Game.java:88)
at game.LaunchGame.main(LaunchGame.java:17)
org.newdawn.slick.SlickException: Failed to initialise the LWJGL display
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:375)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at game.core.Game.launch(Game.java:88)
at game.LaunchGame.main(LaunchGame.java:17)



Files in "/home/michel/Downloads/dist_project":
Quote:
libjinput-linux.so
libjinput-linux64.so
liblwjgl.so
liblwjgl64.so
libopenal.so
libopenal64.so

autoexec.sh
project.jar (Auto Executable)


- When I run the script (SH) is the error listed below.
autoexec.sh
Code:
#!/bin/sh
export LD_LIBRARY_PATH="/home/michel/Downloads/dist_project"

java -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true -cp project.jar game.LaunchGame


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 3:36 pm 
Offline

Joined: Sun Jun 12, 2011 2:27 pm
Posts: 90
From what I've been reading the Ubuntu 10.11 does not support OpenGL 2.0, is it true?


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 4:18 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1469
  • ZOGIS is a provider. Find out what GeForce card you are using, and update your drivers.
  • Once your drivers are installed, enable glx
  • Another possible trick here
  • Why are you forcing software OpenGL in command line? What happens otherwise?
  • Try using the "-Dorg.lwjgl.util.Debug=true" switch


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 4:37 pm 
Offline

Joined: Sun Jun 12, 2011 2:27 pm
Posts: 90
My Video Card: GeForce GT 430


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 4:50 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1469
You can find GeForce GT 430 drivers on the NVidia website I linked.


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 5:00 pm 
Offline

Joined: Sun Jun 12, 2011 2:27 pm
Posts: 90
I'm downloading.
I will test.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group