[Qgis-developer] qgis app build error

Mohammed Rashad mohammedrashadkm at gmail.com
Fri Sep 24 08:44:57 EDT 2010


g++ -o mapdisplay main.o mainwindow.o qgsmaptooladdfeature.o
moc_mainwindow.o moc_qgsmaptooladdfeature.o qrc_resources.o -L/usr/lib
-L/usr/local/lib -lqgis_core -lproj -lqgis_gui -lpthread -lQtXml -lQtGui
-lQtNetwork -lQtCore

qgsmaptooladdfeature.o: In function `QgsMapToolAddFeature':

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:38: undefined reference to
`QgsMapToolCapture::QgsMapToolCapture(QgsMapCanvas*,
QgsMapToolCapture::CaptureMode)'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:38: undefined reference to
`QgsMapToolCapture::QgsMapToolCapture(QgsMapCanvas*,
QgsMapToolCapture::CaptureMode)'

qgsmaptooladdfeature.o: In function `~QgsMapToolAddFeature':

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:46: undefined reference to
`QgsMapToolCapture::~QgsMapToolCapture()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:46: undefined reference to
`QgsMapToolCapture::~QgsMapToolCapture()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:46: undefined reference to
`QgsMapToolCapture::~QgsMapToolCapture()'

qgsmaptooladdfeature.o: In function
`QgsMapToolAddFeature::canvasReleaseEvent(QMouseEvent*)':

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:96: undefined reference to
`QgsMapToolEdit::snapPointFromResults(QList<QgsSnappingResult> const&,
QPoint const&)'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:183: undefined reference to
`QgsAttributeDialog::QgsAttributeDialog(QgsVectorLayer*, QgsFeature*)'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:184: undefined reference to
`QgsAttributeDialog::exec()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:222: undefined reference to
`QgsMapToolCapture::addVertex(QPoint const&)'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:238: undefined reference to
`QgsMapToolCapture::startCapturing()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:247: undefined reference to
`QgsMapToolCapture::stopCapturing()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:254: undefined reference to
`QgsMapToolCapture::stopCapturing()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:328: undefined reference to
`QgsMapToolCapture::stopCapturing()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:422: undefined reference to
`QgsMapToolCapture::stopCapturing()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:437: undefined reference to
`QgsMapToolCapture::stopCapturing()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:473: undefined reference to
`QgsAttributeDialog::QgsAttributeDialog(QgsVectorLayer*, QgsFeature*)'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:474: undefined reference to
`QgsAttributeDialog::exec()'

/home/rashad/mapdisplay/qgsmaptooladdfeature.cpp:492: undefined reference to
`QgsMapToolCapture::stopCapturing()'

moc_qgsmaptooladdfeature.o:(.rodata._ZTV20QgsMapToolAddFeature[vtable for
QgsMapToolAddFeature]+0x38): undefined reference to
`QgsMapToolCapture::canvasMoveEvent(QMouseEvent*)'

moc_qgsmaptooladdfeature.o:(.rodata._ZTV20QgsMapToolAddFeature[vtable for
QgsMapToolAddFeature]+0x40): undefined reference to
`QgsMapToolCapture::canvasPressEvent(QMouseEvent*)'

moc_qgsmaptooladdfeature.o:(.rodata._ZTV20QgsMapToolAddFeature[vtable for
QgsMapToolAddFeature]+0x48): undefined reference to
`QgsMapToolCapture::keyPressEvent(QKeyEvent*)'

moc_qgsmaptooladdfeature.o:(.rodata._ZTV20QgsMapToolAddFeature[vtable for
QgsMapToolAddFeature]+0x50): undefined reference to
`QgsMapToolCapture::renderComplete()'

moc_qgsmaptooladdfeature.o:(.rodata._ZTV20QgsMapToolAddFeature[vtable for
QgsMapToolAddFeature]+0x60): undefined reference to
`QgsMapToolCapture::deactivate()'

moc_qgsmaptooladdfeature.o:(.rodata._ZTI20QgsMapToolAddFeature[typeinfo for
QgsMapToolAddFeature]+0x8): undefined reference to `typeinfo for
QgsMapToolCapture'

collect2: ld returned 1 exit status

make: Leaving directory `/home/rashad/mapdisplay'

make: *** [mapdisplay] Error 1

Exited with code 2.

Error while building project mapdisplay

When executing build step 'Make'


Any help will be greatly appreciated

-- 
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100924/da974db2/attachment-0001.html


More information about the Qgis-developer mailing list