Select to view content in your preferred language

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

6648
16
08-27-2013 02:19 AM
GuenterMeier
Deactivated User
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
Deactivated User
Hi Günter,

As an example, you can look at the sample application that we included with the sdk.
We have included the following dlls from Qt:
QtCore4.dll
QtGui4.dll
QtNetwork4.dll
QtOpenGL4.dll
QtXml4.dll

If you are trying to deploy, you will have to embed a license string. Are you using  the provided template to write your application? Can you give me more information of what kind of functionalities you are trying to write so I can better direct you?

Regards,
0 Kudos
GuenterMeier
Deactivated User
Hi Jen,

thanks for your offer, I really appreciate that.

1) Sample application
I can open "QtSampleApplication.exe", (located here on my virtual machine: "C:\Program Files (x86)\ArcGIS SDKs\Qt10.2\sdk\samples\samplecode\bin"), see the different examples and even surf around in the table of content, but as soon as I try to open one of the examples, the application falls apart with a message saying "QtSampleApplication.exe does not work anymore".

2) Drive "F:\" -setting in Qt Creator / Options / Build & Run / Qt Versions / Details. Please see further details in the attachment (pdf-file).

3) In Qt Creator 2.8.1 Manual, at �??Getting Help / Known Issues�?� I found the following:

Paths or file names containing spaces or special characters (such as colons, dollar signs, and hash marks) may cause problems. This is because some of the tools Qt Creator uses in the background have restrictions on the characters allowed in file and directory names. To be on the safe side, we recommend creating projects and project items with names consisting of plain characters, numbers, underscores, and hyphens.
My question: Does that mean, that paths containing a colon or a dollar sign won't work  in the actual project?
Examples: 
a.) (a colon) �?� LIBS += "C:/Qt/qt-everywhere-opensource-src-4.8.4-64/lib/qtmaind.lib" 
b.) (a dollar sign) �?� INCLUDEPATH += "$$(ARCGISRUNTIMESDKQT_10_2)"/sdk/include 

4) Our "final" goal is to develop an application that allows us to map different objects (trees, creeks, small areas etc.) in the field (resp. in the forest). That still seems to be far away though. At the moment I would be glad to get the sample data running for a start.

Thank you for your support!
Regards,
Günter
0 Kudos
JeanneTrieu
Deactivated User
Hi Gunther,

To fix the path issue that you are encountering, you will need to change or add a qt.conf file in the bin folder of the Qt sdk.
You will need to follow step: 7-8 of https://developers.arcgis.com/en/qt/guide/how-to-build-on-windows.htm.
Your qt.conf file should look like this:
[Paths]
Prefix=C:/Qt/qt-everywhere-opensource-src-4.8.4-32

Make sure that you are using "/" instead of "\".

The "$$" sign is used in front of the environment variable: ARCGISRUNTIMESDKQT_10_2 so it should not be an issue.

We do not support fully virtual machine. It will not work if you do not have graphic drivers on the virtual machine.

Let me know if this answer your questions.

Regards,
0 Kudos
mohamedajap
New Contributor
hi everybody,
is it work now for Qt 5.2 opengl vs 2012 or not ?,because i have same problem and i not find  Qt 4.8.4 version to download it
please help !!
i am stuck here!
0 Kudos
cuongha
Emerging Contributor
hi everybody,
is it work now for Qt 5.2 opengl vs 2012 or not ?,because i have same problem and i not find  Qt 4.8.4 version to download it
please help !!
i am stuck here!


it work very good with Qt 5.2 and VS2012, you can find Qt 4.8.4 version at website qt-project.org
0 Kudos
JeanneTrieu
Deactivated User
Hi,

You should be using Qt SDK 5.1 or up VS 2012  with the ArcGIS Runtime SDK for Qt 10.2. Qt SDK.

Regards,
0 Kudos