compilation error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compilation error

Rhys A.D. Stewart
Hi all,

so when trying to compile the advanced-editing_branch the following occurs:
------------------------------------------------------------------------------------------------------------------------------

Linking CXX shared library libqgis_gui.dll
Creating library file: libqgis_gui.dll.a
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x196):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::QgsSnapper(QgsMapRender*)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x280):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::QgsSnapper(QgsMapRender*)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x320):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::~QgsSnapper()'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x34e):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::~QgsSnapper()'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x3e8):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::QgsSnapper(QgsMapRender*)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x5f8):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::setSnapMode(QgsSnapper::SNAP_MODE)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x61a):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::setSnapMode(QgsSnapper::SNAP_MODE)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x74e):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::setLayersToSnap(QList<QgsVectorLayer*>
 const&)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x763):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::setTolerances(QList<double> const&)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x778):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::setSnapToList(QList<QgsSnapper::SNAP_T
O> const&)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x794):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::snapPoint(QPoint const&, QList<QgsSnap
pingResult>&)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x9b5):qgsmapcanvassnapper
.cpp: undefined reference to `QgsSnapper::setSnapMode(QgsSnapper::SNAP_MODE)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x131e):qgsmapcanvassnappe
r.cpp: undefined reference to `QgsSnapper::setLayersToSnap(QList<QgsVectorLayer*
> const&)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x1333):qgsmapcanvassnappe
r.cpp: undefined reference to `QgsSnapper::setTolerances(QList<double> const&)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x134b):qgsmapcanvassnappe
r.cpp: undefined reference to `QgsSnapper::setSnapToList(QList<QgsSnapper::SNAP_
TO> const&)'
CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x1382):qgsmapcanvassnappe
r.cpp: undefined reference to `QgsSnapper::snapPoint(QPoint const&, QList<QgsSna
ppingResult>&)'
collect2: ld returned 1 exit status
make[2]: *** [src/gui/libqgis_gui.dll] Error 1
make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2
make: *** [all] Error 2
sh-2.04$
-------------------------------------------------------------------------------------------------------------------------------

using win2k


Rhys

_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: compilation error

Hugentobler  Marco
Hi Rhys,

I didn't compile this branch on windows yet. Are you using the mingw compiler?

Try to add CORE_EXPORT before the definition of QgsSnapper in
src/core/qgssnapper.h, l. 54:

class CORE_EXPORT QgsSnapper
{
.....

That may be the reason why the linker cannot find the symbols of QgsSnapper on
win32.
If that does not help, I could try to compile on win, but I'm quite busy the
next few days.

Also, when you are using the advanced editing branch, keep in mind that it is
still work in progress.

Regards,
Marco

On Monday 09 July 2007 21:04:13 Rhys Stewart wrote:

> Hi all,
>
> so when trying to compile the advanced-editing_branch the following occurs:
> ---------------------------------------------------------------------------
>---------------------------------------------------
>
> Linking CXX shared library libqgis_gui.dll
> Creating library file: libqgis_gui.dll.a
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x196):qgsmapcanvassn
>apper .cpp: undefined reference to `QgsSnapper::QgsSnapper(QgsMapRender*)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x280):qgsmapcanvassn
>apper .cpp: undefined reference to `QgsSnapper::QgsSnapper(QgsMapRender*)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x320):qgsmapcanvassn
>apper .cpp: undefined reference to `QgsSnapper::~QgsSnapper()'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x34e):qgsmapcanvassn
>apper .cpp: undefined reference to `QgsSnapper::~QgsSnapper()'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x3e8):qgsmapcanvassn
>apper .cpp: undefined reference to `QgsSnapper::QgsSnapper(QgsMapRender*)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x5f8):qgsmapcanvassn
>apper .cpp: undefined reference to
> `QgsSnapper::setSnapMode(QgsSnapper::SNAP_MODE)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x61a):qgsmapcanvassn
>apper .cpp: undefined reference to
> `QgsSnapper::setSnapMode(QgsSnapper::SNAP_MODE)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x74e):qgsmapcanvassn
>apper .cpp: undefined reference to
> `QgsSnapper::setLayersToSnap(QList<QgsVectorLayer*>
>  const&)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x763):qgsmapcanvassn
>apper .cpp: undefined reference to `QgsSnapper::setTolerances(QList<double>
> const&)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x778):qgsmapcanvassn
>apper .cpp: undefined reference to
> `QgsSnapper::setSnapToList(QList<QgsSnapper::SNAP_T
> O> const&)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x794):qgsmapcanvassn
>apper .cpp: undefined reference to `QgsSnapper::snapPoint(QPoint const&,
> QList<QgsSnap
> pingResult>&)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x9b5):qgsmapcanvassn
>apper .cpp: undefined reference to
> `QgsSnapper::setSnapMode(QgsSnapper::SNAP_MODE)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x131e):qgsmapcanvass
>nappe r.cpp: undefined reference to
> `QgsSnapper::setLayersToSnap(QList<QgsVectorLayer*
>
> > const&)'
>
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x1333):qgsmapcanvass
>nappe r.cpp: undefined reference to `QgsSnapper::setTolerances(QList<double>
> const&)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x134b):qgsmapcanvass
>nappe r.cpp: undefined reference to
> `QgsSnapper::setSnapToList(QList<QgsSnapper::SNAP_
> TO> const&)'
> CMakeFiles/qgis_gui.dir/qgsmapcanvassnapper.obj(.text+0x1382):qgsmapcanvass
>nappe r.cpp: undefined reference to `QgsSnapper::snapPoint(QPoint const&,
> QList<QgsSna
> ppingResult>&)'
> collect2: ld returned 1 exit status
> make[2]: *** [src/gui/libqgis_gui.dll] Error 1
> make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2
> make: *** [all] Error 2
> sh-2.04$
> ---------------------------------------------------------------------------
>----------------------------------------------------
>
> using win2k
>
>
> Rhys



--
Dr. Marco Hugentobler
Institute of Cartography
ETH Zurich
Technical Advisor QGIS Project Steering Committee
[hidden email]
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user