Bug report #12524

Issue building QGIS 64bit on windows platform

Added by Paul Gathogo over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:20668

Description

Guys,
Am new here and am not sure if this is the correct place to post this problem, but please pardon me.

Am trying to build 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)

Message am getting when build is done in VC++:

========== Build: 218 succeeded, 9 failed, 0 up-to-date, 89 skipped ==========

These are the errors am getting :

7> Creating library D:/home/qgis_app/QGIS/build64/src/core/Release/qgis_core.lib and object D:/home/qgis_app/QGIS/build64/src/core/Release/qgis_core.exp
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@QextSerialEnumerator@CA?AVQString@PEAXPEAU_SP_DEVINFO_DATA@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@QextSerialEnumerator
@CA_NPEAUQextPortInfo@PEAXPEAU_SP_DEVINFO_DATA@_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@QextSerialEnumerator@AEAA_NAEBVQString@AEBU_GUID@_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@QextSerialEnumerator
@AEAA_NAEBVQString@AEBU_GUID@_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@QextSerialEnumerator@AEAA_NAEBVQString@AEBU_GUID@_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@QextSerialEnumerator
@AEAA_NAEBVQString@AEBU_GUID@_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

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

89>LINK : fatal error LNK1104: cannot open file 'python27.lib'

Particularly am concerned with this error Link error fatal error LNK1104: cannot open file 'python27.lib'. These are my python settings in CMake:

PYTHON_EXECUTABLE:FILEPATH=C:/Python27/python.exe
PYTHON_INCLUDE_PATH:FILEPATH=C:/Python27/include
PYTHON_LIBRARY:FILEPATH=C:/Python27/libs

BTW, had to tweak FindPythonLibary.cmake for Cmake to allow me change the PYTHON_INCLUDE_PATH value, it kept defaulting to C:\\OSGEO4~1\\apps\\Python27\\include !!

What could I be missing?

regards
pgathogo

History

#1 Updated by Paul Gathogo over 9 years ago

Guys,

Still struggling with the build, but at least am down to 2 fails:

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@QextSerialEnumerator@CA?AVQString@PEAXPEAU_SP_DEVINFO_DATA@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@QextSerialEnumerator
@CA_NPEAUQextPortInfo@PEAXPEAU_SP_DEVINFO_DATA@_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@QextSerialEnumerator@AEAA_NAEBVQString@AEBU_GUID@_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@QextSerialEnumerator
@AEAA_NAEBVQString@AEBU_GUID@_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@QextSerialEnumerator@AEAA_NAEBVQString@AEBU_GUID@_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@QextSerialEnumerator
@AEAA_NAEBVQString@AEBU_GUID@_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 am missing?

regards
pgathogo

#2 Updated by Giovanni Manghi over 9 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

Hi,

please post this question on the developer mailing list, the tracker is for reporting bugs and asking for features. Cheers!

Also available in: Atom PDF