[QGIS-Developer] How to build qgis on Windows 10

Matthias Kuhn matthias at opengis.ch
Tue Dec 27 00:23:59 PST 2022


Hi,

If you are building with vcpkg, it's worth having a look at QField which
also builds against vcpkg libraries with a quite recent vcpkg version and a
set of overlay ports.
https://github.com/opengisch/QField/tree/master/vcpkg/overlay

Best regards
Matthias

On Sun, Dec 25, 2022 at 7:49 PM Uhrig, Stefan via QGIS-Developer <
qgis-developer at lists.osgeo.org> wrote:

> You are seeing this error because vcpkg already builds qwt against Qt6
> where QList und QVector were unified (
> https://www.qt.io/blog/qlist-changes-in-qt-6).
>
>
>
> The easiest solution is resetting the vcpkg repository to an older state:
> git reset --hard 3776224fd28bd7e0c78617d73696753219e8d272~1
>
>
>
> I recommend to clean the vcpkg directory then via: git clean -xfd
>
>
>
> I’d also delete the %LOCALAPPDATA%\vcpkg folder.
>
>
>
> Rebuild the dependencies then. Clean your QGIS build folder and rebuild.
>
>
>
> Cheers,
>
> Stefan
>
>
>
> *From:* QGIS-Developer <qgis-developer-bounces at lists.osgeo.org> *On
> Behalf Of *Deimer Caldera via QGIS-Developer
> *Sent:* Wednesday, December 21, 2022 8:40 PM
> *To:* "Johannes Kröger (WhereGroup)" <johannes.kroeger at wheregroup.com>
> *Cc:* qgis-developer <qgis-developer at lists.osgeo.org>
> *Subject:* Re: [QGIS-Developer] How to build qgis on Windows 10
>
>
>
> Hi, thank you for your quick answer.
>
>
>
> I have checked and the package Qwt is installed, so do you have any other
> idea?
>
>
>
>
>
>
>
> ---- On Wed, 21 Dec 2022 10:23:04 -0500 *Johannes Kröger (WhereGroup) via
> QGIS-Developer <qgis-developer at lists.osgeo.org
> <qgis-developer at lists.osgeo.org>>* wrote ---
>
>
>
> QwtPlotCurve sounds like you are missing QWT? This is documented in the
> up-to-date documentation at
> https://github.com/qgis/QGIS/blob/master/INSTALL.md#2-overview
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fqgis%2FQGIS%2Fblob%2Fmaster%2FINSTALL.md%232-overview&data=05%7C01%7Cstefan.uhrig%40sap.com%7Cdeb1e6e5938b480855b708dae38b282d%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C638072484082672343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2U2pF8%2FZ26TO2DO5QUSIODnMnPLL8ev9iA%2BbvicxtGc%3D&reserved=0>
> and has been written in that document for at least two years.
>
> Am 21.12.22 um 16:04 schrieb Deimer Caldera via QGIS-Developer:
>
>
>
> --
>
> Johannes Kröger / GIS-Entwickler/-Berater
>
>
>
> ---------------------------------------------
>
> Schon gewusst?
>
>
>
> In unserem Blog geben wir Tipps & Tricks zu
>
> Open-Source-GIS-Software und berichten aus
>
> unserem Experten-Alltag:
>
> https://wheregroup.com/blog/ <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwheregroup.com%2Fblog%2F&data=05%7C01%7Cstefan.uhrig%40sap.com%7Cdeb1e6e5938b480855b708dae38b282d%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C638072484082672343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Wv1NbTZKvbZAcmY5PVeu7QtRq3PFsFHEz1Y5TsEPX7w%3D&reserved=0>
>
> ---------------------------------------------
>
>
>
> WhereGroup GmbH
>
> Grevenweg 89
>
> 20537 Hamburg
>
> Germany
>
>
>
> Tel: +49 (0)228 / 90 90 38 - 36
>
> Fax: +49 (0)228 / 90 90 38 - 11
>
>
>
> johannes.kroeger at wheregroup.com
>
> www.wheregroup.com <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wheregroup.com%2F&data=05%7C01%7Cstefan.uhrig%40sap.com%7Cdeb1e6e5938b480855b708dae38b282d%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C638072484082672343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=yhZKXHqf3TUhjBaxrB0lYRWK6DptcP02grj3RRKMyr0%3D&reserved=0>
>
> Geschäftsführer:
>
> Olaf Knopp, Peter Stamm
>
> Amtsgericht Bonn, HRB 9885
>
> -------------------------------
>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> I have tried to build qgis from source with this document
> https://github.com/qgis/QGIS/blob/ltr-3_22/INSTALL.md
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fqgis%2FQGIS%2Fblob%2Fltr-3_22%2FINSTALL.md&data=05%7C01%7Cstefan.uhrig%40sap.com%7Cdeb1e6e5938b480855b708dae38b282d%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C638072484082828549%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T72qLrWDqs8tfAcXM9NEfOLJu5l6aTX4mwc3SGU85iU%3D&reserved=0> but
> I got many errors. Recently I found this guide
>
> https://www.mail-archive.com/qgis-developer@lists.osgeo.org/msg52306.html
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mail-archive.com%2Fqgis-developer%40lists.osgeo.org%2Fmsg52306.html&data=05%7C01%7Cstefan.uhrig%40sap.com%7Cdeb1e6e5938b480855b708dae38b282d%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C638072484082828549%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ePzwulq%2F4gdClMvek9S%2BwVJdrSfpNFyVCp%2Bq9tH3k6A%3D&reserved=0> but
> the build gives me some errors (error LNK2019: unresolved external symbol).
>
>
>
> ..\qgis-3.22.13\out\build\x64-Release\qgsrasterhistogramwidget.cpp.obj :
> error LNK2019: unresolved external symbol "__declspec(dllimport) public:
> void __cdecl QwtPlotCurve::setSamples(class QVector<class QPointF> const
> &)" (__imp_?setSamples at QwtPlotCurve@@QEAAXAEBV?$QVector at VQPointF@@@@@Z)
> referenced in function "public: void __cdecl
> QgsRasterHistogramWidget::refreshHistogram(void)"
> (?refreshHistogram at QgsRasterHistogramWidget@@QEAAXXZ)
>
>
>
> ..\qgis-3.22.13\out\build\x64-Release\qgscurveeditorwidget.cpp.obj : error
> LNK2001: unresolved external symbol "__declspec(dllimport) public: void
> __cdecl QwtPlotCurve::setSamples(class QVector<class QPointF> const &)"
> (__imp_?setSamples at QwtPlotCurve@@QEAAXAEBV?$QVector at VQPointF@@@@@Z)
>
>
>
> ..\qgis-3.22.13\out\build\x64-Release\qgsgradientcolorrampdialog.cpp.obj :
> error LNK2001: unresolved external symbol "__declspec(dllimport) public:
> void __cdecl QwtPlotCurve::setSamples(class QVector<class QPointF> const
> &)" (__imp_?setSamples at QwtPlotCurve@@QEAAXAEBV?$QVector at VQPointF@@@@@Z)
>
>
>
> ..\qgis-3.22.13\out\build\x64-Release\qgsrasterhistogramwidget.cpp.obj :
> error LNK2019: unresolved external symbol "__declspec(dllimport) public:
> void __cdecl QwtPlotHistogram::setSamples(class QVector<class
> QwtIntervalSample> const &)" (__imp_?setSamples at QwtPlotHistogram
> @@QEAAXAEBV?$QVector at VQwtIntervalSample@@@@@Z) referenced in function
> "public: void __cdecl QgsRasterHistogramWidget::refreshHistogram(void)"
> (?refreshHistogram at QgsRasterHistogramWidget@@QEAAXXZ)
>
>
>
> ..\qgis-3.22.13\out\build\x64-Release\qgscurveeditorwidget.cpp.obj : error
> LNK2001: unresolved external symbol "__declspec(dllimport) public: void
> __cdecl QwtPlotHistogram::setSamples(class QVector<class QwtIntervalSample>
> const &)" (__imp_?setSamples at QwtPlotHistogram
> @@QEAAXAEBV?$QVector at VQwtIntervalSample@@@@@Z)
>
>
>
> ..\qgis-3.22.13\out\build\x64-Release\qgshistogramwidget.cpp.obj : error
> LNK2001: unresolved external symbol "__declspec(dllimport) public: void
> __cdecl QwtPlotHistogram::setSamples(class QVector<class QwtIntervalSample>
> const &)" (__imp_?setSamples at QwtPlotHistogram
> @@QEAAXAEBV?$QVector at VQwtIntervalSample@@@@@Z)
>
>
>
> ..\qgis-3.22.13\out\build\x64-Release\output\bin\qgis_gui.dll : fatal
> error LNK1120: 2 unresolved externals
>
>
>
> Am I missing a package to install?
>
>
>
> Is there any updated documentation to make the build successful?
>
>
>
> Thank you so much for your attention.
>
>
>
>
>
>
>
> _______________________________________________
>
> QGIS-Developer mailing list
>
> QGIS-Developer at lists.osgeo.org
>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-developer&data=05%7C01%7Cstefan.uhrig%40sap.com%7Cdeb1e6e5938b480855b708dae38b282d%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C638072484082828549%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Z5ZCGK%2FLgNDshRRN237RUPKSKEQm4g46Y8NN0iqiyRQ%3D&reserved=0>
>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-developer&data=05%7C01%7Cstefan.uhrig%40sap.com%7Cdeb1e6e5938b480855b708dae38b282d%7C42f7676cf455423c82f6dc2d99791af7%7C0%7C0%7C638072484082828549%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Z5ZCGK%2FLgNDshRRN237RUPKSKEQm4g46Y8NN0iqiyRQ%3D&reserved=0>
>
>
>
>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>

-- 
 
<https://www.opengis.ch/2022/11/03/best-of-swiss-enterprise-app-award-for-qfield/>

Best of Swiss Enterprise App-Award for QField 
<https://www.opengis.ch/2022/11/03/best-of-swiss-enterprise-app-award-for-qfield/> 
- Hold the power of QGIS in your hand - get it now <https://qfield.org/get>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221227/7f319169/attachment-0001.htm>


More information about the QGIS-Developer mailing list