Today I have been attempting to build AllegroGL 0.2.4 (which I believe to be the current version) on OS X 10.3.9. I have not been succeeding.
First, "./fix.sh macosx" gives these errors:
1 | find: -!: unknown expression primary |
2 | bugs.txt |
3 | misc/dtou.sh: line 15: 4867f: No such file or directory |
4 | extensions.txt |
5 | misc/dtou.sh: line 15: 4867f: No such file or directory |
6 | faq.txt |
7 | misc/dtou.sh: line 15: 4867f: No such file or directory |
8 | howto.txt |
9 | misc/dtou.sh: line 15: 4867f: No such file or directory |
10 | quickstart.txt |
11 | misc/dtou.sh: line 15: 4867f: No such file or directory |
12 | readme.txt |
13 | misc/dtou.sh: line 15: 4867f: No such file or directory |
14 | todo.txt |
15 | misc/dtou.sh: line 15: 4867f: No such file or directory |
16 | changelog |
17 | misc/dtou.sh: line 15: 4867f: No such file or directory |
18 | configure |
19 | misc/dtou.sh: line 15: 4867f: No such file or directory |
20 | configure.in |
21 | misc/dtou.sh: line 15: 4867f: No such file or directory |
22 | fix.sh |
23 | misc/dtou.sh: line 15: 4867f: No such file or directory |
24 | make/makefile.unx |
25 | misc/dtou.sh: line 15: 4867f: No such file or directory |
26 | make/makefile.gen |
27 | misc/dtou.sh: line 15: 4867f: No such file or directory |
28 | make/makefile.lst |
29 | misc/dtou.sh: line 15: 4867f: No such file or directory |
Not thinking too much of this, I decided to attempt a make. Which gets stuck here:
gcc -c src/macosx.m -o obj/macosx/release/macosx.o -W -Wall -Wno-unused -O2 -ffast-math -fomit-frame-pointer -fno-common -pipe -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext In file included from src/macosx.m:4: /usr/local/include/allegro/platform/aintosx.h:64: error: cannot find interface declaration for `NSObject', superclass of `AllegroAppDelegate' make: *** [obj/macosx/release/macosx.o] Error 1
I have all the latest XCode tools, etc. Is there some way of working around this problem?
If the version of allegro your compiling with is >4.1.16 your going to need to grab the allegrogl cvs.
This isn't an Allegro - AllegroGL problem. It looks like an environment / configuration issue, but I don't know what that is.
fix.sh is broken. The problem is that $$f should be $f. I've attached a patch that also adds a --quick option, and changed find -! ... to be find \! ... (which, to my knowledge, is more correct).
I've attached a patch...
Excellent. Works perfectly!
If the version of allegro your compiling with is >4.1.16 your going to need to grab the allegrogl cvs.
This appears to have been the problem. I have Allegro 4.1.18. And now I have AllegroGL CVS, which built and installed without any error. I got a small number of warnings which I'll append but I don't imagine they add up to anything.
Quite a few of the examples don't seem to work, but I'll try and get better details of that. In particular 'extextur' causes a bus error immediately upon launch, i.e. tries to access memory it shouldn't. Some of the other examples seem to do absolutely nothing so I'll look into those too.
1 | gcc -c src/fontconv.c -o obj/macosx/release/fontconv.o -W -Wall -Wno-unused -O2 -ffast-math -fomit-frame-pointer -fno-common -pipe -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext |
2 | src/fontconv.c:60: warning: missing initializer |
3 | src/fontconv.c:60: warning: (near initialization for `_agl_font_vtable.transpose_font') |
4 | src/fontconv.c: In function `crop_font_range': |
5 | src/fontconv.c:623: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167) |
6 | src/fontconv.c:678: warning: `textout' is deprecated (declared at /usr/local/include/allegro/alcompat.h:172) |
7 | src/fontconv.c:796: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167) |
8 | src/fontconv.c: In function `draw_glyphs': |
9 | src/fontconv.c:926: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167) |
10 | src/fontconv.c:927: warning: `textout' is deprecated (declared at /usr/local/include/allegro/alcompat.h:172) |
11 | src/fontconv.c:929: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167) |
12 | src/fontconv.c:957: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167) |
13 | src/fontconv.c:958: warning: `textout' is deprecated (declared at /usr/local/include/allegro/alcompat.h:172) |
14 | src/fontconv.c:960: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167) |
15 | src/fontconv.c: In function `aglf_upload_texture': |
16 | src/fontconv.c:1318: warning: unsigned int format, GLint arg (arg 2) |
17 | src/fontconv.c:1320: warning: unsigned int format, GLuint arg (arg 2) |
18 | gcc -c src/texture.c -o obj/macosx/release/texture.o -W -Wall -Wno-unused -O2 -ffast-math -fomit-frame-pointer -fno-common -pipe -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext |
19 | src/texture.c: In function `do_texture_upload': |
20 | src/texture.c:896: warning: unsigned int format, GLenum arg (arg 2) |
This isn't an Allegro - AllegroGL problem.
Apparently it was.
Hmmm, im having this problem again with the allegro 4.2 beta 2.
Only this time the cvs and peters fix do nothing.
Its the same error as above:
In file included from src/macosx.m:4:
/usr/local/include/allegro/platform/aintosx.h:64: error: cannot find interface declaration for `NSObject', superclass of `AllegroAppDelegate'
Any ideas/fixes?
EDIT:
This IS a configuration issue (Bob was right). I just tried recompiling on a fresh install. AGL CVS works with Allegro 4.2 beta 2. I think it has something to do with the allegro-config file