![]() |
|
Allegro 5.0.3 Error In Tutorial Program |
dougt719
Member #12,931
June 2011
|
Allegro 5.0.3 Fedora 13 x86_64 Tried tutorial 1 from this site: #include <stdio.h> int main(int argc, char **argv) if(!al_init()) { display = al_create_display(640, 480); al_clear_to_color(al_map_rgb(0,0,0)); al_flip_display(); al_rest(10.0); al_destroy_display(display); return 0; results: [dtelford@localhost allegro-5.0.3]$ gcc tutorial1.c -o tutorial1 -lallegro comments? |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Does OpenGL work on your system at all? -- |
dougt719
Member #12,931
June 2011
|
I installed Mesa OpenGL and ran the program from http://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_(GLX) [dtelford@localhost allegro-5.0.3]$ g++ gl3.cpp -o gl3 -lGL -lX11 The tutorial explains how to install allegro 5, but doesn't say anything about Regards, |
Thomas Fjellstrom
Member #476
June 2000
![]() |
dougt719 said: The tutorial explains how to install allegro 5, but doesn't say anything about On any modern install, it should already be installed. Can you run glxinfo | grep direct and see if it says "direct rendering: Yes" ? That's fairly important. But I don't think it would cause the problems you saw... I'm not sure what would cause the X11 error above. -- |
Elias
Member #358
May 2000
|
You can try copying allegro5.cfg and changing "config_selection" to "old" in there. -- |
dougt719
Member #12,931
June 2011
|
[dtelford@localhost allegro-5.0.3]$ glxinfo | grep direct changed allegro5.cfg program now does not produce any error messages: [dtelford@localhost allegro-5.0.3]$ gcc tutorial1.c -o tutorial1 Thanks for your help |
|