Select to view content in your preferred language

Unable to run the GenerateOfflineMap sample

502
4
Jump to solution
07-18-2022 07:49 AM
RitvikRanadive
New Contributor III

Hi,

I am unable to build the GenerateOfflineMap sample.

I get the following error message:
qrc:/Samples/Maps/GenerateOfflineMap/GenerateOfflineMap.qml:21:1: module "Esri.ArcGISRuntime.Toolkit" is not installed
import Esri.ArcGISRuntime.Toolkit 100.14
^


It was also throwing the error about TOOLKIT_PRI_PATH missing which went away after I cloned the repository: https://github.com/Esri/arcgis-runtime-toolkit-qt
and placed it at the appropriate path specified in the .pro file.

Is there something missing from my installation?

0 Kudos
1 Solution

Accepted Solutions
AlessioWilliamsGava
Esri Contributor

Also, can you try to add these lines to the file ArcGISRuntimeSDKQt_QMLSamples/Maps/GenerateOfflineMap/main.cpp:
line20: #include <Esri/ArcGISRuntime/Toolkit/register.h>
line65: Esri::ArcGISRuntime::Toolkit::registerComponents(*(view.engine()));

Then rebuild and run again

View solution in original post

4 Replies
JamesBallard1
Esri Regular Contributor

Hi @RitvikRanadive. What version of the Runtime do you have? You should try to keep the toolkit and Runtime SDK versions in sync. For example, if you need toolkit for 100.13 (or 100.13.1), you can checkout this tag locally: https://github.com/Esri/arcgis-runtime-toolkit-qt/releases/tag/100.13.0.final 

Let us know if that works for you.

0 Kudos
RitvikRanadive
New Contributor III

Hi @JamesBallard1 thanks for the suggestion, I have verified that the Runtime SDK version and Toolkit version are both 100.14.0

0 Kudos
AlessioWilliamsGava
Esri Contributor

Also, can you try to add these lines to the file ArcGISRuntimeSDKQt_QMLSamples/Maps/GenerateOfflineMap/main.cpp:
line20: #include <Esri/ArcGISRuntime/Toolkit/register.h>
line65: Esri::ArcGISRuntime::Toolkit::registerComponents(*(view.engine()));

Then rebuild and run again

RitvikRanadive
New Contributor III

Hi @AlessioWilliamsGava thanks a lot for the solution provided, it worked and I am now able to run the sample.

0 Kudos