[Qgis-developer] Python build errors - MSVC

Martin Dobias wonder.sk at gmail.com
Sun Jun 1 12:14:59 EDT 2008


Hi Tim,

this was I think caused by missing import of qgis_core library, it's
fixed in trunk.

Martin

On Thu, May 29, 2008 at 3:06 AM, Tim Sutton <tim at linfiniti.com> wrote:
> Hi Martin / Jürgen
>
> Any hints on whats causing these python errors on MSVC? I know some of the
> errors relate to some of my code, but I poked around and cant figure out
> why...
>
> Thanks
>
> Tim
>
> ------ Build started: Project: qgispython, Configuration: RelWithDebInfo
> Win32 ------
> Linking...
>   Creating library RelWithDebInfo\qgispython.lib and object
> RelWithDebInfo\qgispython.exp
> qgspythonutilsimpl.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static void __cdecl QgsLogger::debug(class
> QString const &,int,char const *,char const *,int)"
> (__imp_?debug at QgsLogger@@SAXABVQString@@HPBD1H at Z) referenced in function
> "public: class QString __thiscall QgsPythonUtilsImpl::getTypeAsString(struct
> _object *)"
> (?getTypeAsString at QgsPythonUtilsImpl@@QAE?AVQString@@PAU_object@@@Z)
> qgspythonutilsimpl.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class QString const __cdecl
> QgsApplication::pkgDataPath(void)"
> (__imp_?pkgDataPath at QgsApplication@@SA?BVQString@@XZ) referenced in function
> "public: class QString __thiscall QgsPythonUtilsImpl::pythonPath(void)"
> (?pythonPath at QgsPythonUtilsImpl@@QAE?AVQString@@XZ)
> qgspythonutilsimpl.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class QString const __cdecl
> QgsApplication::qgisSettingsDirPath(void)"
> (__imp_?qgisSettingsDirPath at QgsApplication@@SA?BVQString@@XZ) referenced in
> function "public: class QString __thiscall
> QgsPythonUtilsImpl::homePluginsPath(void)"
> (?homePluginsPath at QgsPythonUtilsImpl@@QAE?AVQString@@XZ)
> qgspythonutilsimpl.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class QgsMessageOutput * __cdecl
> QgsMessageOutput::createMessageOutput(void)"
> (__imp_?createMessageOutput at QgsMessageOutput@@SAPAV1 at XZ) referenced in
> function "public: bool __thiscall QgsPythonUtilsImpl::runString(class
> QString const &,class QString)"
> (?runString at QgsPythonUtilsImpl@@QAE_NABVQString@@V2@@Z)
> RelWithDebInfo\qgispython.dll : fatal error LNK1120: 4 unresolved externals
> Build log was saved at
> "file://c:\dev\cpp\qgis\build\src\python\qgispython.dir\RelWithDebInfo\BuildLog.htm"
> qgispython - 5 error(s), 0 warning(s)
> ------ Build started: Project: python, Configuration: RelWithDebInfo Win32
> ------
> Generating gui/gui.pyd
> Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
> Copyright (C) Microsoft Corporation.  All rights reserved.
>  link /NOLOGO /DLL /SUBSYSTEM:WINDOWS /INCREMENTAL:NO /OUT:gui.pyd
> @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm50D.tmp
>   Creating library gui.lib and object gui.exp
> sipguiQgsMapCanvas.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class QgsMapToPixel const * __thiscall
> QgsMapCanvas::getCoordinateTransform(void)"
> (__imp_?getCoordinateTransform at QgsMapCanvas@@QAEPBVQgsMapToPixel@@XZ)
> referenced in function _meth_QgsMapCanvas_getCoordinateTransform
> gui.pyd : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\bin\link.EXE"' : return code '0x460'
> Stop.
> Project : error PRJ0019: A tool returned an error code from "Generating
> gui/gui.pyd"
> Build log was saved at
> "file://c:\dev\cpp\qgis\build\python\python.dir\RelWithDebInfo\BuildLog.htm"
> python - 4 error(s), 0 warning(s)
> ------ Build started: Project: ALL_BUILD, Configuration: RelWithDebInfo
> Win32 ------
> "Build all projects"
> Build log was saved at
> "file://c:\dev\cpp\qgis\build\ALL_BUILD.dir\RelWithDebInfo\BuildLog.htm"
> ALL_BUILD - 0 error(s), 0 warning(s)
> ========== Build: 2 succeeded, 2 failed, 24 up-to-date, 0 skipped ==========
>
> Tim Sutton
> QGIS Project Steering Committee Member - Release Manager
> Visit http://qgis.org for a great open source GIS
> openModeller Desktop Developer
> Visit http://openModeller.sf.net for a great open source ecological niche
> modelling tool
> Home Page: http://tim.linfiniti.com
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>


More information about the Qgis-developer mailing list