<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Frage zu autoconf und automake]]></title><description><![CDATA[<p>Hallo erstmal,</p>
<p>also bin mir jetzt nicht ganz sicher mit dem Forum hier aber was solls. Ich versuche grade ein kleines Projekt zu erstellen, das gegen QT4 gelinkt wird und mithilfe von <strong>autoconf</strong> und <strong>automake</strong> kompiliert werden soll. Mit <strong>autoconf</strong> und <strong>automake</strong> hatte ich vorher noch nie etwas zu tun, habe mir jetzt aber mithilfe einiger Anleitungen aus dem Internet eine <strong><a href="http://configure.in" rel="nofollow">configure.in</a></strong> und eine <strong><a href="http://Makefile.am" rel="nofollow">Makefile.am</a></strong> gebastelt, so dass die folgende Befehlssequenz ohne Fehler ausgeführt wird und auch das gewünschte Ergebnis liefert:</p>
<pre><code>aclocal
autoconf
autoheader
automake --add-missing --copy --foreign
</code></pre>
<p>Ein anschließendes <strong>configure</strong> klappt ebenfalls, nur das <strong>make</strong> scheitert, denn ich weiß nicht, wie ich den <strong>g++</strong> nun anweise, die Include-Verzeichnisse von QT4 einzubeziehen sowie gegen die entsprechenden Bibliotheken zu linken.</p>
<p>Ich finde dazu einfach keine Informationen, weiß jemand Rat? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Mein kleines Beispielprojekt sieht jetzt folgendermaßen aus.<br />
/configure.in:</p>
<pre><code>AM_INIT_AUTOMAKE(libvizgui,0.1)
AM_CONFIG_HEADER(config.h:config.in)
AC_EXEEXT
AC_PROG_CXX
AM_DISABLE_SHARED
AM_PROG_LIBTOOL
AC_OUTPUT(Makefile lib/Makefile)
</code></pre>
<p>/Makefile.am:</p>
<pre><code>SUBDIRS = lib
</code></pre>
<p>/lib/Makefile.am:</p>
<pre><code>lib_LIBRARIES = libvizgui.a
libvizgui_a_SOURCES = libvizgui.cpp
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/215331/frage-zu-autoconf-und-automake</link><generator>RSS for Node</generator><lastBuildDate>Thu, 25 Jun 2026 21:06:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/215331.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jun 2008 16:12:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu autoconf und automake on Mon, 09 Jun 2008 16:12:03 GMT]]></title><description><![CDATA[<p>Hallo erstmal,</p>
<p>also bin mir jetzt nicht ganz sicher mit dem Forum hier aber was solls. Ich versuche grade ein kleines Projekt zu erstellen, das gegen QT4 gelinkt wird und mithilfe von <strong>autoconf</strong> und <strong>automake</strong> kompiliert werden soll. Mit <strong>autoconf</strong> und <strong>automake</strong> hatte ich vorher noch nie etwas zu tun, habe mir jetzt aber mithilfe einiger Anleitungen aus dem Internet eine <strong><a href="http://configure.in" rel="nofollow">configure.in</a></strong> und eine <strong><a href="http://Makefile.am" rel="nofollow">Makefile.am</a></strong> gebastelt, so dass die folgende Befehlssequenz ohne Fehler ausgeführt wird und auch das gewünschte Ergebnis liefert:</p>
<pre><code>aclocal
autoconf
autoheader
automake --add-missing --copy --foreign
</code></pre>
<p>Ein anschließendes <strong>configure</strong> klappt ebenfalls, nur das <strong>make</strong> scheitert, denn ich weiß nicht, wie ich den <strong>g++</strong> nun anweise, die Include-Verzeichnisse von QT4 einzubeziehen sowie gegen die entsprechenden Bibliotheken zu linken.</p>
<p>Ich finde dazu einfach keine Informationen, weiß jemand Rat? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Mein kleines Beispielprojekt sieht jetzt folgendermaßen aus.<br />
/configure.in:</p>
<pre><code>AM_INIT_AUTOMAKE(libvizgui,0.1)
AM_CONFIG_HEADER(config.h:config.in)
AC_EXEEXT
AC_PROG_CXX
AM_DISABLE_SHARED
AM_PROG_LIBTOOL
AC_OUTPUT(Makefile lib/Makefile)
</code></pre>
<p>/Makefile.am:</p>
<pre><code>SUBDIRS = lib
</code></pre>
<p>/lib/Makefile.am:</p>
<pre><code>lib_LIBRARIES = libvizgui.a
libvizgui_a_SOURCES = libvizgui.cpp
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1525845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525845</guid><dc:creator><![CDATA[the*V*oid]]></dc:creator><pubDate>Mon, 09 Jun 2008 16:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu autoconf und automake on Mon, 09 Jun 2008 17:08:55 GMT]]></title><description><![CDATA[<p>nutzt man nicht <strong>qmake</strong> wenn man mit Qt baut?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525889</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525889</guid><dc:creator><![CDATA[Xantus]]></dc:creator><pubDate>Mon, 09 Jun 2008 17:08:55 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu autoconf und automake on Tue, 10 Jun 2008 08:18:14 GMT]]></title><description><![CDATA[<p>the[V]oid schrieb:</p>
<blockquote>
<p>Ein anschließendes <strong>configure</strong> klappt ebenfalls, nur das <strong>make</strong> scheitert, denn ich weiß nicht, wie ich den <strong>g++</strong> nun anweise, die Include-Verzeichnisse von QT4 einzubeziehen</p>
</blockquote>
<p>In lib/Makefile.am AM_CXXFLAGS entsprechend setzen.</p>
<p>the[V]oid schrieb:</p>
<blockquote>
<p>sowie gegen die entsprechenden Bibliotheken zu linken.</p>
</blockquote>
<p>In lib/Makefile.am libvizgui_a_LDADD entsprechend setzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526200</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 10 Jun 2008 08:18:14 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu autoconf und automake on Thu, 12 Jun 2008 14:54:52 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-8.html" rel="nofollow">Rund um die Programmierung</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1527844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1527844</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 12 Jun 2008 14:54:52 GMT</pubDate></item></channel></rss>