requesting help with Allegro and OpenGLish stuff
#1
requesting help with Allegro and OpenGLish stuff
1st question: I've been working on compiling Allegro 4.4.2 for the past two weeks and finally got it working (i think) with gcc, but I'm running into a problem with the MIPSpro compile, maybe its some basic C stuff, just wondering if anyone knows how to fix this?


Code:
cc-1142 cc: ERROR File = /usr/people/develop/dev/Allegro/allegro-4.4.2_gcc/src/font.c, Line = 32
  There are too many initializers for a declared aggregate.

  static FONT_GLYPH f_0x20 = { 8, 8, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } };
                                     ^

cc-1142 cc: ERROR File = /usr/people/develop/dev/Allegro/allegro-4.4.2_gcc/src/font.c, Line = 33
  There are too many initializers for a declared aggregate.

  static FONT_GLYPH f_0x21 = { 8, 8, { 0x18, 0x3C, 0x3C, 0x18, 0x18, 0x00, 0x18, 0x00 } };
                                     ^

2nd question:  In order to compile Allegro I had to disable examples and modules, but I really wanted to compile them too, I was getting this error tho:


Code:
Linking C executable skater_agl
ld32: WARNING 84 : /usr/lib32/libSM.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any symbol.
ld32: ERROR   33 : Unresolved text symbol "glActiveTexture" -- 1st referenced by ../../lib/liballeggl.a(glvtable.c.o).
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "glMultiTexCoord2f" -- 1st referenced by ../../lib/liballeggl.a(glvtable.c.o).
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "glMultiTexCoord2i" -- 1st referenced by ../../lib/liballeggl.a(glvtable.c.o).
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: INFO    152: Output file removed because of error.
collect2: ld returned 2 exit status
gmake[2]: *** [demos/skater/CMakeFiles/skater_agl.dir/build.make:982: demos/skater/skater_agl] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2550: demos/skater/CMakeFiles/skater_agl.dir/all] Error 2
gmake: *** [Makefile:114: all] Error 2
-bash-4.2$ 

googling around, it appears "glActiveTexture" is in glext.h, which I suppose should be located in GL/glext.h.  anyone know what these OpenGL headers are or if they are actually supported in IRIX?  SGI originally had them posted under oss.sgi.com, now they are located in https://www.khronos.org/registry/OpenGL/api/GL/

putzing around  I created /usr/local/include/KHR,  and added KHR/khrplatform.h, created /usr/local/include/OpenGL, copied GL/glext.h to OpenGL/glext.h, added #include <GL/glext.h> to the end of /usr/include/GL/gl.h, and added GL/glext.h to demos/skater/CMakeFiles/skater_agl.dir/C.includecache, but it just gave me more errors

3rd question: regarding Allegro, wtf is "agl"?  anything that had the suffix "agl" would have the error from question 2.  Allegro GL?  Apple GL?

edit:
4th Question: anyone ever try to compile Allegro 5.0.11?  

I get this error:


Code:
[  0%] Building C object CMakeFiles/allegro.dir/src/tls.c.o
In file included from /usr/people/develop/dev/Allegro/allegro-5.0.11/src/tls.c:148:
/usr/people/develop/dev/Allegro/allegro-5.0.11/src/tls_native.inc:22: error: thread-local storage not supported for this target
/usr/people/develop/dev/Allegro/allegro-5.0.11/src/tls_native.inc: In function `tls_get':
/usr/people/develop/dev/Allegro/allegro-5.0.11/src/tls_native.inc:33: error: thread-local storage not supported for this target
gmake[2]: *** [CMakeFiles/allegro.dir/build.make:992: CMakeFiles/allegro.dir/src/tls.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:61: CMakeFiles/allegro.dir/all] Error 2
gmake: *** [Makefile:114: all] Error 2
-bash-4.2$ 

line 148 of src/tls.c:
   #include "tls_native.inc"
   
line 22 of src/tls_native.inc:
static THREAD_LOCAL_QUALIFIER thread_local_state _tls;
(This post was last modified: 01-12-2019, 01:57 AM by gijoe77.)
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
01-12-2019, 01:50 AM


Messages In This Thread
requesting help with Allegro and OpenGLish stuff - by gijoe77 - 01-12-2019, 01:50 AM
RE: requesting help with Allegro and OpenGLish stuff - by TruHobbyist - 01-12-2019, 09:22 AM
RE: requesting help with Allegro and OpenGLish stuff - by mrthinlysliced - 01-12-2019, 10:47 AM
RE: requesting help with Allegro and OpenGLish stuff - by mrthinlysliced - 01-12-2019, 12:22 PM
RE: requesting help with Allegro and OpenGLish stuff - by spiroyster - 01-13-2019, 12:55 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)