[Qgis-user] Issue building QGIS 64bit on windows platform

Paul Gathogo pgathogo at gmail.com
Tue Apr 7 21:23:59 PDT 2015


Guys,

Am building QGIS 64bit on windows using the instructions provided here
https://github.com/qgis/QGIS/blob/master/INSTALL, but am getting a couple
of errors.

My development environment:

   - Lenovo Thinkpad L540 - 12GB RAM
   - Windows 7 Ultimate SP1 - 64bit
   - Visual Studio Express 2010
   - MS SDK 7 - 64bit
   - Python2.7 - 64bit
   - CMake 3.0.2
   - Cygwin64
   - OSGeo4W64
   - QGIS 2.9.0 # this what I got when I did CMake (configure/generate)

Errors am getting when the build is done in VC++:

313>Time Elapsed 00:00:00.90
314>------ Skipped Build: Project: PACKAGE, Configuration: Release x64
------
314>Project not selected to build for this solution configuration
315>------ Skipped Build: Project: INSTALL, Configuration: Release x64
------
315>Project not selected to build for this solution configuration
========== Build: 223 succeeded, 2 failed, 0 up-to-date, 89 skipped
==========

from VC++ output window I see the following nasty ones

12>InitializeBuildStatus:
12> Creating
"x64\Release\MetaSearch-62-stageinstall\MetaSearch-62-stageinstall.unsuccessfulbuild"
because "AlwaysCreate" was specified.
7>qextserialenumerator.obj : error LNK2019: unresolved external symbol
__imp_SetupDiGetDeviceRegistryPropertyA referenced in function "private:
static class QString __cdecl QextSerialEnumerator::getDeviceProperty(void
*,struct _SP_DEVINFO_DATA *,unsigned long)"
(?getDeviceProperty at QextSerialEnumerator@CA?AVQString
@PEAXPEAU_SP_DEVINFO_DATA at K@Z)
7>qextserialenumerator.obj : error LNK2019: unresolved external symbol
__imp_SetupDiOpenDevRegKey referenced in function "private: static bool
__cdecl QextSerialEnumerator::getDeviceDetailsWin(struct QextPortInfo
*,void *,struct _SP_DEVINFO_DATA *,unsigned __int64)"
(?getDeviceDetailsWin at QextSerialEnumerator@CA_NPEAUQextPortInfo@
PEAXPEAU_SP_DEVINFO_DATA at _K@Z)
7>qextserialenumerator.obj : error LNK2019: unresolved external symbol
__imp_SetupDiDestroyDeviceInfoList referenced in function "private: bool
__cdecl QextSerialEnumerator::matchAndDispatchChangedDevice(class QString
const &,struct _GUID const &,unsigned __int64)"
(?matchAndDispatchChangedDevice at QextSerialEnumerator@AEAA_NAEBVQString
@AEBU_GUID at _K@Z)
7>qextserialenumerator.obj : error LNK2019: unresolved external symbol
__imp_SetupDiGetDeviceInstanceIdA referenced in function "private: bool
__cdecl QextSerialEnumerator::matchAndDispatchChangedDevice(class QString
const &,struct _GUID const &,unsigned __int64)"
(?matchAndDispatchChangedDevice at QextSerialEnumerator@AEAA_NAEBVQString@
AEBU_GUID at _K@Z)
7>qextserialenumerator.obj : error LNK2019: unresolved external symbol
__imp_SetupDiEnumDeviceInfo referenced in function "private: bool __cdecl
QextSerialEnumerator::matchAndDispatchChangedDevice(class QString const
&,struct _GUID const &,unsigned __int64)"
(?matchAndDispatchChangedDevice at QextSerialEnumerator@AEAA_NAEBVQString
@AEBU_GUID at _K@Z)
7>qextserialenumerator.obj : error LNK2019: unresolved external symbol
__imp_SetupDiGetClassDevsA referenced in function "private: bool __cdecl
QextSerialEnumerator::matchAndDispatchChangedDevice(class QString const
&,struct _GUID const &,unsigned __int64)"
(?matchAndDispatchChangedDevice at QextSerialEnumerator@AEAA_NAEBVQString@
AEBU_GUID at _K@Z)
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlFreeDoc referenced in function splite_free_xml_schema_cache_item
7>spatialite.lib(virtualxpath.obj) : error LNK2001: unresolved external
symbol xmlFreeDoc
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSchemaFree referenced in function splite_free_xml_schema_cache_item
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSchemaFreeParserCtxt referenced in function
splite_free_xml_schema_cache_item
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlDocGetRootElement referenced in function sniff_payload
7>spatialite.lib(virtualxpath.obj) : error LNK2001: unresolved external
symbol xmlDocGetRootElement
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
crc32 referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_relations.obj) : error LNK2001: unresolved external
symbol crc32
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
compress referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
compressBound referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSchemaFreeValidCtxt referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSchemaValidateDoc referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSchemaNewValidCtxt referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlReadMemory referenced in function gaiaXmlToBlob
7>spatialite.lib(virtualxpath.obj) : error LNK2001: unresolved external
symbol xmlReadMemory
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSchemaParse referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSchemaNewDocParserCtxt referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlReadFile referenced in function gaiaXmlToBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSetGenericErrorFunc referenced in function gaiaXmlToBlob
7>spatialite.lib(virtualxpath.obj) : error LNK2001: unresolved external
symbol xmlSetGenericErrorFunc
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
uncompress referenced in function gaiaXmlTextFromBlob
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlDocDumpFormatMemory referenced in function gaiaXmlLoad
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlXPathFreeObject referenced in function gaiaXmlGetInternalSchemaURI
7>spatialite.lib(virtualxpath.obj) : error LNK2001: unresolved external
symbol xmlXPathFreeObject
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlXPathFreeContext referenced in function gaiaXmlGetInternalSchemaURI
7>spatialite.lib(virtualxpath.obj) : error LNK2001: unresolved external
symbol xmlXPathFreeContext
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlFreeNode referenced in function setIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlReplaceNode referenced in function setIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlAddChild referenced in function setIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlNewText referenced in function setIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlNewNode referenced in function setIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
__imp_xmlFree referenced in function gaiaXmlBlobSetFileId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSetNs referenced in function addIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlNewNs referenced in function addIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlAddNextSibling referenced in function addIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlAddPrevSibling referenced in function addIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSearchNs referenced in function addIsoId
7>spatialite.lib(gg_xml.obj) : error LNK2019: unresolved external symbol
xmlSearchNsByHref referenced in function addIsoId
7>spatialite.lib(virtualxpath.obj) : error LNK2019: unresolved external
symbol xmlXPathFreeCompExpr referenced in function
gaiaIsValidXPathExpression
7>spatialite.lib(virtualxpath.obj) : error LNK2019: unresolved external
symbol xmlXPathCompile referenced in function gaiaIsValidXPathExpression
7>spatialite.lib(virtualxpath.obj) : error LNK2019: unresolved external
symbol xmlXPathEvalExpression referenced in function vxpath_eval_expr
7>spatialite.lib(virtualxpath.obj) : error LNK2019: unresolved external
symbol xmlXPathRegisterNs referenced in function vxpath_eval_expr
7>spatialite.lib(virtualxpath.obj) : error LNK2019: unresolved external
symbol xmlXPathNewContext referenced in function vxpath_eval_expr
7>spatialite.lib(virtualXL.obj) : error LNK2019: unresolved external symbol
freexl_get_cell_value referenced in function vXL_create
7>spatialite.lib(virtualXL.obj) : error LNK2019: unresolved external symbol
freexl_worksheet_dimensions referenced in function vXL_create
7>spatialite.lib(virtualXL.obj) : error LNK2019: unresolved external symbol
freexl_select_active_worksheet referenced in function vXL_create
7>spatialite.lib(virtualXL.obj) : error LNK2019: unresolved external symbol
freexl_get_info referenced in function vXL_create
7>spatialite.lib(virtualXL.obj) : error LNK2019: unresolved external symbol
freexl_close referenced in function vXL_create
7>spatialite.lib(virtualXL.obj) : error LNK2019: unresolved external symbol
freexl_open referenced in function vXL_create
7>spatialite.lib(gg_utf8.obj) : error LNK2019: unresolved external symbol
locale_charset referenced in function gaiaGetLocaleCharset
7>spatialite.lib(gg_utf8.obj) : error LNK2019: unresolved external symbol
__imp_libiconv_close referenced in function gaiaConvertCharset
7>spatialite.lib(gg_shape.obj) : error LNK2001: unresolved external symbol
__imp_libiconv_close
7>spatialite.lib(gg_utf8.obj) : error LNK2019: unresolved external symbol
__imp_libiconv referenced in function gaiaConvertCharset
7>spatialite.lib(gg_shape.obj) : error LNK2001: unresolved external symbol
__imp_libiconv
7>spatialite.lib(gg_utf8.obj) : error LNK2019: unresolved external symbol
__imp_libiconv_open referenced in function gaiaConvertCharset
7>spatialite.lib(gg_shape.obj) : error LNK2001: unresolved external symbol
__imp_libiconv_open

*7>D:\home\qgis_app\QGIS\build64\output\bin\Release\qgis_core.dll : fatal
error LNK1120: 52 unresolved externals*

*81>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error
MSB6006: "cmd.exe" exited with code -1073741515.*

81>
81>Build FAILED.
81>
81>Time Elapsed 00:00:00.30

Any ideas what I might be missing?

regards
pgathogo

-- 
*Society is produced by our wants, and government by our wickedness*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150408/79eb258a/attachment.html>


More information about the Qgis-user mailing list