[Qgis-developer] Building and debugging QGIS on Windows x64
Casper Børgesen (CABO)
CABO at NIRAS.DK
Mon Oct 17 07:00:48 PDT 2016
Hi
I'm trying to build QGIS on Windows 7 (x64) using the the steps provided in [1] with small adjustments from [2]. My objective is to be able to build a QGIS instance so that I can debug and understand the calls made to QGIS from my python plugins. In other words, I am not trying to build my own installer with a custom QGIS build - just debugging the standard QGIS application.
I have installed on my plain and clean Windows 7 x64 machine:
VS2010 C++ Express
Microsoft SDK (from ISO file)
Cygwin64: Bison, Flex
Osgeo4W64: A lot of packages
CMAKE 3.0.2 x86
I am not sure if I need to build everything and if I need to build either "debug" or "RelWithDebInfo" in my case when I just need to debug calls made from Python to the QGIS application?
Currently I'm trying to just build "qgis" (1 of 334 projects listed in my Solution Explorer) using the "debug" setup. Do note that my knowledge in C++ is very limited.
I'm currently stuck in Visual Studio 2010 C++ Express with a lot of linking errors apparently related to spatialite and I would really like a hint or two on how to get by this obstacle:
Error 6610 error LNK2019: unresolved external symbol freexl_version referenced in function fnct_freexl_version C:\QGIS\build\src\core\spatialite.lib(spatialite.obj)
Error 6611 error LNK2019: unresolved external symbol lwcollection_construct referenced in function toLWGeom C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6612 error LNK2019: unresolved external symbol lwpoint_construct referenced in function toLWGeom C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6613 error LNK2019: unresolved external symbol lwpoly_construct referenced in function toLWGeom C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6614 error LNK2019: unresolved external symbol lwalloc referenced in function toLWGeom C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6615 error LNK2019: unresolved external symbol lwline_construct referenced in function toLWGeom C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6616 error LNK2019: unresolved external symbol ptarray_set_point4d referenced in function toLWGeom C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6617 error LNK2019: unresolved external symbol ptarray_construct referenced in function toLWGeom C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6618 error LNK2019: unresolved external symbol getPoint4d_p referenced in function fromLWGeomIncremental C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6619 error LNK2019: unresolved external symbol lwgeom_is_empty referenced in function fromLWGeomIncremental C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6620 error LNK2019: unresolved external symbol lwgeom_free referenced in function gaiaMakeValid C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6621 error LNK2019: unresolved external symbol lwgeom_make_valid referenced in function gaiaMakeValid C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6622 error LNK2019: unresolved external symbol lwgeom_segmentize2d referenced in function gaiaSegmentize C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6623 error LNK2019: unresolved external symbol lwgeom_split referenced in function gaiaSplit C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6624 error LNK2019: unresolved external symbol azimuth_pt_pt referenced in function gaiaAzimuth C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6625 error LNK2019: unresolved external symbol lwpoint_free referenced in function gaiaEllipsoidAzimuth C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6626 error LNK2019: unresolved external symbol lwgeom_azumith_spheroid referenced in function gaiaEllipsoidAzimuth C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6627 error LNK2019: unresolved external symbol spheroid_init referenced in function gaiaEllipsoidAzimuth C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6628 error LNK2019: unresolved external symbol lwpoint_make2d referenced in function gaiaEllipsoidAzimuth C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6629 error LNK2019: unresolved external symbol lwpoint_get_y referenced in function gaiaProjectedPoint C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6630 error LNK2019: unresolved external symbol lwpoint_get_x referenced in function gaiaProjectedPoint C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6631 error LNK2019: unresolved external symbol lwgeom_project_spheroid referenced in function gaiaProjectedPoint C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6632 error LNK2019: unresolved external symbol lwgeom_area_sphere referenced in function gaiaGeodesicArea C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6633 error LNK2019: unresolved external symbol lwgeom_area_spheroid referenced in function gaiaGeodesicArea C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6634 error LNK2019: unresolved external symbol lwgeom_calculate_gbox_geodetic referenced in function gaiaGeodesicArea C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6635 error LNK2019: unresolved external symbol lwfree referenced in function gaiaGeoHash C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6636 error LNK2019: unresolved external symbol lwgeom_geohash referenced in function gaiaGeoHash C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6637 error LNK2019: unresolved external symbol lwgeom_to_x3d3 referenced in function gaiaAsX3D C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6638 error LNK2019: unresolved external symbol lwgeom_mindistance3d referenced in function gaia3DDistance C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6639 error LNK2019: unresolved external symbol lwgeom_maxdistance2d referenced in function gaiaMaxDistance C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6640 error LNK2019: unresolved external symbol lwgeom_maxdistance3d referenced in function gaia3DMaxDistance C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6641 error LNK2019: unresolved external symbol lwgeom_node referenced in function gaiaNodeLines C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6642 error LNK2019: unresolved external symbol lw_vasprintf referenced in function lwgaia_noticereporter C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6643 error LNK2019: unresolved external symbol lwgeom_set_handlers referenced in function splite_lwgeom_init C:\QGIS\build\src\core\spatialite.lib(gg_lwgeom.obj)
Error 6644 error LNK2019: unresolved external symbol xmlInitParser referenced in function spatialite_initialize C:\QGIS\build\src\core\spatialite.lib(alloc_cache.obj)
Error 6645 error LNK2019: unresolved external symbol xmlCleanupParser referenced in function spatialite_shutdown C:\QGIS\build\src\core\spatialite.lib(alloc_cache.obj)
Error 6646 error LNK2019: unresolved external symbol xmlFreeDoc referenced in function splite_free_xml_schema_cache_item C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6647 error LNK2001: unresolved external symbol xmlFreeDoc C:\QGIS\build\src\core\spatialite.lib(wfs_in.obj)
Error 6648 error LNK2001: unresolved external symbol xmlFreeDoc C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6649 error LNK2019: unresolved external symbol xmlSchemaFree referenced in function splite_free_xml_schema_cache_item C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6650 error LNK2019: unresolved external symbol xmlSchemaFreeParserCtxt referenced in function splite_free_xml_schema_cache_item C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6651 error LNK2019: unresolved external symbol xmlDocGetRootElement referenced in function sniff_payload C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6652 error LNK2001: unresolved external symbol xmlDocGetRootElement C:\QGIS\build\src\core\spatialite.lib(wfs_in.obj)
Error 6653 error LNK2001: unresolved external symbol xmlDocGetRootElement C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6654 error LNK2019: unresolved external symbol crc32 referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6655 error LNK2001: unresolved external symbol crc32 C:\QGIS\build\src\core\spatialite.lib(gg_relations.obj)
Error 6656 error LNK2019: unresolved external symbol compress referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6657 error LNK2019: unresolved external symbol compressBound referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6658 error LNK2019: unresolved external symbol xmlSchemaFreeValidCtxt referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6659 error LNK2019: unresolved external symbol xmlSchemaValidateDoc referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6660 error LNK2019: unresolved external symbol xmlSchemaNewValidCtxt referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6661 error LNK2019: unresolved external symbol xmlReadMemory referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6662 error LNK2001: unresolved external symbol xmlReadMemory C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6663 error LNK2019: unresolved external symbol xmlSchemaParse referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6664 error LNK2019: unresolved external symbol xmlSchemaNewDocParserCtxt referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6665 error LNK2019: unresolved external symbol xmlReadFile referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6666 error LNK2001: unresolved external symbol xmlReadFile C:\QGIS\build\src\core\spatialite.lib(wfs_in.obj)
Error 6667 error LNK2019: unresolved external symbol xmlSetGenericErrorFunc referenced in function gaiaXmlToBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6668 error LNK2001: unresolved external symbol xmlSetGenericErrorFunc C:\QGIS\build\src\core\spatialite.lib(wfs_in.obj)
Error 6669 error LNK2001: unresolved external symbol xmlSetGenericErrorFunc C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6670 error LNK2019: unresolved external symbol uncompress referenced in function gaiaXmlTextFromBlob C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6671 error LNK2019: unresolved external symbol xmlDocDumpFormatMemory referenced in function gaiaXmlLoad C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6672 error LNK2019: unresolved external symbol xmlXPathFreeObject referenced in function gaiaXmlGetInternalSchemaURI C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6673 error LNK2001: unresolved external symbol xmlXPathFreeObject C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6674 error LNK2019: unresolved external symbol xmlXPathFreeContext referenced in function gaiaXmlGetInternalSchemaURI C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6675 error LNK2001: unresolved external symbol xmlXPathFreeContext C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6676 error LNK2019: unresolved external symbol xmlFreeNode referenced in function setIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6677 error LNK2019: unresolved external symbol xmlReplaceNode referenced in function setIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6678 error LNK2019: unresolved external symbol xmlAddChild referenced in function setIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6679 error LNK2019: unresolved external symbol xmlNewText referenced in function setIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6680 error LNK2019: unresolved external symbol xmlNewNode referenced in function setIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6681 error LNK2019: unresolved external symbol __imp_xmlFree referenced in function gaiaXmlBlobSetFileId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6682 error LNK2019: unresolved external symbol xmlSetNs referenced in function addIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6683 error LNK2019: unresolved external symbol xmlNewNs referenced in function addIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6684 error LNK2019: unresolved external symbol xmlAddNextSibling referenced in function addIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6685 error LNK2019: unresolved external symbol xmlAddPrevSibling referenced in function addIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6686 error LNK2019: unresolved external symbol xmlSearchNs referenced in function addIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6687 error LNK2019: unresolved external symbol xmlSearchNsByHref referenced in function addIsoId C:\QGIS\build\src\core\spatialite.lib(gg_xml.obj)
Error 6688 error LNK2019: unresolved external symbol freexl_close referenced in function load_XL C:\QGIS\build\src\core\spatialite.lib(shapefiles.obj)
Error 6689 error LNK2001: unresolved external symbol freexl_close C:\QGIS\build\src\core\spatialite.lib(virtualXL.obj)
Error 6690 error LNK2019: unresolved external symbol freexl_get_cell_value referenced in function load_XL C:\QGIS\build\src\core\spatialite.lib(shapefiles.obj)
Error 6691 error LNK2001: unresolved external symbol freexl_get_cell_value C:\QGIS\build\src\core\spatialite.lib(virtualXL.obj)
Error 6692 error LNK2019: unresolved external symbol freexl_worksheet_dimensions referenced in function load_XL C:\QGIS\build\src\core\spatialite.lib(shapefiles.obj)
Error 6693 error LNK2001: unresolved external symbol freexl_worksheet_dimensions C:\QGIS\build\src\core\spatialite.lib(virtualXL.obj)
Error 6694 error LNK2019: unresolved external symbol freexl_select_active_worksheet referenced in function load_XL C:\QGIS\build\src\core\spatialite.lib(shapefiles.obj)
Error 6695 error LNK2001: unresolved external symbol freexl_select_active_worksheet C:\QGIS\build\src\core\spatialite.lib(virtualXL.obj)
Error 6696 error LNK2019: unresolved external symbol freexl_get_info referenced in function load_XL C:\QGIS\build\src\core\spatialite.lib(shapefiles.obj)
Error 6697 error LNK2001: unresolved external symbol freexl_get_info C:\QGIS\build\src\core\spatialite.lib(virtualXL.obj)
Error 6698 error LNK2019: unresolved external symbol freexl_open referenced in function load_XL C:\QGIS\build\src\core\spatialite.lib(shapefiles.obj)
Error 6699 error LNK2001: unresolved external symbol freexl_open C:\QGIS\build\src\core\spatialite.lib(virtualXL.obj)
Error 6700 error LNK2019: unresolved external symbol xmlNanoHTTPCleanup referenced in function reset_wfs_http_connection C:\QGIS\build\src\core\spatialite.lib(wfs_in.obj)
Error 6701 error LNK2019: unresolved external symbol xmlXPathFreeCompExpr referenced in function gaiaIsValidXPathExpression C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6702 error LNK2019: unresolved external symbol xmlXPathCompile referenced in function gaiaIsValidXPathExpression C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6703 error LNK2019: unresolved external symbol xmlXPathEvalExpression referenced in function vxpath_eval_expr C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6704 error LNK2019: unresolved external symbol xmlXPathRegisterNs referenced in function vxpath_eval_expr C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6705 error LNK2019: unresolved external symbol xmlXPathNewContext referenced in function vxpath_eval_expr C:\QGIS\build\src\core\spatialite.lib(virtualxpath.obj)
Error 6706 error LNK2019: unresolved external symbol locale_charset referenced in function gaiaGetLocaleCharset C:\QGIS\build\src\core\spatialite.lib(gg_utf8.obj)
Error 6707 error LNK2019: unresolved external symbol __imp_libiconv_close referenced in function gaiaConvertCharset C:\QGIS\build\src\core\spatialite.lib(gg_utf8.obj)
Error 6708 error LNK2001: unresolved external symbol __imp_libiconv_close C:\QGIS\build\src\core\spatialite.lib(gg_shape.obj)
Error 6709 error LNK2019: unresolved external symbol __imp_libiconv referenced in function gaiaConvertCharset C:\QGIS\build\src\core\spatialite.lib(gg_utf8.obj)
Error 6710 error LNK2001: unresolved external symbol __imp_libiconv C:\QGIS\build\src\core\spatialite.lib(gg_shape.obj)
Error 6711 error LNK2019: unresolved external symbol __imp_libiconv_open referenced in function gaiaConvertCharset C:\QGIS\build\src\core\spatialite.lib(gg_utf8.obj)
Error 6712 error LNK2001: unresolved external symbol __imp_libiconv_open C:\QGIS\build\src\core\spatialite.lib(gg_shape.obj)
Error 6713 error LNK1120: 83 unresolved externals C:\QGIS\build\output\bin\Debug\qgis_core.dll
Regards, Casper
1: https://github.com/qgis/QGIS/blob/master/INSTALL
2: https://github.com/qgis/QGIS/blob/master/ms-windows/osgeo4w/package-nightly.cmd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161017/92699ea3/attachment-0001.html>
More information about the Qgis-developer
mailing list