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?
Solved! Go to Solution.
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
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.
Hi @JamesBallard1 thanks for the suggestion, I have verified that the Runtime SDK version and Toolkit version are both 100.14.0
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
Hi @AlessioWilliamsGava thanks a lot for the solution provided, it worked and I am now able to run the sample.