Hi ESRI, I have tried to build an ArcGIS qt application with cmake command , I have successfully compiled the project and link it, but after I have received some messages that my computer couldn't find some ArcGIS qml libraries. How can I fix it? Cmake example and the errors below!
Some code from main.cpp :
QString arcGISRuntimeImportPath;
QString arcGISToolkitImportPath;
#if defined(LINUX_PLATFORM_REPLACEMENT)
// on some linux platforms the string 'linux' is replaced with 1
// fix the replacement paths which were created
arcGISRuntimeImportPath = "../For_the_map/qt100.1/sdk/linux/x64/qml";
arcGISToolkitImportPath = "../For_the_map/qt100.1/sdk/toolkit/Import";
#endif
// Add the Runtime and Extras path
view.engine()->addImportPath(arcGISRuntimeImportPath);
// Add the Toolkit path
view.engine()->addImportPath(arcGISToolkitImportPath);
// Set the source
view.setSource(QUrl("../For_the_map/Simple_Renderer/Simple_Renderer.qml"));
There are the messages:
file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:20:1: module "Esri.ArcGISRuntime.Toolkit.Controls" is not installed
import Esri.ArcGISRuntime.Toolkit.Controls 100.1
^
file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:21:1: module "Esri.ArcGISExtras" is not installed
import Esri.ArcGISExtras 1.1
^
file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:20:1: module "Esri.ArcGISRuntime.Toolkit.Controls" is not installed
import Esri.ArcGISRuntime.Toolkit.Controls 100.1
^
file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:21:1: module "Esri.ArcGISExtras" is not installed
import Esri.ArcGISExtras 1.1