<?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[Qmake generates a MakeFile wich a not ending loop]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm new at qt and i'm trying to develop an aplication to visualize opengl graphics. I'm developing with Ubuntu 11.10 and with the last version of qt available at ubuntu's software center. My project is a subdirs project where i have one project for the aplication and one project for a static library. If i do the qmake and make of each project separately everything works well. But if I do the qmake and make of the subdirs pro file, the make file generated when i do make enters in a infinite loop...</p>
<p dir="auto">I execute:</p>
<blockquote>
<p dir="auto">qmake <a href="http://project.pro" target="_blank" rel="noopener noreferrer nofollow ugc">project.pro</a><br />
make<br />
and the infinite loop starts...</p>
</blockquote>
<p dir="auto">I attach the pro files. Thank you for the help because I'm becoming crazy with this....</p>
<p dir="auto"><em>workspace/VisualApp/project.pro</em></p>
<p dir="auto">@<br />
TEMPLATE = subdirs</p>
<p dir="auto">CONFIG += ordered</p>
<p dir="auto">SUBDIRS = ../LibMath <br />
../VisualApp</p>
<p dir="auto">@</p>
<p dir="auto"><em>workspace/VisualApp/VisualApp.pro</em><br />
@<br />
include (../general.pro)</p>
<p dir="auto">TEMPLATE = app<br />
LANGUAGE = C++<br />
TARGET = Noctiluca3D</p>
<p dir="auto">SOURCES += src/main.cpp <br />
src/MainWindow.cpp <br />
src/View.cpp</p>
<p dir="auto">HEADERS += include/MainWindow.h <br />
include/View.h</p>
<p dir="auto">FORMS = ui/MainWindow.ui</p>
<p dir="auto">#RESOURCES += images/main.qrc</p>
<p dir="auto">CONFIG(debug, debug|release){<br />
LIBS += -L../bin/debug -lMath<br />
}CONFIG(release, debug|release){<br />
LIBS += -L../bin/release -lMath<br />
}<br />
@</p>
<p dir="auto"><em>workspace/generals.pro</em><br />
@<br />
#################################### CONFIG ############################################<br />
#Añadimos las configuraciones que utilizaran la mayor parte de librerias<br />
#Ver : (<a href="http://doc.qt.nokia.com/latest/qmake-project-files.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/latest/qmake-project-files.html</a>)</p>
<p dir="auto">#Mostrar todos los warnings<br />
CONFIG += warn_on</p>
<p dir="auto">#Permite compilar el proyecto en modo debug y release<br />
CONFIG += debug_and_release</p>
<p dir="auto">#La aplicacion necesita una consola<br />
CONFIG += console</p>
<p dir="auto">#La aplicacion usara Qt<br />
CONFIG += qt</p>
<p dir="auto">#Hay que definir que extensiones de qt no por defecto vendran<br />
QT += opengl</p>
<p dir="auto">################################## DIRECTORIOS #########################################</p>
<p dir="auto">#Directorio donde se guardan los ficheros ui_*.h<br />
UI_DIR = ui_headers</p>
<p dir="auto">#En funcion de la configuracion se decide donde se almacenaram<br />
CONFIG(debug, debug|release){<br />
MOC_DIR = moc_debug<br />
OBJECTS_DIR = obj_debug<br />
RESOURCES_DIR = resources_debug<br />
DESTDIR = ../bin/debug<br />
}CONFIG(release, debug|release){<br />
MOC_DIR = moc_release<br />
OBJECTS_DIR = obj_release<br />
RESOURCES_DIR = resources_release<br />
DESTDIR = ../bin/release<br />
}</p>
<p dir="auto">#Añadimos las rutas donde buscara el compilador para buscar cabezeras<br />
INCLUDEPATH+= include ui ui_headers ../</p>
<p dir="auto">#Indica a qmake donde tiene que buscar dependencias, de esta manera si modificamos un .h<br />
#los .cpp que dependan de el seran recompilados<br />
DEPENDPATH += include ui src ../</p>
<p dir="auto">########################################################################################</p>
<h1>Estructura de fichero de proyecto</h1>
<h1></h1>
<h1><a href="http://project.pro" target="_blank" rel="noopener noreferrer nofollow ugc">project.pro</a></h1>
<h1></h1>
<h1></h1>
<h1>TEMPLATE = subdirs</h1>
<h1>CONFIG +=ordered debug_and_release</h1>
<h1></h1>
<h1>SUBDIRS += Libreria1 \</h1>
<h1>...</h1>
<h1></h1>
<p dir="auto">@</p>
<p dir="auto"><em>workspace/LibMath/LibMath.pro</em><br />
@<br />
include (../general.pro)</p>
<p dir="auto">TEMPLATE = lib<br />
LANGUAGE = C++<br />
TARGET = Math<br />
CONFIG += static</p>
<p dir="auto">SOURCES += src/Point3D.cpp <br />
src/Vector3D.cpp <br />
src/Matrix4x4.cpp</p>
<p dir="auto">HEADERS += include/Point3D.h <br />
include/Vector3D.h <br />
include/Matrix4x4.h<br />
@</p>
]]></description><link>https://forum.qt.io/topic/12414/qmake-generates-a-makefile-wich-a-not-ending-loop</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 13:15:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/12414.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Dec 2011 19:48:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qmake generates a MakeFile wich a not ending loop on Sat, 24 Dec 2011 16:31:49 GMT]]></title><description><![CDATA[<p dir="auto">Volker you are right! i didn't get that it will process itself too.</p>
<p dir="auto">My project now runs perfect!</p>
]]></description><link>https://forum.qt.io/post/121771</link><guid isPermaLink="true">https://forum.qt.io/post/121771</guid><dc:creator><![CDATA[dianyu]]></dc:creator><pubDate>Sat, 24 Dec 2011 16:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to Qmake generates a MakeFile wich a not ending loop on Sat, 24 Dec 2011 12:25:39 GMT]]></title><description><![CDATA[<p dir="auto">qmake does not keep track of state so it soon ruins filenames or make instructions. I compiled using scons and msys make to get zxing compiled. qmake then broke zxing compile with Version.h in 2 different folders clashing and saying multiple definitions. I am going to try and write a plugin to correct this.</p>
]]></description><link>https://forum.qt.io/post/121746</link><guid isPermaLink="true">https://forum.qt.io/post/121746</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sat, 24 Dec 2011 12:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to Qmake generates a MakeFile wich a not ending loop on Thu, 22 Dec 2011 15:06:22 GMT]]></title><description><![CDATA[<p dir="auto">bq. <em>From "qmake docs":/doc/qt-4.8/qmake-project-files.html</em>"<br />
When the subdirs template is used, qmake generates a Makefile to examine each specified subdirectory, process <em>any project file it finds there</em>, and run the platform's make tool on the newly-created Makefile. The SUBDIRS variable is used to contain a list of all the subdirectories to be processed.</p>
<p dir="auto">So you have</p>
<p dir="auto">workspace/VisualApp/project.pro<br />
workspace/VisualApp/VisualApp.pro</p>
<p dir="auto"><a href="http://project.pro" target="_blank" rel="noopener noreferrer nofollow ugc">project.pro</a> includes workspace/VisualApp into the SUBDIRS variable and both .pro files are processed. Looks like the perfect endless recursion to me.</p>
]]></description><link>https://forum.qt.io/post/121576</link><guid isPermaLink="true">https://forum.qt.io/post/121576</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 22 Dec 2011 15:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to Qmake generates a MakeFile wich a not ending loop on Thu, 22 Dec 2011 08:56:25 GMT]]></title><description><![CDATA[<p dir="auto">make[10]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[11]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[11]: Nothing to be done for <code>first'. make[11]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[10]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[10]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[11]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[12]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[12]: Nothing to be done for <code>first'. make[12]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[11]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[11]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[12]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[13]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[13]: Nothing to be done for <code>first'. make[13]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[12]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[12]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[13]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[14]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[14]: Nothing to be done for <code>first'. make[14]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[13]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[13]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[14]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[15]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[15]: Nothing to be done for <code>first'. make[15]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[14]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[14]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[15]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[16]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[16]: Nothing to be done for <code>first'. make[16]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[15]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[15]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[16]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[17]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[17]: Nothing to be done for <code>first'. make[17]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[16]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[16]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[17]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[18]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[18]: Nothing to be done for <code>first'. make[18]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[17]: Leaving directory `/home/imanol/workspace/Noctiluca3D/LibMath'<br />
cd ../VisualApp/ &amp;&amp; make -f Makefile<br />
^Cmake[16]: *** wait: No hi ha cap procés fill.  Stop.<br />
make[16]: *** Waiting for unfinished jobs....<br />
make[16]: *** wait: No hi ha cap procés fill.  Stop.<br />
make[15]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[14]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[13]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[12]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[11]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[10]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[9]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[8]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[7]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[6]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[5]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[4]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[3]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[2]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make[1]: *** [sub----VisualApp-make_default-ordered] Interromput<br />
make: *** [sub----VisualApp-make_default-ordered] Interromput</p>
]]></description><link>https://forum.qt.io/post/121522</link><guid isPermaLink="true">https://forum.qt.io/post/121522</guid><dc:creator><![CDATA[dianyu]]></dc:creator><pubDate>Thu, 22 Dec 2011 08:56:25 GMT</pubDate></item><item><title><![CDATA[Reply to Qmake generates a MakeFile wich a not ending loop on Thu, 22 Dec 2011 08:56:12 GMT]]></title><description><![CDATA[<p dir="auto">imanol@imanol-MacBookPro:~/workspace/Noctiluca3D/VisualApp$ qmake -r <a href="http://project.pro" target="_blank" rel="noopener noreferrer nofollow ugc">project.pro</a><br />
Reading /home/imanol/workspace/Noctiluca3D/LibMath/LibMath.pro<br />
Reading /home/imanol/workspace/Noctiluca3D/VisualApp/VisualApp.pro<br />
imanol@imanol-MacBookPro:~/workspace/Noctiluca3D/VisualApp$ make<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[1]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[2]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[2]: Nothing to be done for <code>first'. make[2]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[1]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[1]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[2]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[3]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[3]: Nothing to be done for <code>first'. make[3]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[2]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[2]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[3]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[4]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[4]: Nothing to be done for <code>first'. make[4]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[3]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[3]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[4]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[5]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[5]: Nothing to be done for <code>first'. make[5]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[4]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[4]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[5]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[6]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[6]: Nothing to be done for <code>first'. make[6]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[5]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[5]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[6]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[7]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[7]: Nothing to be done for <code>first'. make[7]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[6]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[6]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[7]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[8]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[8]: Nothing to be done for <code>first'. make[8]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[7]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[7]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[8]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[9]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[9]: Nothing to be done for <code>first'. make[9]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[8]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[8]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile<br />
make[9]: Entering directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' make -f Makefile.Release make[10]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[10]: Nothing to be done for <code>first'. make[10]: Leaving directory </code>/home/imanol/workspace/Noctiluca3D/LibMath'<br />
make[9]: Leaving directory <code>/home/imanol/workspace/Noctiluca3D/LibMath' cd ../VisualApp/ &amp;&amp; make -f Makefile  make[9]: Entering directory </code>/home/imanol/workspace/Noctiluca3D/VisualApp'<br />
cd ../LibMath/ &amp;&amp; make -f Makefile</p>
]]></description><link>https://forum.qt.io/post/121521</link><guid isPermaLink="true">https://forum.qt.io/post/121521</guid><dc:creator><![CDATA[dianyu]]></dc:creator><pubDate>Thu, 22 Dec 2011 08:56:12 GMT</pubDate></item><item><title><![CDATA[Reply to Qmake generates a MakeFile wich a not ending loop on Thu, 22 Dec 2011 08:55:00 GMT]]></title><description><![CDATA[<p dir="auto">Ok, I have changed the .pro to a .pri. But the problem persists... What i mean by infinite loop is that never stop building... There is an output... Here i put an example, i stopped it using control+C.</p>
]]></description><link>https://forum.qt.io/post/121520</link><guid isPermaLink="true">https://forum.qt.io/post/121520</guid><dc:creator><![CDATA[dianyu]]></dc:creator><pubDate>Thu, 22 Dec 2011 08:55:00 GMT</pubDate></item><item><title><![CDATA[Reply to Qmake generates a MakeFile wich a not ending loop on Wed, 21 Dec 2011 09:40:07 GMT]]></title><description><![CDATA[<p dir="auto">At first glance, <a href="http://general.pro" target="_blank" rel="noopener noreferrer nofollow ugc">general.pro</a> should be general.pri (it's a project include and not a self-contained project file). Anyway, what do you mean by infinite loop? does it never stop building? does it just run forever without any output?</p>
]]></description><link>https://forum.qt.io/post/121348</link><guid isPermaLink="true">https://forum.qt.io/post/121348</guid><dc:creator><![CDATA[danimo]]></dc:creator><pubDate>Wed, 21 Dec 2011 09:40:07 GMT</pubDate></item></channel></rss>