<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Doesn&#39;t anybody test patches anymore? A4.4.3 GIT fails to build</title>
		<link>http://www.allegro.cc/forums/view/616995</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 07 Aug 2017 11:53:16 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m getting these errors when building latest Allegro 4.4.3 from GIT with the patches applied to wwnd.c and wdispsw.c. There are several undeclared identifiers, and IDirectDraw2 something or other is undeclared as well.</p><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number">  1</span>
<span class="number">  2</span>e:\LIBS\LIBS71Build\allegro\build&gt;mingw32-make
<span class="number">  3</span><span class="k2">[</span>  <span class="n">1</span>%<span class="k2">]</span> Building C object CMakeFiles<span class="k3">/</span>allegro.dir<span class="k3">/</span>src<span class="k3">/</span>win<span class="k3">/</span>wwnd.c.obj
<span class="number">  4</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c: In function <span class="s">'directx_wnd_proc'</span><span class="k2">:</span>
<span class="number">  5</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c:387:37: error: <span class="s">'gfx_directx_primary_surface'</span> undeclared <span class="k2">(</span>first use in <span class="k1">this</span> function<span class="k2">)</span><span class="k2">;</span> did you mean <span class="s">'gfx_directx_safe'</span>?
<span class="number">  6</span>          <span class="k1">if</span> <span class="k2">(</span><span class="k2">(</span>HWND<span class="k2">)</span>wparam <span class="k3">!</span><span class="k3">=</span> wnd <span class="k3">&amp;</span><span class="k3">&amp;</span> gfx_directx_primary_surface<span class="k2">)</span> <span class="k2">{</span>
<span class="number">  7</span>                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
<span class="number">  8</span>                                     gfx_directx_safe
<span class="number">  9</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c:387:37: note: each undeclared identifier is reported only once <span class="k1">for</span> each function it appears in
<span class="number"> 10</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c:388:13: warning: implicit declaration of function <span class="s">'IDirectDrawSurface2_SetPalette'</span> <span class="k2">[</span><span class="k3">-</span>Wimplicit-function-declaration<span class="k2">]</span>
<span class="number"> 11</span>             IDirectDrawSurface2_SetPalette<span class="k2">(</span>gfx_directx_primary_surface-&gt;id, ddpalette<span class="k2">)</span><span class="k2">;</span>
<span class="number"> 12</span>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<span class="number"> 13</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c:388:77: error: <span class="s">'ddpalette'</span> undeclared <span class="k2">(</span>first use in <span class="k1">this</span> function<span class="k2">)</span><span class="k2">;</span> did you mean <span class="s">'fli_palette'</span>?
<span class="number"> 14</span>             IDirectDrawSurface2_SetPalette<span class="k2">(</span>gfx_directx_primary_surface-&gt;id, ddpalette<span class="k2">)</span><span class="k2">;</span>
<span class="number"> 15</span>                                                                             ^~~~~~~~~
<span class="number"> 16</span>                                                                             <a href="http://www.allegro.cc/manual/fli_palette"><span class="a">fli_palette</span></a>
<span class="number"> 17</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c: In function <span class="s">'wnd_thread_proc'</span><span class="k2">:</span>
<span class="number"> 18</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c:490:19: warning: comparison of <span class="k1">unsigned</span> expression <span class="k3">&gt;</span><span class="k3">=</span> <span class="n">0</span> is always <span class="k1">true</span> <span class="k2">[</span><span class="k3">-</span>Wtype-limits<span class="k2">]</span>
<span class="number"> 19</span>       <span class="k1">if</span> <span class="k2">(</span><span class="k2">(</span>result <span class="k3">&gt;</span><span class="k3">=</span> WAIT_OBJECT_0<span class="k2">)</span> <span class="k3">&amp;</span><span class="k3">&amp;</span> <span class="k2">(</span>result <span class="k3">&lt;</span> <span class="k2">(</span><span class="k1">int</span><span class="k2">)</span><span class="k2">(</span>WAIT_OBJECT_0 <span class="k3">+</span> _win_input_events<span class="k2">)</span><span class="k2">)</span><span class="k2">)</span> <span class="k2">{</span>
<span class="number"> 20</span>                   ^~
<span class="number"> 21</span>E:\LIBS\LIBS71Build\allegro\src\win\wwnd.c:490:48: warning: comparison between <span class="k1">signed</span> <span class="k1">and</span> <span class="k1">unsigned</span> integer expressions <span class="k2">[</span><span class="k3">-</span>Wsign-compare<span class="k2">]</span>
<span class="number"> 22</span>       <span class="k1">if</span> <span class="k2">(</span><span class="k2">(</span>result <span class="k3">&gt;</span><span class="k3">=</span> WAIT_OBJECT_0<span class="k2">)</span> <span class="k3">&amp;</span><span class="k3">&amp;</span> <span class="k2">(</span>result <span class="k3">&lt;</span> <span class="k2">(</span><span class="k1">int</span><span class="k2">)</span><span class="k2">(</span>WAIT_OBJECT_0 <span class="k3">+</span> _win_input_events<span class="k2">)</span><span class="k2">)</span><span class="k2">)</span> <span class="k2">{</span>
<span class="number"> 23</span>                                                ^
<span class="number"> 24</span>CMakeFiles\allegro.dir\build.make:3278: recipe <span class="k1">for</span> target <span class="s">'CMakeFiles/allegro.dir/src/win/wwnd.c.obj'</span> failed
<span class="number"> 25</span>mingw32-make<span class="k2">[</span><span class="n">2</span><span class="k2">]</span><span class="k2">:</span> <span class="k3">*</span><span class="k3">*</span><span class="k3">*</span> <span class="k2">[</span>CMakeFiles<span class="k3">/</span>allegro.dir<span class="k3">/</span>src<span class="k3">/</span>win<span class="k3">/</span>wwnd.c.obj<span class="k2">]</span> Error <span class="n">1</span>
<span class="number"> 26</span>CMakeFiles\Makefile2:66: recipe <span class="k1">for</span> target <span class="s">'CMakeFiles/allegro.dir/all'</span> failed
<span class="number"> 27</span>mingw32-make<span class="k2">[</span><span class="n">1</span><span class="k2">]</span><span class="k2">:</span> <span class="k3">*</span><span class="k3">*</span><span class="k3">*</span> <span class="k2">[</span>CMakeFiles<span class="k3">/</span>allegro.dir<span class="k3">/</span>all<span class="k2">]</span> Error <span class="n">2</span>
<span class="number"> 28</span>Makefile:126: recipe <span class="k1">for</span> target <span class="s">'all'</span> failed
<span class="number"> 29</span>mingw32-make: <span class="k3">*</span><span class="k3">*</span><span class="k3">*</span> <span class="k2">[</span>all<span class="k2">]</span> Error <span class="n">2</span>
<span class="number"> 30</span>
<span class="number"> 31</span>e:\LIBS\LIBS71Build\allegro\build&gt;
</div></div><p>

Hey Zelda guys, could you take a look at this? Were there other things that your patches needed to work that aren&#39;t in the master branch for Allegro 4.4.3?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 05 Aug 2017 08:38:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Let me take a look.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DarkDragon)</author>
		<pubDate>Sat, 05 Aug 2017 08:50:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This was building with MinGW-W64 gcc v7.1.0, using latest GIT as of today, 08/04/2017. I had to specify a whole bunch of stuff manually for dx and all the deps in cmake, but I think it was all configured correctly.</p><p>Is there a specific lib to link to for the DDPALETTE stuff?</p><p>See my comment on the commit - </p><p><a href="https://github.com/liballeg/allegro5/commit/8ed3298d49ae5c18601f0ada94b74dd8712b1160#diff-dd33cc8f6da8cb3b641611666874ba0cR389">https://github.com/liballeg/allegro5/commit/8ed3298d49ae5c18601f0ada94b74dd8712b1160#diff-dd33cc8f6da8cb3b641611666874ba0cR389</a></p><p><b>EDIT</b><br />The only thing that needs to be fixed is to add <span class="source-code"><span class="p">#include "wddraw.h"</span></span> in src/win/wwnd.c. After that Allegro builds, albeit with lots of warnings.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 05 Aug 2017 09:34:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Edgar Reynaldo said:</div><div class="quote"><p> [...] </p></div></div><p>

Did you push the changes?</p><p>I would also appreciate copies of the allegro 4.4.3 libs that you compiled with these changes, and any other related files; and the revised CMake stuff.</p><p>I need to libs to test with ZC on Linux.<br />That include directive may need compiler-specific guards.</p><p>P.S. If you manage to compile these fixes on Windows 7, too, let me knoe, and I will test that lib. (Needs to be static linked. I&#39;ve been waiting for Gleeok to apply some form of patch to the KB thread issues before I go through that process again. Can you link to the procedure for building 4.4.3 on Linux and on Windows, somewhere? The old guides are somewhat out of date.)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ZoriaRPG)</author>
		<pubDate>Mon, 07 Aug 2017 00:31:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><b>EDIT</b><br />I made a wiki page on building Allegro 4.4.X with MinGW. You can find it here :</p><p><a href="https://wiki.allegro.cc/index.php?title=Building_Allegro_4_with_MinGW">https://wiki.allegro.cc/index.php?title=Building_Allegro_4_with_MinGW</a></p><p>SiegeLord will probably commit my fix here in a bit, and then latest GIT should build again.</p><p><b>ORIGINAL POST</b><br />I don&#39;t have commit access.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/616995/1032053#target">ZoriaRPG</a> said:</div><div class="quote"><p>
I would also appreciate copies of the allegro 4.4.3 libs that you compiled with these changes, and any other related files; and the revised CMake stuff.
</p></div></div><p>
I posted binaries here : <a href="https://www.allegro.cc/forums/thread/616998">https://www.allegro.cc/forums/thread/616998</a></p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Can you link to the procedure for building 4.4.3 on Linux and on Windows, somewhere? The old guides are somewhat out of date.) 
</p></div></div><p>
No, but I can make a wiki page for it. Give me a little time.</p><p>The basics are :</p><p>git clone allegro_url<br />git checkout 4.4<br />git pull<br />mkdir build<br />cd build<br />cmake-gui ..<br />(Lots of configuration here)<br />mingw32-make<br />mingw32-make install</p><p>Configuration details :<br />I had to manually specify the DX libs and the include directories, as well as the specific libs for all of the dependencies.</p><p>Other than that, it&#39;s just checking what you want, and making sure to set CMAKE_INSTALL_PREFIX to something other than c:/mingw, so you can work with different versions of allegro.</p><p>Other than that, moving to A4.4.3 should save you some misery in building dependencies - it comes with loadpng, jpgalleg, logg, and allegrogl.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Mon, 07 Aug 2017 11:53:16 +0000</pubDate>
	</item>
</rss>
