ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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?
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? :-) )
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.
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) :-))))
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.
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...)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.