sudo apt-get install mesa-common-dev freeglut3 freeglut3-dev libglu1-mesa libglu1-mesa-dev libglui-dev binutils-gold packaging-dev build-essential
C:\AppDev\Qt\MyFirstApp\MyFirstApp.h:21: error: C1083: Cannot open include file: 'Map.h': No such file or directory
Hello,I use 32bit Ubuntu 12.04 LTS ..I don't understand with this instruction "Source the init file when you open a new command window or terminal window to use ArcGIS Runtime SDK for Qt."..Can somebody show how to do it? I still getting "Map.h No such file or directory" error.Thanks
which is the solution when it does not recognize references ArcGIS, i use Ubuntu 64X
which is the solution of all
Hi Fabian,
To run code on Linux platforms, including the ArcGIS Runtime SDK for Qt samples, source the init script for the target platform before opening Qt Creator. This means that you will need to open a terminal and use one of the following init file depending on the platform that you are on and the type of the terminal that you are using:
- init_sdk_qt64.sh for 64-bit bash,
- init_sdk_qt32.sh for 32-bit bash
- init_sdk_qt64.csh for 64-bit C shell
- init_sdk_qt32.csh for 32-bit C shell.
After that you have ran the above script located in the root folder of your installation, use the same terminal to start your QtCreator.
Let me know if you have more questions.
Regards,
Jen Trieu
Product Engineer
Thanks Jen
Questions:
1. when I start the script should leave some kind of message, I do not get anything in console
2. when I run QT Creator, open the IDE call an app created with the template and get the same herror: / home / xyz / xyz / miMapa / miMapa.h: 21: error: Map.h: No such file or directory # include "Map.h"
3. in console say:
QByteArray ProjectExplorer::runGcc(const Utils::FileName&, const QStringList&, const QStringList&): "/home/fabian/Qt/5.3/gcc_64/bin/qmake" "-xc++ -E -v -" returned exit code 1: "***Unknown option -xc++
"
As I can see you are using Qt 5.3 with 10.2.3 and we did not fully certify 10.2.3 with Qt 5.3. We know that Qt 5.3 has introduce some display bugs from the Digia side that we are trying to resolve with them.
From the diagnosis that you are giving me, it seems like the prf file is not copied into the Qt 5.3 folder.
Can you following the instruction from this link to integrate qt Creator with the ArcGIS Runtime SDK for Qt https://developers.arcgis.com/qt/guide/integrate-the-sdk-with-qt-creator.htm.
Can you download the Esri-provided Qt 5.1.1 for Linux 64-bit or 32-bit into the desired install location and follow the instruction here https://developers.arcgis.com/qt/guide/install-and-set-up-on-linux.htm.
Let me know if you have any question.
INCLUDEPATH += /home/fabian/arcgis/runtime_sdk/qt10.2.3/sdk/include
The project recognizes the references but get the following error:
error: cannot find -lEsriRuntimeQt
error: collect2: error: ld returned 1 exit status
Help meeeeee!!!!
Let's step thru the installation process and see if there is anything missing from your environment:
Did you go https://developers.arcgis.com/qt/guide/integrate-the-sdk-with-qt-creator.htm and follow all the steps in this section: Adding the ArcGIS Runtime SDK for Qt template to Qt Creator?
It looks like step 2: Copying the prf file to mkspecs\features folder for each of your Qt SDK install locations is not done.
Are you using the template that we provided you in the sdk?
Product Engineer.
in step 2 I have the folder only / Qt/5.1.1/gcc_64, copy the prf according to guide in mkspecs / features / route file. if I compile I get the error of the library, add the line to the file. pro INCLUDEPATH + = / home/fabian/arcgis/runtime_sdk/qt10.2.3/sdk/include and the error is: MESSAGE project: ArcGIS Runtime for Unix (x86_64) Project MESSAGE: Version 10.2.3 g+ +-Wl,-rpath, / home/fabian/Qt/5.1.1/gcc_64-Wl,-rpath, / home/fabian/Qt/5.1.1/gcc_64/lib-o main.o mi11map mi11map.o moc_mi11map. or -L/usr/lib64 -L/ArcGISRuntime10.2.3/Client64-lEsriRuntimeQt -L/home/fabian/Qt/5.1.1/gcc_64/lib-lQt5OpenGL-lQt5Widgets-lQt5Network-lQt5Xml-lQt5Gui-lQt5Core-LGL-lpthread / usr / bin / ld: can not find-lEsriRuntimeQt collect2: error: ld returned 1 exit status make: *** [mi11map] Error 1 16:19:55: The process "/ usr / bin / make" exited with code 2. Error while building / deploying project mi11map (kit: GCC 5.1.1 Qt Desktop 64bit) When executing step 'Make' 16:19:55: Elapsed time: 00:00.
i reinstall in version QT 2.8.1 for qt 5.1.1
i look the library requirements in show that mys SO no have this library:
libX11.so.6
libX11-6
2:1.4.99.1
libXau.so.6
libXau6
1:1.0.6-4
libXext.so.6
libXext6
2:1.3.0
libexpat.so.1
my Ubuntu is 14.04
Can you go over the requirement for Ubuntu https://developers.arcgis.com/qt/info/runtime-qt-sdk-ubuntu-required-libs.htm. If you have downloaded the version that Esri provided your Qt folder structure should look like this: /Qt-5.1.1_x64/mkspecs/eatures. Can you upload a picture of your Qt 5.1.1 folder structure and where you have copied your .prf file?
After that you have copied your prf file, you will need to close your Qt creator and restart it using another terminal.
You will still need to "source" and use the same terminal to start QtCreator in order for it to work.
Let me know if it works for you after you have updated your dependencies.
Jen Trieu Product Eng.
the solution is:
1. is necesary install g++ is basic
copy 2 files /arcgis/runtime_sdk/qt10.2.3/ArcGISRuntime10.2.3/Client64/
libEsriRuntimeQt.so and libc++.so.1
in /Qt5.1.1/5.1.1/gcc_64/lib/
2. in the project add external library ang go to libEsriRuntimeQt.so in arcgis folder instalation
3. in .pro file add line:
This is odd that you have to add copy .so over and change the .pro file. The prf file should have handled the path of the .so and include files. Thank you very much for sharing your solution.
I will look into the issue so the next release, you should not have to do all of the copy/editing of the files that you did.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.