<?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 Re: Error when compiling simple program in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175356#M834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answering that quickly. I used the first method that you mentioned, as picture below shows.&lt;/P&gt;&lt;P&gt;However the errors keep happening. Looks like is missing the libc++.so.1 library, however the file is in the same directory of libEsriRuntimeQt.so but I can't add it to project file. Actually I think they are shared library’s. Here is the message when I try to compile:&lt;/P&gt;&lt;P&gt;"warning: libc++.so.1, needed by /home/thiberi0/untitled1/../arcgis/runtime_sdk/qt10.2.5/sdk/linux/x64/lib//libEsriRuntimeQt.so, not found (try using -rpath or -rpath-link)"&lt;/P&gt;&lt;P&gt;I don't know how to use this "-rpath" command, can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80357" alt="Screenshot from 2015-03-30 22:57:11.png" class="image-1 jive-image" src="/legacyfs/online/80357_Screenshot from 2015-03-30 22:57:11.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 02:03:39 GMT</pubDate>
    <dc:creator>FranciscoThibério</dc:creator>
    <dc:date>2015-03-31T02:03:39Z</dc:date>
    <item>
      <title>Error when compiling simple program</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175354#M832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got these errors when trying compile just a simple program based on ArcGIS for QtCreator. I followed the installation and setup from here:&lt;A href="https://developers.arcgis.com/qt/qml/guide/install-and-set-up-on-linux.htm" title="https://developers.arcgis.com/qt/qml/guide/install-and-set-up-on-linux.htm"&gt;Install and set up on Linux—ArcGIS Runtime SDK for Qt | ArcGIS for Developers&lt;/A&gt;​.&lt;/P&gt;&lt;P&gt;The only part from this tutorial that wasn't clear for my was the "Add the path to the ArcGIS Runtime for Qt library files to the environment variable &lt;SPAN class="usertext"&gt;LD_LIBRARY_PATH"&lt;/SPAN&gt;. Instead of doing this(I don't know how) I just added the library &lt;SPAN class="usertext"&gt;&amp;lt;install location&amp;gt;/arcgis/runtime_sdk/qt10.2.5/sdk/linux/x64/lib to .pro file. I have added some pictures that shows the project configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="usertext"&gt;I kind new in Ubuntu and ArcGIS, sorry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2015 22:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175354#M832</guid>
      <dc:creator>FranciscoThibério</dc:creator>
      <dc:date>2015-03-29T22:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error when compiling simple program</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175355#M833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Francisco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding setting LD_LIBRARY_PATH, as specified in the help here... &lt;A href="https://developers.arcgis.com/qt/qml/guide/install-and-set-up-on-linux.htm" title="https://developers.arcgis.com/qt/qml/guide/install-and-set-up-on-linux.htm"&gt;Install and set up on Linux—ArcGIS Runtime SDK for Qt | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go about doing this in a few different ways:&lt;/P&gt;&lt;P&gt;1) In Qt Creator, go to your Projects tab on the left side, scroll down to Build Environment, and click Add to add a new environment variable for LD_LIBRARY_PATH=/&amp;lt;path_to_ArcGIS_SDK&amp;gt;/x64/lib.&lt;/P&gt;&lt;P&gt;2) Create a .sh script that first sets this environment variable, then launches Qt Creator. Then use this whenever you launch Qt Creator&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=/&amp;lt;path_to_ArcGIS_SDK&amp;gt;/x64/lib&lt;/P&gt;&lt;P&gt;sh /&amp;lt;path_to_qt_creator/bin/qtcreator.sh&lt;/P&gt;&lt;P&gt;3) Add the following to your bash profile&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=/&amp;lt;path_to_ArcGIS_SDK&amp;gt;/x64/lib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, one way or another you need to set the LD_LIBRARY_PATH environment variable equal to the location of your x64/lib folder in your ArcGIS Runtime SDK for Qt location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 18:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175355#M833</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-03-30T18:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error when compiling simple program</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175356#M834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answering that quickly. I used the first method that you mentioned, as picture below shows.&lt;/P&gt;&lt;P&gt;However the errors keep happening. Looks like is missing the libc++.so.1 library, however the file is in the same directory of libEsriRuntimeQt.so but I can't add it to project file. Actually I think they are shared library’s. Here is the message when I try to compile:&lt;/P&gt;&lt;P&gt;"warning: libc++.so.1, needed by /home/thiberi0/untitled1/../arcgis/runtime_sdk/qt10.2.5/sdk/linux/x64/lib//libEsriRuntimeQt.so, not found (try using -rpath or -rpath-link)"&lt;/P&gt;&lt;P&gt;I don't know how to use this "-rpath" command, can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80357" alt="Screenshot from 2015-03-30 22:57:11.png" class="image-1 jive-image" src="/legacyfs/online/80357_Screenshot from 2015-03-30 22:57:11.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 02:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175356#M834</guid>
      <dc:creator>FranciscoThibério</dc:creator>
      <dc:date>2015-03-31T02:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error when compiling simple program</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175357#M835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Francisco-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work. libc++.so.1 is in that same directory. I'll suggest one more hack to try, but if this doesn't work, I suggest you contact Esri Support Services to troubleshoot it further, as there may be some back and forth involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd to ~/arcgis/runtime_sdk/qt10.2.5/sdk/linux/x64/lib (or wherever it was installed to)&lt;/P&gt;&lt;P&gt;ln -s libc++.so.1 libc++.so # create symlink so we can explicitly link the clang runtime library&lt;/P&gt;&lt;P&gt;in Qt project file, add: LIBS += -lc++'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work, but what you were doing before should work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 16:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175357#M835</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-03-31T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error when compiling simple program</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175358#M836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Lucas!&lt;/P&gt;&lt;P&gt;This worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 19:42:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/error-when-compiling-simple-program/m-p/175358#M836</guid>
      <dc:creator>FranciscoThibério</dc:creator>
      <dc:date>2015-03-31T19:42:22Z</dc:date>
    </item>
  </channel>
</rss>

