<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to add ArcGIS runtime SDK for Qt to existing project in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/unable-to-add-arcgis-runtime-sdk-for-qt-to/m-p/75002#M359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have been having trouble the last few days trying to add the ArcGIS runtime SDK for Qt to a pre-existing project. I have read through the best practices and how to install on windows multiple times but nothing seems to be working. I am new to Qt/QML/etc so I am still learning how everything functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.pro file&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;#&lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;ESRI Integration &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;#

include &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\ideintegration\arcgis_runtime_qml.pri"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

QML2_IMPORT_PATH&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\toolkit\Import"&lt;/SPAN&gt;
QML2_IMPORT_PATH&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\windows\x64\qml"&lt;/SPAN&gt;

QML_IMPORT_PATH&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\toolkit\Import"&lt;/SPAN&gt;

#&lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;End ESRI Integration &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;#&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; #include &amp;lt;QQmlEngine&amp;gt; added to my .cpp file as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The import Esri.ArcGISRuntime 100.8 statement in my .qml file does not throw an error but in the application output it says&amp;nbsp;&lt;STRONG&gt;module "Esri.ArcGISRuntime" is not installed&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Qt Creator 4.12.4 &lt;BR /&gt;Based on Qt 5.14.2 (MSVC 2017, 32 bit)&lt;/DIV&gt;&lt;DIV&gt;Using Desktop Qt 5.14.2 MSVC2017 64bit to build/run (testing on desktop computer)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I use the 32bit to build/run I receive an error LNK1104: cannot open file 'EsriCommonQtd.lib'&lt;/DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:54:31 GMT</pubDate>
    <dc:creator>Claire_Peterson</dc:creator>
    <dc:date>2021-12-10T22:54:31Z</dc:date>
    <item>
      <title>Unable to add ArcGIS runtime SDK for Qt to existing project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unable-to-add-arcgis-runtime-sdk-for-qt-to/m-p/75002#M359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have been having trouble the last few days trying to add the ArcGIS runtime SDK for Qt to a pre-existing project. I have read through the best practices and how to install on windows multiple times but nothing seems to be working. I am new to Qt/QML/etc so I am still learning how everything functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.pro file&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;#&lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;ESRI Integration &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;#

include &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\ideintegration\arcgis_runtime_qml.pri"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

QML2_IMPORT_PATH&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\toolkit\Import"&lt;/SPAN&gt;
QML2_IMPORT_PATH&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\windows\x64\qml"&lt;/SPAN&gt;

QML_IMPORT_PATH&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS SDKs\Qt100.8\sdk\toolkit\Import"&lt;/SPAN&gt;

#&lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;End ESRI Integration &lt;SPAN class="operator token"&gt;--&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;#&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; #include &amp;lt;QQmlEngine&amp;gt; added to my .cpp file as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The import Esri.ArcGISRuntime 100.8 statement in my .qml file does not throw an error but in the application output it says&amp;nbsp;&lt;STRONG&gt;module "Esri.ArcGISRuntime" is not installed&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Qt Creator 4.12.4 &lt;BR /&gt;Based on Qt 5.14.2 (MSVC 2017, 32 bit)&lt;/DIV&gt;&lt;DIV&gt;Using Desktop Qt 5.14.2 MSVC2017 64bit to build/run (testing on desktop computer)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I use the 32bit to build/run I receive an error LNK1104: cannot open file 'EsriCommonQtd.lib'&lt;/DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unable-to-add-arcgis-runtime-sdk-for-qt-to/m-p/75002#M359</guid>
      <dc:creator>Claire_Peterson</dc:creator>
      <dc:date>2021-12-10T22:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to add ArcGIS runtime SDK for Qt to existing project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unable-to-add-arcgis-runtime-sdk-for-qt-to/m-p/75003#M360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claire -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the 32-bit build, we only release the 64-bit binaries so I am not surprised you are getting a linker error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for 64-bit, we should be able to get this working. It sounds like an issue at runtime, not build time. I &lt;EM&gt;think&lt;/EM&gt; there are a few ways this can be accomplished. First off, I believe QML2_IMPORT_PATH is supposed to&amp;nbsp;be used as an environment variable (not qmake). You could try setting this environment variable in Qt Creator before running -&amp;nbsp;&lt;A class="link-titled" href="https://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path" title="https://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path" rel="nofollow noopener noreferrer" target="_blank"&gt;https://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, have you tried adding to the import path in the main.cpp with engine.addImportPath?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.qt.io/qt-5/qqmlengine.html#addImportPath" title="https://doc.qt.io/qt-5/qqmlengine.html#addImportPath" rel="nofollow noopener noreferrer" target="_blank"&gt;https://doc.qt.io/qt-5/qqmlengine.html#addImportPath&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;QQmlApplicationEngine appEngine;
appEngine.addImportPath("C:\\Program Files (x86)\\ArcGIS SDKs\\Qt100.8\\sdk\\windows\\x64\\qml");‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unable-to-add-arcgis-runtime-sdk-for-qt-to/m-p/75003#M360</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-10T22:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to add ArcGIS runtime SDK for Qt to existing project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unable-to-add-arcgis-runtime-sdk-for-qt-to/m-p/75004#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/25477"&gt;Lucas Danzinger&lt;/A&gt;‌, thank you for your reply. I switched over to using a 64-bit compiler and the problem ended up being that I did not have it as an environment variable! Thank you for the information and help - I appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 17:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unable-to-add-arcgis-runtime-sdk-for-qt-to/m-p/75004#M361</guid>
      <dc:creator>Claire_Peterson</dc:creator>
      <dc:date>2020-07-29T17:03:01Z</dc:date>
    </item>
  </channel>
</rss>

