LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2003, 05:07 PM   #1
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Rep: Reputation: 15
opengl error or gLx error?


Hello!

I'm Alvaro, trying to compile this version of NEHE's opengl tutorial...

I found this error executing the compiled program (it compiles succesfuly:

***********
Width of crate.bmp: 256
Height of crate.bmp: 256
X Error of failed request: GLXBadRenderRequest
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 1 (X_GLXRender)
Serial number of failed request: 32
Current serial number in output stream: 40
***********

...it tries to load crate.bmp and it returns this...

Do you have any idea of what happens?

...or do you know any linux opengl specific forum or mailing list?


THANKS IN ADVANCE!!


.alvaro.castro.
 
Old 07-09-2003, 05:11 PM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
i dont know glx but may i suggest you use glut or sdl instead while learning opengl then you wont have to concern yourself with glx until your comfortable with opengl
 
Old 07-09-2003, 05:16 PM   #3
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Original Poster
Rep: Reputation: 15
I do

Hi !

I really don't want to do anything related to glx....

but I found the error compiling this GLUT/openGL program:

http://nehe.gamedev.net/data/lessons...esson06.tar.gz


maybe the problem is in my computer drivers or 3d card??

thaNKS!!!


.alvaro.castro.
 
Old 07-09-2003, 05:21 PM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
Quote:
maybe the problem is in my computer drivers or 3d card??
i think your correct, can you run glxgears?
 
Old 07-09-2003, 05:32 PM   #5
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Original Poster
Rep: Reputation: 15
yes I can

yes I can run glxgears and sdlgears

...I use nvidia gls drivers...

may I look in the X config file?

thanks!


.alvaro.castro.
 
Old 07-10-2003, 09:09 AM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
if you can run glxgears then your X config and your drivers are ok, the problem i guess is loading/using the image, can you run any of the tutorials that dont load an image?
 
Old 07-10-2003, 10:37 AM   #7
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Original Poster
Rep: Reputation: 15
yes, that should be the problem

Yes, I can compile and run the other tutorials...

the problem is loading the bmp...

it uses pointers, and I don't know very much about this. When I take a look at the debugger it shows an error related to a memory address (pointers? :-) )

...help...


THANK YOU FOR YOUR HELP!!!!!!!!!

.alvaro.castro.
 
Old 07-10-2003, 11:13 AM   #8
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
i guess theres a problem with his load image code, but as i dont have glut i cant debug it at the moment but ive downloaded the linux/sdl version of lesson6 written by ti legget and it compiles and runs fine so i suggest you use that instead.
 
Old 07-10-2003, 12:16 PM   #9
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Original Poster
Rep: Reputation: 15
nope

hum...

no way.

Now It runs but a beautiful window (not fullscreen like allways) with lots of strange colour dots filling the window space. At least it doesn't break my computer...

the problem doesn't seem to be in GLUT, anyway I would like to get GLUT working because I started learning glut...

Does it matter that I'm using debian unstable distribution?? ;-)

.alvaro.castro.

I HAVE TO SOLVE THIS!! (If I learn how to load textures with GLUT I'll be able to start the serious project) :-))))

THANKS TO EVERYONE!
 
Old 07-10-2003, 12:45 PM   #10
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
glut doesnt provide an api to load images so the guy who wrote that example wrote his own code to load images and there appears to be something wrong with it, so your gonna have to write a function to load images yourself or find one and use it instead of his.
 
Old 07-10-2003, 01:20 PM   #11
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Original Poster
Rep: Reputation: 15
OTHER QUESTIONS

Ok, now is time to understand something important for me:

my distribution (debian unstable) provides the mesa packages in 2 versions:

xlibmesa (with other suffixes and prefixes, glut, etc...)
mesag3 (the same)

the difference is that mesag3 offers seems to be version 5.0.1 (the latest) but xlibmesa is 4.x. But if I install mesag3 it forces me to uninstall the nvidia drivers I'v installed! So I decided to work with that other name for mesa packages, but... I'm DOING SOMETHING BAD?

I just want to build simple interactive applications... why is this so difficult???
:-(

what are the differences between using MESA and OPENGL??
because I thought that OpenGL works better in LINUX (mesa) than in windows (and I don't want windows)

In short:

I need a powerful but not too complicate tool for programming 3d interactive applications, able to expand its posibilities with some kind of input (sound, sensors, etc...)

AM I WASTING MY TIME?

thanks everyone!!!!!!!!!!!!!!!!!!!!!!!

.alvaro.castro.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Voodoo 3 glx Error in SuSE 9.2 ptesone Linux - Hardware 0 04-02-2005 06:09 PM
glx missing error arth Linux - General 2 08-14-2004 03:55 PM
GLX missing error irfanhab Slackware 2 04-25-2004 07:15 PM
yet another nvidia glx error Sammy2ooo Linux - Hardware 25 04-03-2004 03:59 AM
GLX error in Enemy Territory SonicMayhem Linux - Software 24 10-05-2003 12:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration