Problems while trying to get started using ArcGIS Runtime SDK for Qt on Qt SDK 5.1.0

5459
16
08-27-2013 02:19 AM
GuenterMeier
New Contributor
HI everybody,

on a Win 7 Prof. machine (64 bit) with .NET Framework 4.5 (Version 4.5.50709) I have installed all the components as described here:
https://developers.arcgis.com/en/qt/guide/how-to-build-on-windows.htm
With Visual Studio Professional 2012 Update 3 installed, the compiler I use is MS Visual C++Compiler 11.0 (amd64).
I can run example applications without problems. Trying to create a new project using ArcGIS Runtime SDK 10.2, I get the following error messages:


mainwindow.h:4: Error:C1083: Datei (Include) kann nicht ge�?�ffnet werden: "QtGui/QMainWindow": No such file or directory


  • Could a broken path be the problem?

  • A missing "include"?

  • Should I install all the components again, from the beginning (I did not stick to the recommended order for installing ...)?

Any other bet? Helpful ideas are very welcome!

Regards,
Günter
0 Kudos
16 Replies
JeanneTrieu
Occasional Contributor
Hi Günter,

Thank you very much for your interest for and your feedbacks the ArcGIS Runtime SDK for Qt. The beta release of the SDK is built against 4.8.4 on Windows and 4.7.4 on linux. To my knowledge, it is not forward compatible with Qt 5.1.
Therefore in order to use the beta release, you will have to either compile 4.8.4 using Visual Studio 2012 on Windows or download the version that we provided on the Beta community site: http://beta.esri.com/community/. You can follow the steps from this link: https://developers.arcgis.com/en/qt/guide/how-to-build-on-windows.htm to integrate 4.8.4 in to QtCreator. For Linux, you can download the 4.7.4 or 4.8.x from the Qt project site. 
Let me know if you have any issues or concerns.

Regards,
0 Kudos
GuenterMeier
New Contributor
Thanks for answering, Jen!

I will change the Qt version in my setting and soon let you know how things work out.

Bye,
Günter
0 Kudos
GuenterMeier
New Contributor
Hello Jen,

I can follow the discription here : https://developers.arcgis.com/en/qt/guide/how-to-build-on-windows.htm

until number 6. "Build the Qt SDK using nmake". Here I start having problems due to my lack of knowledge concerning the use of nmake. The configuration seems to work, but not so my trial to build the Qt SDK. I will try to understand how to better use nmake in order to make it work.

Apart from these compiling problems (I just need to study the help ...) I actually wanted to download the Qt SDK as a package of binary files which I then will be able to use as they are. My problem: I can't find that package. Any hint for that?


The resources for download: "ArcGIS Runtime SDK Qt 10.2 Beta1 Windows"
here: https://betacommunity.esri.com/project/version/item.html?cap=A3FD628514DD43FCACD89BA929AE66A8&arttyp...{986D26A3-3E6F-4B56-841C-369D10E4A166}&artid={E1162F62-A88F-4096-B670-A1D580420CA5}

only offer the package to unzip  and compile. The binary files were mentioned, but I can't find them.

Thanks for your help,
Günter
0 Kudos
JeanneTrieu
Occasional Contributor
Hi Günter,

You can download a compiled version of Qt 4.8.4 for Windows from the Beta community site: https://betacommunity.esri.com.
You just need to log in then go to the Qt Beta Program links. At the bottom of the page, you will see the link to the resources and you will need to click on "ArcGIS Runtime SDK Qt 10.2 Beta1 Windows". From that page, you will be able to download "qt-everywhere-opensource-src-4.8.4-32.zip".

The instruction to add the kit into Qt Creator can be found here: https://developers.arcgis.com/en/qt/guide/how-to-build-on-windows.htm.
Let me know if you have any question or concern.

Regards,
0 Kudos
GuenterMeier
New Contributor
Hi Jen, thank you for your message.

I would like to use that compiled version (qt-everywhere-opensource-src-4.8.4-32) here:
https://betacommunity.esri.com/project/version/item.html?cap=A3FD628514DD43FCACD89BA929AE66A8&arttyp...{986D26A3-3E6F-4B56-841C-369D10E4A166}&artid={E1162F62-A88F-4096-B670-A1D580420CA5}
, but this one seems to be good for 32bit System. Can I have the same compiled Qt 4.8.4 for a (Win 7 Prof.) 64bit System?

Kind regards,
Günter
0 Kudos
JeanneTrieu
Occasional Contributor
Hi Günter,

I have uploaded the 64 bit version of the Qt SDK. You should be able to download a compiled version of Qt 4.8.4 for Windows from the Beta community site: https://betacommunity.esri.com.

You just need to log in then go to the Qt Beta Program links. At the bottom of the page, you will see the link to the resources and you will need to click on "ArcGIS Runtime SDK Qt 10.2 Beta1 Windows". From that page, you will be able to download "qt-everywhere-opensource-src-4.8.4-64.zip".

Let me know if you have any issue or question.

Regards,
0 Kudos
GuenterMeier
New Contributor
Hi Jen,

thank you for uploading the 64 bit version of the Qt SDK. It seems to be exactly what I needed. I' ll go for a cup of coffee to celebrate - right after starting the download!

cheers,
Günter
0 Kudos
GuenterMeier
New Contributor
Hi Jen,

my System is still struggling to come alive. At the moment it can't find the EsriRuntimeQt.dll, it seems.

I have two questions concerning this problem. In the explanation at this site:
https://developers.arcgis.com/en/qt/guide/displaying-a-map.htm

..... there are two points that I would like to have a more detailed description of:

1) "(If you haven't already, install and set up ArcGIS Runtime SDK for Qt, ...) ...which includes adding the references to the needed libraries."
and
2) "In the Project References notice that the ESRI.ArcGIS.Client and ESRI.ArcGIS.Client.Local libraries are present."

My questions:

1) Isn't that already taken care of with this (in the .pro - file):

win32:{
  LIBS +=  \
  -L"$$(ARCGISRUNTIMESDKQT_10_2)"/ArcGISRuntime10.2/Client64
  CONFIG(debug, debug|release) {
    LIBS += \
            -lEsriRuntimeQtd
  } else {
    LIBS += \
            -lEsriRuntimeQt
  }


2) Where exactly are these:
ESRI.ArcGIS.Client and ESRI.ArcGIS.Client.Local to find?
Do I need to add these libraries in this way (in the .pro-file): 
LIBS += (path) ESRI.ArcGIS.Client    ?  


Thanks a lot for your support!

Günter
0 Kudos
JeanneTrieu
Occasional Contributor
Hi Günter,


1)"(If you haven't already, install and set up ArcGIS Runtime SDK for Qt, ...) ...which includes adding the references to the needed libraries."
Anwser: EsriRuntimeQt is part of the dependencies needed. Since this is a Qt SDK, you might need to include other Qt dlls for your application to work.

2) "In the Project References notice that the ESRI.ArcGIS.Client and ESRI.ArcGIS.Client.Local libraries are present."
Anwser: The following is a typo in our doc and it will be removed. Sorry for the confusion that it might have caused you.

Let me know if you have any other questions.

Regards,
0 Kudos
GuenterMeier
New Contributor

1)"(If you haven't already, install and set up ArcGIS Runtime SDK for Qt, ...) ...which includes adding the references to the needed libraries."
Anwser: EsriRuntimeQt is part of the dependencies needed. Since this is a Qt SDK, you might need to include other Qt dlls for your application to work.



HI Jen,

could I get more detailed information about how to "... include other Qt dlls for (my) application to work"? (1)

I can make my Executable run (for a short moment) by now, but then it falls apart leaving me behind with a message in the dump-file (@...user\AppData\Local\Temp): The thread has tried to read or write at a location (virtual address) without having the appropriate rights to do so.  ..... I tried to unblock as many folders as I could possibly find. Did I forget one? (2)

These questions must be getting difficult for you to answer. Again: Thank you for your support!

Best Regards,
Günter
0 Kudos