<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>kdevelop + allegro</title>
		<link>http://www.allegro.cc/forums/view/588758</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 28 Nov 2006 18:23:54 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p>I have been reading the site and the forums, but I still dont know how to compile allegro within kdevelop.</p><p>I have installed allegro, and example&#39;s from tutorials compile just fine (outside kdevelop with &quot;$make&quot;.</p><p>Can someone write in short how to set kdevelop up? Or a link to a tutorial?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BackwardsDown)</author>
		<pubDate>Mon, 27 Nov 2006 03:09:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="http://awiki.tomasu.org/bin/view/Main/AllegroWithAutoconf">Here ya go</a>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Mon, 27 Nov 2006 03:19:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
niels@niels-desktop:~/Programmeer/C++/allegro2$ make<br />make  all-recursive<br />make[1]: Entering directory `/home/niels/Programmeer/C++/allegro2&#39;<br />Making all in src<br />make[2]: Entering directory `/home/niels/Programmeer/C++/allegro2/src&#39;<br />if g++ -DHAVE_CONFIG_H -I. -I. -I..    @allegro_CFLAGS@ -g -O2 -MT allegro2.o -MD -MP -MF &quot;.deps/allegro2.Tpo&quot; -c -o allegro2.o allegro2.cpp; \<br />        then mv -f &quot;.deps/allegro2.Tpo&quot; &quot;.deps/allegro2.Po&quot;; else rm -f &quot;.deps/allegro2.Tpo&quot;; exit 1; fi<br />g++: @allegro_CFLAGS@: No such file or directory<br />make[2]: *** [allegro2.o] Error 1<br />make[2]: Leaving directory `/home/niels/Programmeer/C++/allegro2/src&#39;<br />make[1]: *** [all-recursive] Error 1<br />make[1]: Leaving directory `/home/niels/Programmeer/C++/allegro2&#39;<br />make: *** [all] Error 2<br />niels@niels-desktop:~/Programmeer/C++/allegro2$
</p></div></div><p>

I followed everyting, but with the command make it just goes completely worng:-/
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BackwardsDown)</author>
		<pubDate>Mon, 27 Nov 2006 21:30:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="http://www.allegro.cc/forums/thread/513272">http://www.allegro.cc/forums/thread/513272</a></p><p>It used to work around a year ago, I&#39;m not sure if it still does. IIRC iIt is based on the awiki article so it might not.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HoHo)</author>
		<pubDate>Mon, 27 Nov 2006 21:42:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can you post your <tt>src/Makefile.am</tt>, <tt>Makefile.am</tt>, and <tt>configure.in</tt>, please?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Mon, 27 Nov 2006 22:17:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Project name: allegro2</p><p>Makefile.am:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
</p><ol><li><p>not a GNU package. You can remove this line, if
</p></li><li><p>have all needed files, that a GNU package needs
</p></li></ol><p>AUTOMAKE_OPTIONS = foreign 1.4</p><p>SUBDIRS = src
</p></div></div><p>

configure.in:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
AC_INIT(configure.in)</p><p>AM_CONFIG_HEADER(config.h)<br />AM_INIT_AUTOMAKE(allegro2, 0.1)</p><p>AC_LANG_CPLUSPLUS<br />AC_PROG_CXX<br />AM_PROG_LIBTOOL</p><p>AC_OUTPUT(Makefile src/Makefile)</p><p>AM_PATH_ALLEGRO([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])<br />AM_PATH_ALLEGRO()<br />AM_PATH_ALLEGRO(4.1.0)
</p></div></div><p>

src/Makefile.am
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
bin_PROGRAMS = allegro2<br />allegro2_SOURCES = allegro2.cpp</p><ol><li><p>set the include path found by configure
</p></li></ol><p>INCLUDES= $(all_includes)</p><ol><li><p>the library search path.
</p></li></ol><p>allegro2_LDFLAGS = $(all_libraries) </p><p>allegro2_LDADD = $(allegro_LIBS)<br />AM_CFLAGS = $(allegro_CFLAGS)<br />AM_CXXFLAGS = $(allegro_CFLAGS)
</p></div></div><p>





</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
AM_PATH_ALLEGRO([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])<br />AM_PATH_ALLEGRO()<br />AM_PATH_ALLEGRO(4.1.0)<br />AC_OUTPUT(Makefile src/Makefile)
</p></div></div><p>
They had to be the other way around, now it seems to compile just fine <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>Thanks for that tread you gave me, because there was someone with the same problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BackwardsDown)</author>
		<pubDate>Mon, 27 Nov 2006 22:27:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Please remove these lines:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
AM_PATH_ALLEGRO([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])<br />AM_PATH_ALLEGRO()
</p></div></div><p>They were just an example <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>At your option, you can leave <tt>AM_PATH_ALLEGRO()</tt> and instead remove <tt>AM_PATH_ALLEGRO(4.1.0)</tt>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Mon, 27 Nov 2006 22:37:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
They were just an example
</p></div></div><p>

Haha, I found it weird anyway::)</p><p>Now I have changed the code, but it doest compile, make doesnt do anything anymore, just:<br />make[2]: Nothing to be done for `all&#39;.</p><p>my bad, made a few stupid mistakes, it works:P
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BackwardsDown)</author>
		<pubDate>Mon, 27 Nov 2006 22:47:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That means it&#39;s already done. It only rebuilds it if you have changed the files <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Mon, 27 Nov 2006 23:24:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes, I was changing the wrong files:-/</p><p>Now it compiles fine, but when I run my program from the command line, it fails at this line:</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
blit(my_pic, screen, 0,0,0,0,480,360); //Draw the whole bitmap to the screen at (0,0)
</p></div></div><p>

</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
niels@niels-desktop:~/Programmeer/C++/allegro2$ ./src/allegro2<br />Shutting down Allegro due to signal #11<br />Segmentation fault
</p></div></div><p>

I load my blit like this:</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
my_pic = load_bitmap(&quot;picture.bmp&quot;, NULL); // Load our picture
</p></div></div><p>

The strange thing is, that when I run my program in kdevelop with build-&gt;execute program or debug-&gt;start the program just works!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BackwardsDown)</author>
		<pubDate>Tue, 28 Nov 2006 02:00:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Problem is the programs have their working path&#39;s wront. Print out argv[0] from the main function and you&#39;ll see it is different.</p><p>One obvious solution would be to execute your program from the same directory as KDevelop.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HoHo)</author>
		<pubDate>Tue, 28 Nov 2006 02:06:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah, you need to do this:<br /><span class="source-code">niels@niels-desktop:~<span class="k3">/</span>Programmeer<span class="k3">/</span>C<span class="k3">+</span><span class="k3">+</span><span class="k3">/</span>allegro2$ src<span class="k3">/</span>allegro2</span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 28 Nov 2006 02:07:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>niels@niels-desktop:~/Programmeer/C++/allegro2/src$ allegro2</p><p>Worked,</p><p>But wont other people have trouble with running my future games, because they are not running it from <i>home/niels/Programmeer/C++/allegro2/src</i> ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BackwardsDown)</author>
		<pubDate>Tue, 28 Nov 2006 02:21:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes. The picture file needs to be in the same directory as the person running the program. In many cases, this is the same directory as the program. In others, this isn&#39;t, and you need to check in some other directory, for instance <i>usr/share/games/allegro2</i>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 28 Nov 2006 02:23:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yay, you&#39;re great;D
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BackwardsDown)</author>
		<pubDate>Tue, 28 Nov 2006 18:23:54 +0000</pubDate>
	</item>
</rss>
