<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Fedora 33 and allegro-devel install problem</title>
		<link>http://www.allegro.cc/forums/view/618406</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 03 May 2021 19:36:58 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I installed(?) allegro 5 using dnf on Fedora and thought things went well. After configuring code::blocks I tried compiling a simple program but got linking errors. I tried reinstalling and most of the packages were installed except allegro-devel. I believe I got a no such package error. I tried compiling from the command line, got errors related to allegro-devel and was prompted to install, so I said yes. the compile failed. Errors are:</p><div class="source-code snippet"><div class="inner"><pre> gcc main.c `allegro-config <span class="k3">-</span><span class="k3">-</span>libs`
<span class="k3">/</span>usr<span class="k3">/</span>bin<span class="k3">/</span>ld: <span class="k3">/</span>tmp<span class="k3">/</span>ccbuDCqo.o: in function `main<span class="s">':</span>
<span class="s">main.c:(.text+0x14): undefined reference to `al_install_system'</span>
<span class="k3">/</span>usr<span class="k3">/</span>bin<span class="k3">/</span>ld: main.c:<span class="k2">(</span>.text<span class="k3">+</span><span class="n">0x34</span><span class="k2">)</span><span class="k2">:</span> undefined reference to `<a href="http://www.allegro.cc/manual/al_init_primitives_addon"><span class="a">al_init_primitives_addon</span></a><span class="s">'</span>
<span class="s">/usr/bin/ld: main.c:(.text+0x74): undefined reference to `al_create_display'</span>
<span class="k3">/</span>usr<span class="k3">/</span>bin<span class="k3">/</span>ld: main.c:<span class="k2">(</span>.text<span class="k3">+</span><span class="n">0xb3</span><span class="k2">)</span><span class="k2">:</span> undefined reference to `<a href="http://www.allegro.cc/manual/al_set_target_backbuffer"><span class="a">al_set_target_backbuffer</span></a><span class="s">'</span>
<span class="s">/usr/bin/ld: main.c:(.text+0xc7): undefined reference to `al_map_rgb'</span>
<span class="k3">/</span>usr<span class="k3">/</span>bin<span class="k3">/</span>ld: main.c:<span class="k2">(</span>.text<span class="k3">+</span><span class="n">0xed</span><span class="k2">)</span><span class="k2">:</span> undefined reference to `<a href="http://www.allegro.cc/manual/al_clear_to_color"><span class="a">al_clear_to_color</span></a><span class="s">'</span>
<span class="s">/usr/bin/ld: main.c:(.text+0x101): undefined reference to `al_map_rgb'</span>
<span class="k3">/</span>usr<span class="k3">/</span>bin<span class="k3">/</span>ld: main.c:<span class="k2">(</span>.text<span class="k3">+</span><span class="n">0x19a</span><span class="k2">)</span><span class="k2">:</span> undefined reference to `<a href="http://www.allegro.cc/manual/al_draw_ellipse"><span class="a">al_draw_ellipse</span></a><span class="s">'</span>
<span class="s">/usr/bin/ld: main.c:(.text+0x19f): undefined reference to `al_flip_display'</span>
<span class="k3">/</span>usr<span class="k3">/</span>bin<span class="k3">/</span>ld: main.c:<span class="k2">(</span>.text<span class="k3">+</span><span class="n">0x1b0</span><span class="k2">)</span><span class="k2">:</span> undefined reference to `<a href="http://www.allegro.cc/manual/al_rest"><span class="a">al_rest</span></a><span class="s">'</span>
<span class="s">/usr/bin/ld: main.c:(.text+0x1bc): undefined reference to `al_destroy_display'</span>
collect2: error: ld returned <span class="n">1</span> <a href="http://www.delorie.com/djgpp/doc/libc/libc_298.html" target="_blank">exit</a> status
</pre></div></div><p>This leads me to believe the package is not installed or installed correctly. Am I correct? I can remove and reinstall but if there is something else going on, I&#39;d like to find out. Thx
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Sun, 02 May 2021 01:59:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>allegro5-devel surely?<br /><a href="https://koji.fedoraproject.org/koji/rpminfo?rpmID=22600737">https://koji.fedoraproject.org/koji/rpminfo?rpmID=22600737</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Sun, 02 May 2021 02:12:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You&#39;re linking wrong. You should be using pkg-config, not allegro-config<br />gcc -Wall -Wextra -Wshadow -ggdb3 -O0 `pkg-config --cflags allegro`, and add all the addon libraries you used. You&#39;re just not linking, there&#39;s nothing broken at all.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 02 May 2021 02:35:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m pretty sure my system is messed up. I&#39;m going to try a few other things and see what happens. </p><p>Peter?</p><p><span class="remote-thumbnail"><span class="json">{"name":"612942","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/0\/40e4901094aecd40353514562a599b12.jpg","w":300,"h":168,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/0\/40e4901094aecd40353514562a599b12"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/4/0/40e4901094aecd40353514562a599b12-240.jpg" alt="612942" width="240" height="134" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Sun, 02 May 2021 04:35:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Bob - not sure what you meant with that image. I was in a rush with my poist but the point was to make sure you were installing allegro5-devel and not allegro-devel. Using allegro-config (which is provided by the latter) is going to pass Allegro 4 libs into the the linker and that might account for the missing symbols you see listed.<br />Cheers!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Sun, 02 May 2021 12:22:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Peter, I did not notice the difference between the package you posted and what I thought I was using. I thought I sensed a little sarcasm, sorry. Still trying a few things, but confused why code::blocks does not work.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Sun, 02 May 2021 15:55:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Good stuff! I have Fedora 34 in a VM so if you haven&#39;t fixed it I can have a look, though I&#39;m not a code::blocks user. Will be tomorrow probably.<br />Also I noticed I&#39;ve invented a new word &#39;poist&#39;! It&#39;s a cross between point and post. You heard it first here...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Sun, 02 May 2021 17:14:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m still looking into using code::blocks to make compiling easier. In the meantime, here is the code attached. What would be the terminal command to compile? I want to check my installation.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Mon, 03 May 2021 00:11:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I compiled your main.c with
</p><pre>
cc -o main -O2 -g main.c $(pkg-config --libs --cflags allegro-5 allegro_primitives-5) 
</pre><p>
(this was on Fedora 34, but I don&#39;t believe 33 would be any different)<br />The packages I have installed are (I have both A4 &amp; A5, they coexist ok)
</p><pre>
$ dnf list installed |grep allegro
allegro.x86_64                                 4.4.3.1-5.fc34                    @fedora               
allegro-devel.x86_64                           4.4.3.1-5.fc34                    @fedora               
allegro5.x86_64                                5.2.4-7.fc34                      @fedora               
allegro5-addon-image.x86_64                    5.2.4-7.fc34                      @fedora               
allegro5-addon-image-devel.x86_64              5.2.4-7.fc34                      @fedora               
allegro5-devel.x86_64                          5.2.4-7.fc34                      @fedora    
</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Mon, 03 May 2021 14:45:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks, I&#39;ll give it a shot. I did upgrade to Fedora 34 recently, I forgot to note in the thread.<br />EDIT:<br />I forgot to ask, do I need to fully qualify the path to the *.so files, ie /usr/lib64 (or lib) in the terminal command? If so the problem may be a PATH issue.</p><p>EDIT2:<br />I was able to compile and link in terminal, so the issue is something in code::blocks. I&#39;ll keep looking.</p><p>EDIT3: Nevermind,  found it thanks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Mon, 03 May 2021 19:36:58 +0000</pubDate>
	</item>
</rss>
