<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Buenos días,<br>
estoy desarrollando una aplicación c++ de QGis en windows xp con QT,
y este es mi fichero .pro (es un poco raro pero es que he probado de
todo):<br>
<small><span style="color: rgb(128, 0, 128);">TEMPLATE</span> = app
</small>
<pre style="margin: 0px; text-indent: 0px;"><small><span style="color: rgb(128, 0, 128);">QT</span> += core \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>gui \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>sql \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>xml</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span> += "C:/Archivos de programa/Quantum GIS Tethys/apps/qgis/<span style="color: rgb(128, 128, 0);">include</span>" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>"C:/Archivos de programa/Quantum GIS Tethys/<span style="color: rgb(128, 128, 0);">include</span>" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>"C:/Archivos de programa/Quantum GIS Tethys/apps/gdal-16/<span style="color: rgb(128, 128, 0);">include</span>" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>"C:/Archivos de programa/Quantum GIS Tethys/apps/Python25/<span style="color: rgb(128, 128, 0);">include</span>" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>"C:/Archivos de programa/Quantum GIS Tethys/apps/grass/grass-6.4.0svn/<span style="color: rgb(128, 128, 0);">include</span>" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>"C:/Archivos de programa/Quantum GIS Tethys/apps/Python25/Lib/site-packages/win32/<span style="color: rgb(128, 128, 0);">include</span>" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>win32:<span style="color: rgb(128, 0, 128);">LIBS</span> += "C:/Archivos de programa/Quantum GIS Tethys/apps/qgis/lib/qgis_core.lib" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>"C:/Archivos de programa/Quantum GIS Tethys/apps/qgis/lib/qgis_gui.lib" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>-L "C:/Archivos de programa/Quantum GIS Tethys/bin" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>-L "C:/Archivos de programa/Quantum GIS Tethys/apps/gdal-16" \</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small>-L "C:/Archivos de programa/Quantum GIS Tethys/apps/msys"</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small><span style="color: rgb(128, 0, 128);">SOURCES</span> += main.cpp\</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small> mainwindow.cpp</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small><span style="color: rgb(128, 0, 128);">HEADERS</span> += mainwindow.h</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small><span style="color: rgb(128, 0, 128);">FORMS</span> += mainwindow.ui</small></pre>
<pre style="margin: 0px; text-indent: 0px;"><small><span style="color: rgb(128, 0, 128);">DEFINES</span> += GUI_EXPORT= CORE_EXPORT=</small></pre>
<br>
pero al compilar, tengo esta lista de errores:<br>
<small><span style="color: rgb(255, 0, 0);">debug/main.o: In
function `Z5qMainiPPc': </span></small>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:32:
undefined reference to
`QgsApplication::QgsApplication(int&, char**, bool)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:39:
undefined reference to
`QgsProviderRegistry::instance(QString)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:42:
undefined reference to
`QgsVectorLayer::QgsVectorLayer(QString, QString, QString,
bool)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:45:
undefined reference to `QgsVectorLayer::geometryType() const'
</span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:45:
undefined reference to
`QgsSingleSymbolRenderer::QgsSingleSymbolRenderer(QGis::GeometryType)'
</span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:47:
undefined reference to
`QgsVectorLayer::setRenderer(QgsRenderer*)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:48:
undefined reference to `QgsMapLayer::isValid()' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:57:
undefined reference to `QgsMapLayerRegistry::instance()' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:57:
undefined reference to
`QgsMapLayerRegistry::addMapLayer(QgsMapLayer*, bool)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:62:
undefined reference to `QgsMapCanvas::QgsMapCanvas(QWidget*,
char const*)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:63:
undefined reference to `QgsMapLayer::extent() const' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:63:
undefined reference to `QgsMapCanvas::setExtent(QgsRectangle
const&)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:64:
undefined reference to
`QgsMapCanvas::enableAntiAliasing(bool)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:66:
undefined reference to `QgsMapCanvas::freeze(bool)' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:68:
undefined reference to
`QgsMapCanvas::setLayerSet(QList<QgsMapCanvasLayer>&)'
</span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:70:
undefined reference to `QgsMapCanvas::refresh()' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:73:
undefined reference to `QgsApplication::~QgsApplication()' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">C:\rafa\QT\miApli-build-desktop/../miApli/main.cpp:73:
undefined reference to `QgsApplication::~QgsApplication()' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">c:/qt/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingwex.a(pformat.o):pformat.c:(.text+0x166d):
undefined reference to `_get_output_format' </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">collect2: ld returned 1 exit status </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">mingw32-make[1]: *** [debug\miApli.exe] Error
1 </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">mingw32-make: *** [debug] Error 2 </span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span
style="font-weight: 600; color: rgb(255, 0, 0);">The process
"C:/Qt/mingw/bin/mingw32-make.exe" exited with code %2.</span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">Error while building project miApli (target:
Desktop)</span></small></p>
<p style="margin: 0px; text-indent: 0px;"><small><span style="color:
rgb(255, 0, 0);">When executing build step 'Make'</span></small></p>
<br>
Evidentemente es un problema de rutas y/o dependencias, pero ...
¿puede alguien darme más pistas?. Si lo compilo en linux ubuntu
(obviamente cambiando el .pro), no tengo problemas y lo compila
bien.<br>
En windows no he utilizado el paquete de Osgeo, tengo QT instalado
por un lado y QGis por otro, en cualquier caso, no parece quejarse
de las librería QT, sino de las librerías QGis.<br>
<br>
Muchas gracias por la ayuda,<br>
Rafa<br>
</body>
</html>