![]() |
|
Allegro 4.9.9 |
kenmasters1976
Member #8,794
July 2007
|
If no one else is having this problem then maybe it's an issue with my drivers or something and not worth for the devs to bother. But in case it's useful... I tried to use the binary pack at allegro5.org but it doesn't include the debug versions, so I had to build them on my machine to get a log file. However, this is all I get on the allegro.log file for either the ex_glext or ex_opengl examples: ALLEGRO_SYSTEM_INTERFACE created. al-winput INFO: Input thread started. Render-to-texture: 1 This is what I get with gdb: (gdb) run Starting program: C:\allegro\allegro-4.9.9.1\build\examples/ex_opengl.exe [New thread 2072.0xe04] [New thread 2072.0xc78] [New thread 2072.0x804] warning: WGL Message:System Error: (13):wglGetPixelFormatAttribARB: WGLERR_INVAL ID_DATA Program received signal SIGSEGV, Segmentation fault. 0x00000000 in ?? () (gdb) backtrace #0 0x00000000 in ?? () #1 0x69b294f1 in get_pixel_formats_count_ext (dc=0x34010665) at C:/allegro/allegro-4.9.9.1/src/win/wgl_disp.c:247 #2 0x69b2a6dd in get_available_pixel_formats_ext (count=0x22fcfc) at C:/allegro/allegro-4.9.9.1/src/win/wgl_disp.c:753 #3 0x69b2ab96 in select_pixel_format (d=0x3f6000, dc=0x9c011aa2) at C:/allegro/allegro-4.9.9.1/src/win/wgl_disp.c:879 #4 0x69b2ae6a in create_display_internals (wgl_disp=0x3f6000) at C:/allegro/allegro-4.9.9.1/src/win/wgl_disp.c:959 #5 0x69b2b1fa in wgl_create_display (w=640, h=480) at C:/allegro/allegro-4.9.9.1/src/win/wgl_disp.c:1054 #6 0x69ad3268 in al_create_display (w=640, h=480) at C:/allegro/allegro-4.9.9.1/src/display_new.c:59 #7 0x0040197d in _mangled_main () at C:/allegro/allegro-4.9.9.1/examples/ex_opengl.c:130 #8 0x69afeb68 in _WinMain (_main=0x401920, hInst=0x400000, hPrev=0x0, Cmd=0x241f16 "", nShow=10) at C:/allegro/allegro-4.9.9.1/src/win/wnewsys.c:136 #9 0x00401a6e in WinMain (hInst=0x400000, hPrev=0x0, Cmd=0x241f16 "", nShow=10) at C:/allegro/allegro-4.9.9.1/examples/ex_opengl.c:164 #10 0x00401e61 in main () (gdb) quit
|
count
Member #5,401
January 2005
|
Don't know if this is related to the problem kenmasters1976 described. I have one of these things lying around and I wanted to make it usefull again with a little allegro app. When setting When setting I wasn't able to compile allegro myself yet, so I'm using the binarys from allegro5. Since these are in releae mode no log file is created. What is strange is that al_create_display doesn't return null when direct3d is forced but the application just crashes. If the device I have there is too exceptional and you don't plan on making allegro work with it just say so
|
Peter Wang
Member #23
April 2000
|
If Allegro crashes when used correctly then that's a bug we need to fix.
|
Trent Gamblin
Member #261
April 2000
![]() |
Something to do with D3D not being completely de-initialized after trying one mode maybe... if the first mode it tries fails, it explodes. I will look into it. Not sure that device will support D3D9 but it might. Never heard of the gfx chipset though.
|
ReyBrujo
Moderator
January 2001
![]() |
cmake ended with a complain about OpenGL: CMake Error at CMakeLists.txt:485 (message): X11 support currently requires OpenGL support. As far as I know, I got OpenGL support. What should I install? (Edited: Nevermind, I had a conflict here. Apparently in Ubuntu the Nvidia drivers come with their own set of OpenGL libraries and headers. Commands to get them on: sudo apt-get install freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev libglut3-dev mesa-common-dev xlibmesa-gl-dev). Other than that, compiled fine. Cannot get it to generate the info or the PDF documentation, I am guessing just turning WANT_DOCS_PDF and WANT_DOCS_INFO is not enough. I reconfigured, but somehow it is not applying the changes (as in, it is not creating them). -- |
Peter Wang
Member #23
April 2000
|
You need pandoc 1.1 for info docs, and pdflatex for PDFs. Note that the info docs are slightly out of whack (sections being chapters; easily fixed but just hasn't been done).
|
ReyBrujo
Moderator
January 2001
![]() |
An error message for missing binaries should be useful in those cases. -- |
Elias
Member #358
May 2000
|
Does someone have a static pandoc 1.2 binary btw? Ubuntu/Debian only has 0.46 and my attempts to compile 1.1 and 1.2 failed. It first wanted three dependencies, things called "parsec", "utf8-string" and "zip-archive". Neither of them exists in Debian. So I tried compiling them. But to get them some strange tool named "cabal" seemed necessary. Installing that requires "hugs" instead of "ghc"... but "ghc" seems necessary for an earlier step... so basically it seems impossible. (The Debian/Ubuntu maintainers likely have the same problem and therefore it's still at 0.46 there.) [edit] Got the dependencies to compile somehow (and only parsec 1.2 and not parsec 1.3 will work). Why they think something like "cabal" is a good idea I'll never understand - letting me get the dependencies without it would have made this much easier :/ -- |
axilmar
Member #1,204
April 2001
|
[quote] Which is when? I don't want a fixed date, just a Month approximation, for example, in 10 to 15 months etc. |
Trezker
Member #1,739
December 2001
![]() |
I think it should be done this year, maybe by summer. |
Evert
Member #794
November 2000
![]() |
axilmar said: Which is when? When it's done. Quote: I don't want a fixed date, just a Month approximation, for example, in 10 to 15 months etc.
Sorry, no. |
Neil Walker
Member #210
April 2000
![]() |
Maybe you're missing a trick with Allegro 5 and you should do what the big boys do by missing a few numbers. Allegro 7 has a nice look about it. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
MiquelFire
Member #3,110
January 2003
![]() |
What logic would you use to go 1 to 4 then to 7? --- |
Neil Walker
Member #210
April 2000
![]() |
MiquelFire said: What logic would you use to go 1 to 4 then to 7? Other than being frivolous and not serious, 5 is tainted as being the telepathic April fool version, 6 is two short of the devil, but 7 on the other hand looks nice. Visual C++ missed out 3 - and skipped from 6 to 2002 Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Milan Mimica
Member #3,877
September 2003
![]() |
kenmasters1976: It does look like a driver issue. As you may know, allegro programs read some settings out of allegro.cfg, and there should be one in the package. Under section [graphics] there is an option named "config_selection". Try setting it to "old". You can just create a text file containing only: [graphics] config_selection=old This will turn off all the fancy stuff during al_create_display().
-- |
count
Member #5,401
January 2005
|
Milan Mimica said: You can just create a text file containing only:
For me that didn't change anything on the oqo
|
Milan Mimica
Member #3,877
September 2003
![]() |
Christopher: Your OpenGL works just fine
-- |
MiquelFire
Member #3,110
January 2003
![]() |
Neil Walker said: Visual C++ missed out 3 - and skipped from 6 to 2002
With the 2002 part, then it applies to Windows, they skipped NT 5 and went to 2000... oh wait... what about Windows 7? The logic with Visual Studio skipping up to 6 was so that MS could have all the products be the same version number. Something in the Visual Studio line didn't skip numbers, and it was at 6.0 when the skip happened. So your MSVC part is moot (Note Visual J++ jumped from 1.1 to 6 at the time BTW) Navigator 5... I saw a Navigator 5 once... --- |
count
Member #5,401
January 2005
|
Milan Mimica said: I guess you don't have OpenGL 1.2.
EDIT: Since I don't really have a clue what this graphicchip is I probably won't find drivers for it (and probably they will not have opengl support Btw, with allegro 4.9.8 direct3d is not creating a display as well but is returning NULL. What could be the problem that direct3d isn't able to create a display?
|
Milan Mimica
Member #3,877
September 2003
![]() |
Quote: Does that mean the graphicscard doesn't support 1.2 or do I have to install something? I don't know. There might be other restrictions as well.
-- |
kenmasters1976
Member #8,794
July 2007
|
For me your suggestion about config_selection worked. Now the examples using OpenGL run fine. Thanks. But... now there's another problem, this time with the primitives addon. I have this simple program: 1#include <allegro5/allegro5.h>
2#include <allegro5/a5_opengl.h>
3#include <allegro5/a5_primitives.h>
4
5
6
7static ALLEGRO_DISPLAY *display = NULL;
8
9
10
11int main() {
12 ALLEGRO_KEYBOARD_STATE key_state;
13 ALLEGRO_MOUSE_STATE mouse_state;
14 int ox = 0, oy = 0;
15
16 if (!al_init()) {
17 printf("Could not init Allegro.\n");
18 return 1;
19 }
20 if (!al_install_mouse()) {
21 printf("Could not init mouse.\n");
22 return 1;
23 }
24 if (!al_install_keyboard()) {
25 printf("Could not init keyboard.\n");
26 return 1;
27 }
28 al_set_new_display_flags(ALLEGRO_WINDOWED | ALLEGRO_OPENGL);
29 display = al_create_display(800, 600);
30 al_set_window_title("Allegro 4.9.9.1 Test");
31
32 al_clear(al_map_rgb(0, 128, 128));
33 al_flip_display();
34 al_clear(al_map_rgb(0, 128, 128));
35
36 al_get_keyboard_state(&key_state);
37 while (!al_key_down(&key_state, ALLEGRO_KEY_ESCAPE)) {
38 al_get_mouse_state(&mouse_state);
39 al_draw_line(ox - 5, oy - 5, mouse_state.x, mouse_state.y, al_map_rgb_f(0.5, 1, 1), 2);
40 ox = mouse_state.x;
41 oy = mouse_state.y;
42 al_flip_display();
43
44 al_rest(0.015);
45 al_get_keyboard_state(&key_state);
46 }
47
48 return 0;
49}
50END_OF_MAIN()
It crashes on the call to al_draw_line(). Again, it only crashes when using OpenGL. Disabling the extensions in allegro.cfg didn't help. Heres the contents of the allegro.log file: ALLEGRO_SYSTEM_INTERFACE created. al-winput INFO: Input thread started. Render-to-texture: 1 al-wmouse INFO: mouse handler starts wgl-win INFO: select_pixel_format(): Forcing OLD visual selection method. wgl-win INFO: get_available_pixel_formats_old(): Got 42 visuals. -- wgl-win INFO: Decoding visual no. 1... wgl-win INFO: Decoding: wgl-win INFO: Accelarated: yes wgl-win INFO: Single-buffer: yes wgl-win INFO: Swap method: undefined wgl-win INFO: Color format: r8 g8 b8 a8, 32 bit wgl-win INFO: Depth buffer: 0 bits wgl-win INFO: Sample buffers: no wgl-win INFO: Samples: 0 display_settings INFO: Single Buffer requirement not met. -- ... ... -- wgl-win INFO: Decoding visual no. 42... wgl-win INFO: Decoding: wgl-win INFO: Not RGBA mode wgl-win INFO: get_available_pixel_formats_ext(): 7 visuals are good enough. wgl-win INFO: select_pixel_format(): Chose visual no. 2 wgl-win INFO: Accelarated: yes wgl-win INFO: Single-buffer: no wgl-win INFO: Swap method: undefined wgl-win INFO: Color format: r8 g8 b8 a8, 32 bit wgl-win INFO: Depth buffer: 0 bits wgl-win INFO: Sample buffers: no wgl-win INFO: Samples: 0 al-ext INFO: OpenGL Extensions: al-ext INFO: GL_ARB_multitexture al-ext INFO: GL_ARB_texture_border_clamp al-ext INFO: GL_ARB_texture_compression al-ext INFO: GL_ARB_texture_cube_map al-ext INFO: GL_ARB_texture_env_add al-ext INFO: GL_ARB_texture_env_combine al-ext INFO: GL_ARB_texture_env_dot3 al-ext INFO: GL_ARB_texture_env_crossbar al-ext INFO: GL_ARB_transpose_matrix al-ext INFO: GL_EXT_abgr al-ext INFO: GL_EXT_bgra al-ext INFO: GL_EXT_blend_color al-ext INFO: GL_EXT_blend_func_separate al-ext INFO: GL_EXT_blend_minmax al-ext INFO: GL_EXT_blend_subtract al-ext INFO: GL_EXT_clip_volume_hint al-ext INFO: GL_EXT_compiled_vertex_array al-ext INFO: GL_EXT_cull_vertex al-ext INFO: GL_EXT_fog_coord al-ext INFO: GL_EXT_packed_pixels al-ext INFO: GL_EXT_packed_pixels_12 al-ext INFO: GL_EXT_rescale_normal al-ext INFO: GL_EXT_secondary_color al-ext INFO: GL_EXT_separate_specular_color al-ext INFO: GL_EXT_stencil_wrap al-ext INFO: GL_EXT_texture_compression_s3tc al-ext INFO: GL_EXT_texture_env_add al-ext INFO: GL_EXT_texture_env_combine al-ext INFO: GL_EXT_texture_filter_anisotropic al-ext INFO: GL_3DFX_texture_compression_FXT1 al-ext INFO: GL_IBM_texture_mirrored_repeat al-ext INFO: GL_NV_texgen_reflection al-ext INFO: GL_WIN_swap_hint glDrawRangeElements successfully loaded glTexImage3D successfully loaded glTexSubImage3D successfully loaded glCopyTexSubImage3D successfully loaded glActiveTexture successfully loaded glClientActiveTexture successfully loaded glMultiTexCoord1d successfully loaded glMultiTexCoord1dv successfully loaded glMultiTexCoord1f successfully loaded glMultiTexCoord1fv successfully loaded glMultiTexCoord1i successfully loaded glMultiTexCoord1iv successfully loaded glMultiTexCoord1s successfully loaded glMultiTexCoord1sv successfully loaded glMultiTexCoord2d successfully loaded glMultiTexCoord2dv successfully loaded glMultiTexCoord2f successfully loaded glMultiTexCoord2fv successfully loaded glMultiTexCoord2i successfully loaded glMultiTexCoord2iv successfully loaded glMultiTexCoord2s successfully loaded glMultiTexCoord2sv successfully loaded glMultiTexCoord3d successfully loaded glMultiTexCoord3dv successfully loaded glMultiTexCoord3f successfully loaded glMultiTexCoord3fv successfully loaded glMultiTexCoord3i successfully loaded glMultiTexCoord3iv successfully loaded glMultiTexCoord3s successfully loaded glMultiTexCoord3sv successfully loaded glMultiTexCoord4d successfully loaded glMultiTexCoord4dv successfully loaded glMultiTexCoord4f successfully loaded glMultiTexCoord4fv successfully loaded glMultiTexCoord4i successfully loaded glMultiTexCoord4iv successfully loaded glMultiTexCoord4s successfully loaded glMultiTexCoord4sv successfully loaded glLoadTransposeMatrixf successfully loaded glLoadTransposeMatrixd successfully loaded glMultTransposeMatrixf successfully loaded glMultTransposeMatrixd successfully loaded glSampleCoverage successfully loaded glCompressedTexImage3D successfully loaded glCompressedTexImage2D successfully loaded glCompressedTexImage1D successfully loaded glCompressedTexSubImage3D successfully loaded glCompressedTexSubImage2D successfully loaded glCompressedTexSubImage1D successfully loaded glGetCompressedTexImage successfully loaded glActiveTextureARB successfully loaded glClientActiveTextureARB successfully loaded glMultiTexCoord1dARB successfully loaded glMultiTexCoord1dvARB successfully loaded glMultiTexCoord1fARB successfully loaded glMultiTexCoord1fvARB successfully loaded glMultiTexCoord1iARB successfully loaded glMultiTexCoord1ivARB successfully loaded glMultiTexCoord1sARB successfully loaded glMultiTexCoord1svARB successfully loaded glMultiTexCoord2dARB successfully loaded glMultiTexCoord2dvARB successfully loaded glMultiTexCoord2fARB successfully loaded glMultiTexCoord2fvARB successfully loaded glMultiTexCoord2iARB successfully loaded glMultiTexCoord2ivARB successfully loaded glMultiTexCoord2sARB successfully loaded glMultiTexCoord2svARB successfully loaded glMultiTexCoord3dARB successfully loaded glMultiTexCoord3dvARB successfully loaded glMultiTexCoord3fARB successfully loaded glMultiTexCoord3fvARB successfully loaded glMultiTexCoord3iARB successfully loaded glMultiTexCoord3ivARB successfully loaded glMultiTexCoord3sARB successfully loaded glMultiTexCoord3svARB successfully loaded glMultiTexCoord4dARB successfully loaded glMultiTexCoord4dvARB successfully loaded glMultiTexCoord4fARB successfully loaded glMultiTexCoord4fvARB successfully loaded glMultiTexCoord4iARB successfully loaded glMultiTexCoord4ivARB successfully loaded glMultiTexCoord4sARB successfully loaded glMultiTexCoord4svARB successfully loaded glLoadTransposeMatrixfARB successfully loaded glLoadTransposeMatrixdARB successfully loaded glMultTransposeMatrixfARB successfully loaded glMultTransposeMatrixdARB successfully loaded glCompressedTexImage3DARB successfully loaded glCompressedTexImage2DARB successfully loaded glCompressedTexImage1DARB successfully loaded glCompressedTexSubImage3DARB successfully loaded glCompressedTexSubImage2DARB successfully loaded glCompressedTexSubImage1DARB successfully loaded glGetCompressedTexImageARB successfully loaded glBlendColorEXT successfully loaded glBlendEquationEXT successfully loaded glLockArraysEXT successfully loaded glUnlockArraysEXT successfully loaded glCullParameterdvEXT successfully loaded glCullParameterfvEXT successfully loaded glSecondaryColor3bEXT successfully loaded glSecondaryColor3bvEXT successfully loaded glSecondaryColor3dEXT successfully loaded glSecondaryColor3dvEXT successfully loaded glSecondaryColor3fEXT successfully loaded glSecondaryColor3fvEXT successfully loaded glSecondaryColor3iEXT successfully loaded glSecondaryColor3ivEXT successfully loaded glSecondaryColor3sEXT successfully loaded glSecondaryColor3svEXT successfully loaded glSecondaryColor3ubEXT successfully loaded glSecondaryColor3ubvEXT successfully loaded glSecondaryColor3uiEXT successfully loaded glSecondaryColor3uivEXT successfully loaded glSecondaryColor3usEXT successfully loaded glSecondaryColor3usvEXT successfully loaded glSecondaryColorPointerEXT successfully loaded glFogCoordfEXT successfully loaded glFogCoordfvEXT successfully loaded glFogCoorddEXT successfully loaded glFogCoorddvEXT successfully loaded glFogCoordPointerEXT successfully loaded glBlendFuncSeparateEXT successfully loaded wglCreateBufferRegionARB successfully loaded wglDeleteBufferRegionARB successfully loaded wglSaveBufferRegionARB successfully loaded wglRestoreBufferRegionARB successfully loaded wglGetExtensionsStringARB successfully loaded wglGetPixelFormatAttribivARB successfully loaded wglGetPixelFormatAttribfvARB successfully loaded wglChoosePixelFormatARB successfully loaded wglMakeContextCurrentARB successfully loaded wglGetCurrentReadDCARB successfully loaded wglCreatePbufferARB successfully loaded wglGetPbufferDCARB successfully loaded wglReleasePbufferDCARB successfully loaded wglDestroyPbufferARB successfully loaded wglQueryPbufferARB successfully loaded wglSwapIntervalEXT successfully loaded wglGetSwapIntervalEXT successfully loaded al-ext INFO: GL_ARB_texture_non_power_of_two found in [opengl_disabled_extensions]. al-ext INFO: GL_EXT_framebuffer_object found in [opengl_disabled_extensions]. Packed Pixels formats available al-ext INFO: Use of non-power-of-two textures disabled. al-ext INFO: Use of FBO to draw to textures disabled. ogl_display: Format 9 used for backbuffer. wgl-win INFO: OpenGL Version: 1.3.0 - Build 4.13.01.3069 wgl-win INFO: Vendor: Intel wgl-win INFO: Renderer: Intel Brookdale-G I removed part of it (the Decoding visual part) to make the post shorter but I can post it again if needed. And here's gdb's output: (gdb) run Starting program: C:\allegro.cc/Allegro5_Test4991.exe [New thread 2940.0xf0] (no debugging symbols found) (no debugging symbols found) [New thread 2940.0xcfc] [New thread 2940.0x49c] [New thread 2940.0x754] Program received signal SIGSEGV, Segmentation fault. 0x00000000 in ?? () (gdb) backtrace #0 0x00000000 in ?? () #1 0x6ce87396 in setup_blending () at C:/allegro/allegro-4.9.9.1/addons/primitives/prim_opengl.c:42 #2 0x6ce87591 in draw_soft_vbuff (texture=0x0, vbuff=0x3f6818, start=0, end=4, type=5) at C:/allegro/allegro-4.9.9.1/addons/primitives/prim_opengl.c:93 #3 0x6ce87945 in _al_draw_prim_opengl (texture=0x0, vbuff=0x3f6818, start=0, end=4, type=5) at C:/allegro/allegro-4.9.9.1/addons/primitives/prim_opengl.c:205 #4 0x6ce898a0 in al_draw_prim (vbuff=0x3f6818, texture=0x0, start=0, end=4, type=5) at C:/allegro/allegro-4.9.9.1/addons/primitives/primitives.c:96 #5 0x6ce8145b in al_draw_line (x1=-5, y1=-5, x2=0, y2=0, color= {r = 0.5, g = 1, b = 1, a = 1}, thickness=2) at C:/allegro/allegro-4.9.9.1/addons/primitives/high_primitives.c:116 #6 0x00401508 in _mangled_main () #7 0x69afeb68 in _WinMain (_main=0x4012e0, hInst=0x400000, hPrev=0x0, Cmd=0x241f1f "", nShow=10) at C:/allegro/allegro-4.9.9.1/src/win/wnewsys.c:136 #8 0x00401577 in WinMain@16 () #9 0x004018a1 in main () (gdb) quit
|
Thomas Fjellstrom
Member #476
June 2000
![]() |
MiquelFire said: What logic would you use to go 1 to 4 then to 7? What are you talking about, there was an Allegro 1, 2, 3, and 4. I came into the scene with 3.1 a decade ago. -- |
MiquelFire
Member #3,110
January 2003
![]() |
I meant 1 through 4. And I came into Allegro with 3.1(0?) as well --- |
Milan Mimica
Member #3,877
September 2003
![]() |
kenmasters1976: Thanks, it's a bug. glBlendFuncSeparate is inctruduced in OpenGL 1.4.
-- |
axilmar
Member #1,204
April 2001
|
Evert said:
I could make a guess, but I don't want to make an estimate like that. When we're close to bringing out RC1, you'll hear about it. That's ok, even this tip is useful. |
|
|