<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro 5.1.XXX Compile Article</title>
		<link>http://www.allegro.cc/forums/view/614997</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 20 Jan 2015 22:17:42 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi!</p><p>I have tried to complile latest version of allegro. And I had realised that it is not easy as any other libraries like SDL or SFML.</p><p>Maybe some articles already exists, but my search was fail <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /></p><p>I think that is not a real problem to describe us how to comple this library (with detail step by step). It will be not shor/not big article, but it will get new users for this lib. Becouse, a lot of users go away due to hard to comppile lib from first or second trying.</p><p>Can anybody post some article, how to comple allegro from scratch. For example for vs2013. How to obtain files that equals to published at <a href="http://cdn.allegro.cc/file/library/allegro/5.0.10/allegro-5.0.10-msvc-11.0.zip">http://cdn.allegro.cc/file/library/allegro/5.0.10/allegro-5.0.10-msvc-11.0.zip</a></p><p>Sorry for my english
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ivan Zhukov)</author>
		<pubDate>Sun, 18 Jan 2015 04:54:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s relatively straightforward to compile Allegro with <a href="https://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Windows">MinGW</a> or <a href="https://wiki.allegro.cc/index.php?title=Building_with_msys2">MinGW-w64/MSYS2</a>. MSVC isn&#39;t as nice, so generally you have to rely on pre-built libraries.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sun, 18 Jan 2015 05:05:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need cmake installed and then you can build like this :</p><pre>
cd allegro
mkdir build
cd build
cmake -G &quot;Visual Studio 12&quot; -DCMAKE_BUILD_TYPE=Release -DSHARED=On -DWANT_MONOLITH=On ..
</pre><p>

Then open the solution it creates and build it with MSVC.</p><p>That&#39;s the basics of it. Where it gets hard is compiling the rest of the dependency libraries with MSVC. Build support is spotty. Some of the dependencies can be built with cmake as well, like zlib, libpng, physfs, and freetype. Others need to be built with configure, which is only available through Cygwin, MSYS, or Unix, but luckily these all support msvc projects in a win32 folder (though the version may be out of date, so get latest sources) like ogg, vorbis, and theora.</p><p>See README_msvc.txt in the source distribution for additional build notes.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 18 Jan 2015 08:54:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah... I just tried going through the process and everything is super easy for the CMake-enabled libraries, but getting libogg/libvorbis compiled is proving to be basically impossible. I wish they&#39;d get a CMakeLists.txt in their libraries <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sun, 18 Jan 2015 09:43:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/614997/1009353#target">SiegeLord</a> said:</div><div class="quote"><p> but getting libogg/libvorbis compiled is proving to be basically impossible</p></div></div><p>I think I had problems with libogg last time I tried building Allegro as well. It wanted a header file that wasn&#39;t included with MinGW.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sun, 18 Jan 2015 10:21:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can&#39;t you load the out-dated versions of the solution files and have msvc update them to the current version by re-saving them? Isn&#39;t there any kind of backwards compatibility here?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 18 Jan 2015 10:24:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That wasn&#39;t the issue (indeed, it managed to open and convert the project/solution files). It took a bit of time to get libvorbisfile to find libvorbis though... I ended up just creating directories where the stupid project was trying to find the lib files. I did discover that I broke A5 building without the D3D SDK <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" />.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sun, 18 Jan 2015 10:40:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s why I like building with MinGW - it has dx9mgw.zip and that&#39;s all you need. You don&#39;t need the full SDK, which is nice.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 18 Jan 2015 12:37:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Newer Mingws or MSYSs may not even need dx9mgw.zip at all <img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Mon, 19 Jan 2015 03:27:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Mingw-w64 doesn&#39;t, since it provides up-to-date directx headers from winelib.</p><p>MSVC doesn&#39;t need the DXSDK itself since it ALSO provides all the needed headers (but not ABSOLUTELY ALL of them IIRC, anyway not anything Allegro needs).</p><p>SO far, I couldn&#39;t find ANY reason not to switch to Mingw-w64 over the old Mingw (which is stale).</p><p>Mingw-w64 IS available also for 32-bit systems, and provides a TON of toolchain and libraries through the MSYS2 project.</p><p>EDIT: by the way, I <b>did</b> build Allegro the very first time with MSVC, and all of the dependencies myself or got the binary for windows when available...O honesly don&#39;t remeber being THIS big hassle.</p><p>I&#39;ll fire up again MSVC and try to build allegro from git in the next days to see what changed in the ecosystem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pkrcel)</author>
		<pubDate>Mon, 19 Jan 2015 03:32:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Now that I&#39;m back home, I&#39;ll attempt to get the build <span class="cuss"><span><span class="cuss"><span>shit</span></span></span></span> working that I promised. I have a busy schedule though, so I can&#39;t give a date as to when it&#39;ll get done. But I am <i>hoping</i> <span class="ref"><sup>[<a href="#">1</a>]</sup></span> to have automatic Mingw64/MSYS2, debian, and MSVC binaries for both stable, wip, and git.
