Cannot build AllegroGL 0.2.4 on Mac OS 10.3.9
Thomas Harte

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:

1find: -!: unknown expression primary
2bugs.txt
3misc/dtou.sh: line 15: 4867f: No such file or directory
4extensions.txt
5misc/dtou.sh: line 15: 4867f: No such file or directory
6faq.txt
7misc/dtou.sh: line 15: 4867f: No such file or directory
8howto.txt
9misc/dtou.sh: line 15: 4867f: No such file or directory
10quickstart.txt
11misc/dtou.sh: line 15: 4867f: No such file or directory
12readme.txt
13misc/dtou.sh: line 15: 4867f: No such file or directory
14todo.txt
15misc/dtou.sh: line 15: 4867f: No such file or directory
16changelog
17misc/dtou.sh: line 15: 4867f: No such file or directory
18configure
19misc/dtou.sh: line 15: 4867f: No such file or directory
20configure.in
21misc/dtou.sh: line 15: 4867f: No such file or directory
22fix.sh
23misc/dtou.sh: line 15: 4867f: No such file or directory
24make/makefile.unx
25misc/dtou.sh: line 15: 4867f: No such file or directory
26make/makefile.gen
27misc/dtou.sh: line 15: 4867f: No such file or directory
28make/makefile.lst
29misc/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?

Gnatinator

If the version of allegro your compiling with is >4.1.16 your going to need to grab the allegrogl cvs.

Bob

This isn't an Allegro - AllegroGL problem. It looks like an environment / configuration issue, but I don't know what that is.

Peter Wang

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).

Thomas Harte
Quote:

I've attached a patch...

Excellent. Works perfectly!

Quote:

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.

1gcc -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
2src/fontconv.c:60: warning: missing initializer
3src/fontconv.c:60: warning: (near initialization for `_agl_font_vtable.transpose_font')
4src/fontconv.c: In function `crop_font_range':
5src/fontconv.c:623: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167)
6src/fontconv.c:678: warning: `textout' is deprecated (declared at /usr/local/include/allegro/alcompat.h:172)
7src/fontconv.c:796: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167)
8src/fontconv.c: In function `draw_glyphs':
9src/fontconv.c:926: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167)
10src/fontconv.c:927: warning: `textout' is deprecated (declared at /usr/local/include/allegro/alcompat.h:172)
11src/fontconv.c:929: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167)
12src/fontconv.c:957: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167)
13src/fontconv.c:958: warning: `textout' is deprecated (declared at /usr/local/include/allegro/alcompat.h:172)
14src/fontconv.c:960: warning: `text_mode' is deprecated (declared at /usr/local/include/allegro/alcompat.h:167)
15src/fontconv.c: In function `aglf_upload_texture':
16src/fontconv.c:1318: warning: unsigned int format, GLint arg (arg 2)
17src/fontconv.c:1320: warning: unsigned int format, GLuint arg (arg 2)
18gcc -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
19src/texture.c: In function `do_texture_upload':
20src/texture.c:896: warning: unsigned int format, GLenum arg (arg 2)

Quote:

This isn't an Allegro - AllegroGL problem.

Apparently it was.

Gnatinator

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:

Quote:

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

Thread #483181. Printed from Allegro.cc