<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>AllegroGL 0.2.4 + OS X v10.4 build error</title>
		<link>http://www.allegro.cc/forums/view/545782</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 22 Nov 2005 02:55:46 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have Allegro in /ProgrammingLibraries/Allegro-4.2.0, I have made it and installed it in both the BSD library and OS X framework manners and everything works perfectly. I now with to install AllegroGL.</p><p>I went to sourceforge and I obtained alleggl-0.2.4.tar.bz2. I extracted that to /ProgrammingLibraries/alleggl. However, when I run <i>./fix.sh macosx</i>, I get the following:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Configuring AllegroGL for MacOS X...</p><p>Done!</p><p>find: -!: unknown expression primary<br />bugs.txt<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />extensions.txt<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />faq.txt<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />howto.txt<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />quickstart.txt<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />readme.txt<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />todo.txt<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />changelog<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />configure<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />configure.in<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />depend.sh<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />dtou.sh<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />fix.sh<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />mkalias.sh<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />utod.sh<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />make/makefile.unx<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />make/makefile.gen<br />misc/dtou.sh: line 15: 1403f: No such file or directory<br />make/makefile.lst<br />misc/dtou.sh: line 15: 1403f: No such file or directory
</p></div></div><p>
I apologise, but I cannot find a way to get find to tell me its version number.</p><p>So I went into src and performed <i>../misc/dtou.sh *.c</i>, then I went into include and performed <i>../misc/dtou.sh *.h</i>. Now I get this:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
gcc -c src/alleggl.c -o obj/macosx/release/alleggl.o -W -Wall -Wno-unused -O2 -ffast-math -fomit-frame-pointer -fno-common -pipe -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext<br />src/alleggl.c:118: warning: missing initializer<br />src/alleggl.c:118: warning: (near initialization for &#39;gfx_allegro_gl_default.windowed&#39;)<br />src/alleggl.c: In function &#39;allegro_gl_opengl_version&#39;:<br />src/alleggl.c:938: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:938: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:940: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:940: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:942: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:942: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:944: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:946: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:948: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:948: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:950: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:950: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:952: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:952: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:954: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:954: warning: pointer targets in passing argument 1 of &#39;strncmp&#39; differ in signedness<br />src/alleggl.c:964: warning: pointer targets in passing argument 1 of &#39;atof&#39; differ in signedness<br />gcc -c src/glvtable.c -o obj/macosx/release/glvtable.o -W -Wall -Wno-unused -O2 -ffast-math -fomit-frame-pointer -fno-common -pipe -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext<br />src/glvtable.c:2201: warning: initialization from incompatible pointer type<br />src/glvtable.c:2227: warning: initialization from incompatible pointer type<br />src/glvtable.c:2229: warning: missing initializer<br />src/glvtable.c:2229: warning: (near initialization for &#39;allegro_gl_screen_vtable.draw_sprite_end&#39;)<br />gcc -c src/scorer.c -o obj/macosx/release/scorer.o -W -Wall -Wno-unused -O2 -ffast-math -fomit-frame-pointer -fno-common -pipe -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext<br />gcc -c src/scrmode.c -o obj/macosx/release/scrmode.o -W -Wall -Wno-unused -O2 -ffast-math -fomit-frame-pointer -fno-common -pipe -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext<br />src/scrmode.c:97: error: static declaration of &#39;__allegro_gl_memory&#39; follows non-static declaration<br />include/alleggl.h:446: error: previous declaration of &#39;__allegro_gl_memory&#39; was here<br />make: *** [obj/macosx/release/scrmode.o] Error 1
</p></div></div><p>
This is all using gcc version 4.0.0 (Apple Computer, Inc. build 5026).</p><p>Am I doing something wrong? If not, is the problem I mention fixed in CVS?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Thu, 17 Nov 2005 21:31:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You can get my &quot;Mac-friendly&quot; version of allegro gl here:<br /><a href="http://homepage.ntlworld.com/valleyway/alleggl-osx.tar.gz">Link</a></p><p>It worked for Otto Halmén, AFAIK.<br /> </p><p>Pete
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Fri, 18 Nov 2005 01:46:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
You can get my &quot;Mac-friendly&quot; version of allegro gl here:
</p></div></div><p>
That produced a whole slew of errors about signedness, but it built and installed! Only in BSD format though, so I&#39;m clearly going to have to figure out making a framework (embeddable and otherwise) of it for myself.</p><p>Not everything is perfect though.</p><p>excamera crashes and reports the following:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
excamera(3792,0x2812e00) malloc: *** error for object 0x556060: double free<br />excamera(3792,0x2812e00) malloc: *** set a breakpoint in szone_error to debug<br />Bus error
</p></div></div><p>

If started from Finder, i.e. so that they do not begin within their home folders, exalpfnt, extext displays an empty white box that should probably be an error message and can be moved around by dragging from where you&#39;d expect a titlebar to be. &quot;Error loading demofont.dat#PAL&quot; is left in the terminal, so presumably allegro_message is broken.</p><p>extextur, if started from Finder, simply crashes with a bus error and no other information.</p><p>dialog, when started from the shell displays its dialogue fullscreen and allows a first mode to be selected. If you then press escape it goes full screen, displays the original dialog in the wrong colours and hangs.</p><p>After test returns from full screen it just hangs.</p><p>exalleg works fine however!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Fri, 18 Nov 2005 02:22:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>AllegroGL 0.2.4 is not fully compatible with Allegro 4.2.0. You&#39;ll need AllegroGL from CVS, at the very least.</p><p>No idea about the Mac-specific failures, but I&#39;ll accept patches.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Fri, 18 Nov 2005 02:26:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
You&#39;ll need AllegroGL from CVS, at the very least.
</p></div></div><p>
Any idea about a coming numbered release of AllegroGL? You&#39;d mentioned trying to get one out shortly after Allegro 4.2.0, have you had any spare time to look into that?</p><p>Peter - how does the link you provided correlate with CVS? I note it has a modification date of around October last month, have you made any modifications that were not submitted back to CVS?</p><p>EDIT:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
You&#39;ll need AllegroGL from CVS, at the very least.
</p></div></div><p>
I&#39;ve just grabbed the latest CVS, and it seems unable to use &quot;find&quot;, as was the 0.2.4 release. I don&#39;t really know how to generate patches, but running <i>diff &lt;fix.sh from CVS&gt; &lt;fix.sh from Peter Hull&gt;</i> gives the following:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
59c59<br />&lt;       find examp -! -name *.dat -type f -exec sh misc/dtou.sh {} \;<br />---<br />&gt;       find examp \! -name *.dat -type f -exec sh misc/dtou.sh {} \;<br />62c62<br />&lt;               sh misc/dtou.sh $$f<br />---<br />&gt;               sh misc/dtou.sh $f<br />69c69<br />&lt;       find examp -! -name *.dat -type f -exec sh misc/utod.sh {} \;<br />---<br />&gt;       find examp \! -name *.dat -type f -exec sh misc/utod.sh {} \;
</p></div></div><p>

EDIT2: a further disadvantage of the CVS version is that none of the examples actually display anything with the example of excamera which appears to be falling back on software Allegro judging by speed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Fri, 18 Nov 2005 03:10:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ah bugger, does this mean you have to use the CVS version of allegroGL with openlayer when using allegro4.2 bob?</p><p>If so, can any kind soul pass me a zip of it, it can&#39;t be much more than 350k <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Neil.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Fri, 18 Nov 2005 06:42:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
If so, can any kind soul pass me a zip of it, it can&#39;t be much more than 350k
</p></div></div><p>
I can&#39;t say whether it is an absolute essential for 4.2.0, but a straight CVS grab + zip produces a 404kb file, is that close enough to 350kb? In any case, the zip is attached to this message.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Fri, 18 Nov 2005 07:05:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Ah bugger, does this mean you have to use the CVS version of allegroGL with openlayer when using allegro4.2
</p></div></div><p>
Yes.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I can&#39;t say whether it is an absolute essential for 4.2.0
</p></div></div><p>
Yes. Allegro&#39;s graphics driver vtables have changed. Since they&#39;re initialised statically, AllegroGL breaks if the change was made to Allegro after the release of AllegroGL.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Fri, 18 Nov 2005 13:05:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
is that close enough to 350kb? In any case, the zip is attached to this message.
</p></div></div><p>Yes. Bob probably applied the bloat algorithm preparing for the move from AllegGL to AllegDX when Vista arrives <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><p>Thanks Thomas and Evert, I&#39;ll be recompiling this lunchtime. Seems like recompiling libraries has turned into a full time job <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Maybe this is why one of the allegrogl examples didn&#39;t work.</p><p>Neil.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Fri, 18 Nov 2005 15:12:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Question: When will they release AllegroGL 0.2.5? (Thomas: Thank you for the ZIP).</p><div class="quote_container"><div class="title">Neil Walker said:</div><div class="quote"><p>
 Bob probably applied the bloat algorithm preparing for the move from AllegGL to AllegDX when Vista arrives
</p></div></div><p>

May be it&#39;s not the place to discuss this but I think that AllegroDX isn&#39;t necessary. From the beginning Win32 supports the OpenGL using dynamic link libraries so Silicon and Mesa would release new DLL files for this.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Tue, 22 Nov 2005 02:55:46 +0000</pubDate>
	</item>
</rss>