</p><div class="ref-block"><h2>References</h2><ol><li>no guarantees, msvc may prove to be neigh impossible</li></ol></div></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Mon, 19 Jan 2015 03:53:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Isnt&#39; there a way to produce MSVC &quot;compatible&quot; C DLLs cross compiling with mingw?</p><p><s>I know a couple FOSS projects out there proved something like that</s></p><p>EDIT: nevermind, you indeed CAN produce a suitable import file with which MSVC can correctly link a C DLL with MinGW but this precludes the possiblity to statically link.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pkrcel)</author>
		<pubDate>Mon, 19 Jan 2015 04:30:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/614997/1009387#target">pkrcel</a> said:</div><div class="quote"><p> MSVC doesn&#39;t need the DXSDK itself since it ALSO provides all the needed headers (but not ABSOLUTELY ALL of them IIRC, anyway not anything Allegro needs).</p></div></div><p>It doesn&#39;t provide D3DX9 headers, which Allegro uses for some advanced features.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> O honesly don&#39;t remeber being THIS big hassle.</p></div></div><p>Well, it did only take a few hours... it&#39;s not a show stopper, but mildly annoying <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />. The worst part for me, was finding a computer with enough free space on the C drive to install MSVC, as it refuses to be installed on a different drive in a meaningful way.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Mon, 19 Jan 2015 07:45:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/614997/1009401#target">SiegeLord</a> said:</div><div class="quote"><p> It doesn&#39;t provide D3DX9 headers, which Allegro uses for some advanced features.</p></div></div><p>Right, now I remember...I should have mentioned that I was focused in using Opengl also on Windows so I just let things be in cmake (alas WANT_D3D9EX off as default IIRC).</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> Well, it did only take a few hours... it&#39;s not a show stopper, but mildly annoying <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />. The worst part for me, was finding a computer with enough free space on the C drive to install MSVC, as it refuses to be installed on a different drive in a meaningful way. </p></div></div><p>Let&#39;s not get into Visual Studio wonkyness, that is a <i>separate</i> problem, don&#39;t you think? <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>Kidding aside, I&#39;ll have to try again MSVC just to taste the problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pkrcel)</author>
		<pubDate>Mon, 19 Jan 2015 14:10:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/614997/1009418#target">pkrcel</a> said:</div><div class="quote"><p> (alas WANT_D3D9EX off as default IIRC).</p></div></div><p>D3D9EX is different from D3DX9. The former is some weird Vista extension, while the latter is what makes shaders work.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Mon, 19 Jan 2015 14:20:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>&gt;&gt;Right, now I remember...I should have mentioned that I was focused in using Opengl also on Windows so I just let things be in cmake (alas WANT_D3D9EX off as default IIRC).</p><p>I think directx in allegro is a neccesary future! Becouse some users, that download shareware games have old computers where DirectX is working perfectrly, but not opengl.</p><p>I have choosed Allegro instead of (cocos2d-x, SDL and many other) due to DirectX support.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ivan Zhukov)</author>
		<pubDate>Mon, 19 Jan 2015 14:44:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/614997/1009419#target">SiegeLord</a> said:</div><div class="quote"><p> D3D9EX is different from D3DX9. The former is some weird Vista extension, while the latter is what makes shaders work.</p></div></div><p>Curious, I&#39;m fairly sure I haven&#39;t had the need to install the DX SDK when at first using MSVC. But I might be wrong of course.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/614997/1009420#target">Ivan Zhukov</a> said:</div><div class="quote"><p> I think directx in allegro is a neccesary future! Becouse some users, that download shareware games have old computers where DirectX is working perfectrly, but not opengl.</p></div></div><p>Might be as you say, but Allegro Directx support its already quite advanced.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pkrcel)</author>
		<pubDate>Mon, 19 Jan 2015 16:47:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The directx those old games use, is really DirectDraw, not Direct3d. Allegro 5 only uses Direct3d, but it does use a sufficiently &quot;compatible&quot; (read: old) subset of the api for most of what it needs.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Mon, 19 Jan 2015 17:05:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I mean that directx is more simplest software to install than drivers for video cards. And users can install it. Driver for Video Card (for normal support OpenGL) it is usualy problematic software even for pro-users. </p><p>So my opinion that games, that use DirectX are more easy to install.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ivan Zhukov)</author>
		<pubDate>Tue, 20 Jan 2015 22:17:42 +0000</pubDate>
	</item>
</rss>
