[Qgis-developer] make C++ plugin in windows
motta.luiz at gmail.com
motta.luiz at gmail.com
Fri Dec 18 14:45:49 EST 2009
Dear All,
I am starting make C++ plugin.
I use the QtCreator with mingw compiler, and the example is the
poinconverter (qgis-1.3.0_coding-compilation_guide_en.pdf).
The QtCreator when make building show erros about linking.
the PRO file is:
#base directory of the qgis installation
QGIS_DIR = "C:/Arquivos de programas/Quantum GIS Mimas"
TEMPLATE = lib
CONFIG = qt
QT += xml qt3support
DEPENDPATH += $$QGIS_DIR/bin
win32:LIBS += $$QGIS_DIR/lib/qgis_core.lib $$QGIS_DIR/lib/qgis_gui.lib
INCLUDEPATH += $$QGIS_DIR/include $$QGIS_DIR/include_gdal
SOURCES = qgspointconverterplugin.cpp
HEADERS = qgspointconverterplugin.h
DEFINES += GUI_EXPORT= CORE_EXPORT=
The error menssage is:
Running build steps for project poinconverter...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/2009.03/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `C:/_Develop/qgis_cpp/poinconverter'
c:\Qt\2009.03\qt\bin\qmake.exe -spec
..\..\..\Qt\2009.03\qt\mkspecs\win32-g++ -win32 -o Makefile
poinconverter.pro
mingw32-make: Leaving directory `C:/_Develop/qgis_cpp/poinconverter'
mingw32-make: Entering directory `C:/_Develop/qgis_cpp/poinconverter'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -Wl,-s -o poinconverter.lib
qgspointconverterplugin.o moc_qgspointconverterplugin.o
-L"c:\Qt\2009.03\qt\lib" "C:/Arquivos de programas/Quantum GIS
Mimas/lib/qgis_core.lib" "C:/Arquivos de programas/Quantum GIS
Mimas/lib/qgis_gui.lib" -lQt3Support4 -lQtXml4 -lQtGui4 -lQtCore4
mingw32-make: Leaving directory `C:/_Develop/qgis_cpp/poinconverter'
qgspointconverterplugin.o:qgspointconverterplugin.cpp:(.text+0x11c3):
undefined reference to `QgsGeometry::asPoint()'
qgspointconverterplugin.o:qgspointconverterplugin.cpp:(.text+0x142d):
undefined reference to `QgsGeometry::asPolyline()'
....continue for all call methods ...
Some one can help me.
Thank's
Luiz
More information about the Qgis-developer
mailing list