<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Ubuntu 9.10 Allegro 4.4.0</title>
		<link>http://www.allegro.cc/forums/view/602646</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 31 Dec 2009 05:18:12 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello, this is my first post.</p><p>I&#39;m using Ubuntu 9.10 and the default repository uses Allegro 4.2. I downloaded the source to 4.4.0 as I would like AllegroGL and the other extensions it has built-in. I then ran cmake, make and &#39;make install&#39; and all seemed to go well.</p><p>allegro-config --libs --version<br />4.4.0<br />-L/usr/local/lib -lalleg</p><p>When I try to compile+link (even the simplest of programs that I had no problem with using 4.2) I now get the following error message :</p><p>error while loading shared libraries: liballeg.so.4.4: cannot open shared object file: No such file or directory</p><p>Any pointers would be appreciated.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (hagen2)</author>
		<pubDate>Sun, 27 Dec 2009 18:02:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Have you done
</p><pre class="terminal">sudo ldconfig</pre><p>
?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sun, 27 Dec 2009 22:45:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No I hadn&#39;t. Thank you. I am learning what it means to develop on Linux and appreciate your help and quick response. It seems to be working fine now. <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" /></p><p>Here are the steps I took :</p><p>1) Uninstalled &#39;liballegro4.2-dev&#39; in Synaptic. Not a required step if you haven&#39;t already installed it from the default repository.</p><p>2) Downloaded source from Allegro site (allegro-4.4.0.tar.gz), extracted it and navigated to it&#39;s directory via the command line.</p><p>3) Installed cmake : sudo apt-get install cmake</p><p>4) Installed dependencies (hinted at in docs/build/cmake.txt) : sudo apt-get install libogg-dev libvorbis-dev libpng12-dev libasound2-dev libjack-dev libbio2jack0 libbio2jack0-dev</p><p>5) cmake CMakeLists.txt</p><p>6) make</p><p>7) sudo make install</p><p>8) sudo ldconfig</p><p>Have I missed anything? I am hoping it may be of assistance to others just starting out. I would appreciate a more experienced user&#39;s verification of the above.</p><p>Thanks again SiegeLord.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (hagen2)</author>
		<pubDate>Mon, 28 Dec 2009 05:55:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>1. Most users don&#39;t need JACK, but it doesn&#39;t hurt.</p><p>2. The flag should be -DWANT_LINUX_CONSOLE. I think most users won&#39;t have any use for it nowadays.</p><p>3. You don&#39;t need to be root for the &quot;make&quot; step, just make install and ldconfig.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Mon, 28 Dec 2009 06:54:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thank you Peter. I have edited the steps above, is that better?</p><p>Are the addons for Allegro-4.4.0 automatically installed through the above procedure? I am getting errors (missing files) when I attempt to compile the &quot;very special hello world&quot; found here : <a href="http://wiki.allegro.cc/index.php?title=Hardware_Accelerated_Allegro_%28AllegroGL%29">http://wiki.allegro.cc/index.php?title=Hardware_Accelerated_Allegro_%28AllegroGL%29</a></p><pre>gcc -Wall -c &quot;test.c&quot;
In file included from /usr/local/include/alleggl.h:73, from test.c:2:
/usr/local/include/allegrogl/gl_ext.h:12:41: error: allegrogl/GLext/gl_ext_defs.h: No such file or directory
/usr/local/include/allegrogl/gl_ext.h:16:42: error: allegrogl/GLext/glx_ext_defs.h: No such file or directory
/usr/local/include/allegrogl/gl_ext.h:27:41: error: allegrogl/GLext/gl_ext_api.h: No such file or directory
/usr/local/include/allegrogl/gl_ext.h:31:42: error: allegrogl/GLext/glx_ext_api.h: No such file or directory
/usr/local/include/allegrogl/gl_ext.h:43:44: error: allegrogl/GLext/gl_ext_alias.h: No such file or directory
/usr/local/include/allegrogl/gl_ext.h:53:45: error: allegrogl/GLext/glx_ext_alias.h: No such file or directory
/usr/local/include/allegrogl/gl_ext.h:61:45: error: allegrogl/GLext/gl_ext_list.h: No such file or directory
/usr/local/include/allegrogl/gl_ext.h:68:46: error: allegrogl/GLext/glx_ext_list.h: No such file or directory
Compilation failed.
</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (hagen2)</author>
		<pubDate>Mon, 28 Dec 2009 10:15:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Looks like you are missing OpenGL development files. The addons will be built if the required dependencies can be found by CMake. e.g. on my machine:</p><div class="source-code snippet"><div class="inner"><pre><span class="k3">-</span><span class="k3">-</span> Looking <span class="k1">for</span> glXGetProcAddress
<span class="k3">-</span><span class="k3">-</span> Looking <span class="k1">for</span> glXGetProcAddress <span class="k3">-</span> found
<span class="k3">-</span><span class="k3">-</span> Found ZLIB: <span class="k3">/</span>usr<span class="k3">/</span>lib64<span class="k3">/</span>libz.so
<span class="k3">-</span><span class="k3">-</span> Found PNG: <span class="k3">/</span>usr<span class="k3">/</span>lib64<span class="k3">/</span>libpng.so
<span class="k3">-</span><span class="k3">-</span> Found VORBIS: <span class="k3">/</span>usr<span class="k3">/</span>include
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Tue, 29 Dec 2009 04:22:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I did have the following reported when I ran CMake :</p><p>-- Looking for glXGetProcAddress<br />-- Looking for glXGetProcAddress - found</p><p>Peter, I also found that if I didn&#39;t &#39;sudo make&#39; I was getting a permission denied error.</p><p>I was using Allegro 4.2 happily. I wanted to give hardware accelerated 2D a try because I want a fluid 1920x1200 full screen experience. I figured rather than installing Allegrogl separately I may as well get 4.4.0 which has that and more. I have installed numerous mesa-dev, nvidia-glx-dev and other libraries to no avail. If someone started with a fresh Ubuntu 9.10 installation and wanted to be Allegro 4.4.0 ready ... what exactly needs to happen? I have no problem using 4.4.0 itself, but no luck with the Allegrogl addon in particular.</p><p>Here is the code I am unable to compile :</p><pre>#include &lt;allegro.h&gt;
#include &lt;alleggl.h&gt;
 
int main() {
   if (allegro_init() != 0) {
      return 1;
   }
   if (install_allegro_gl() != 0) {
      return 1;
   }
 
   install_keyboard();
   install_timer();
 
   allegro_gl_set(AGL_DOUBLEBUFFER, 1);
   allegro_gl_set(AGL_WINDOWED, TRUE);
   allegro_gl_set(AGL_COLOR_DEPTH, 32);
   allegro_gl_set(AGL_SUGGEST, AGL_DOUBLEBUFFER | AGL_WINDOWED | AGL_COLOR_DEPTH);
   if(set_gfx_mode(GFX_OPENGL, 800, 600, 0, 0)) {
       allegro_message (&quot;Error setting OpenGL graphics mode:\n%s\n&quot;
                        &quot;Allegro GL error : %s\n&quot;,
                        allegro_error, allegro_gl_error);
       exit(0);
   }
 
   allegro_gl_set_allegro_mode();
 
   textout_ex(screen, font, &quot;Hello World!&quot;, 50, 100, makecol(255, 0, 0), -1);
 
   allegro_gl_unset_allegro_mode();
 
   allegro_gl_flip();
   readkey();
 
   return 0;
}
END_OF_MAIN()</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (hagen2)</author>
		<pubDate>Tue, 29 Dec 2009 12:25:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Have a look in your CMakeCache.txt and CMakeFiles/CMakeError.log files. If you can&#39;t figure it out you can attach it here.</p><p>You don&#39;t need root permissions to make. You probably extracted the package earlier as root so don&#39;t have write permission.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Tue, 29 Dec 2009 13:37:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks Peter.</p><p>I have attached the two files you referred me to. Can you shed any light on my situation?</p><p>Should I be uninstalling Allegro 4.4.0 before re-installing it? If so, how do I perform a proper uninstall?</p><p>Among several other dependencies I have installed both libglu1-mesa-dev and libgl1-mesa-dev.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (hagen2)</author>
		<pubDate>Tue, 29 Dec 2009 21:27:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Oops, sorry. Some of the AllegroGL header files aren&#39;t being installed. I will put up Allegro 4.4.0.1 today.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Wed, 30 Dec 2009 05:42:03 +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/602646/845021#target">Peter Wang</a> said:</div><div class="quote"><p>Oops, sorry. Some of the AllegroGL header files aren&#39;t being installed. I will put up Allegro 4.4.0.1 today.</p></div></div><p>

Great news! Thank you very much Peter. <img src="http://www.allegro.cc/forums/smileys/cool.gif" alt="8-)" /></p><p>I can now compile. However, I can&#39;t link properly.</p><p>gcc -W -Wall -s -O2 -pipe demo.c -o demo -lagl `allegro-config --libs` -lGL -lGLU<br />/usr/bin/ld: cannot find -lagl<br />collect2: ld returned 1 exit status
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (hagen2)</author>
		<pubDate>Wed, 30 Dec 2009 13:05:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It should be -lalleggl now (the file is called liballeggl.a).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Thu, 31 Dec 2009 04:24:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Working for me now! Thanks again Peter for all your help.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (hagen2)</author>
		<pubDate>Thu, 31 Dec 2009 05:18:12 +0000</pubDate>
	</item>
</rss>
