Hi Everyone. I recently started to use Qt as well as the ArcGIS runtime SDK and I've been having problems trying to get MyFirstMap example to run. I did everything stated here: Install and set up on Windows—ArcGIS Runtime SDK for Qt | ArcGIS for Developers. I installed
The problem is that when I try to select the compiler, I get the following error:
I know the instructions said to use Visual Studio 2012, but it was my understanding that the compiler I needed was the Visual Studio 2012 (C++ 11) compiler and the compiler in Visual Studio 2013 would still work. Do I need to uninstall visual studio 2013 and use 2012?
Solved! Go to Solution.
Hi Miguel,
The samples unfortunately weren't designed in a way that they could be fully copied out, as there are some internal classes that are used. The headers that you mention it can't find are those internal classes we use. With the samples, you will need to pull out the pieces that you like and integrate them into your app, as copying the header/source in its entirety won't work.
Thank you,
Luke
Hey Miguel,
With this version on Windows, you will need Qt 5.1.1 with Microsoft VS 2012. It's always possible there is another issue, but for starters, 2012 and not 2013 is what you will need. Let me know how this goes.
Also, just so you know, we will be releasing a new version of the SDK in the upcoming week or so, and this will use Qt 5.4 with Microsoft VS 2013 on Windows. You may want to watch out for this, so that you are using the most up to date version of the software.
Thank you,
Luke
Thanks Luke,
I'll keep my eyes open for it. For now I tried installing other versions of Qt:
All seemed fine and the example compiled without any errors. The issue comes up when I try to run it and get the following error:
Again, not sure if this is because I'm not using Qt 5.1.1-32, but I will wait for the new SDK release.
Miguel
Hi Luke,
I downloaded Qt 5.1.1 and MSVS 2012 and I was able to get the MyFirstMap project to load.
I'm trying to run some of the other examples that were included in the QtSampleApplication samples that was included with the ArcGIS SDK, but when I compile I get the following errors:
Cannot open include file: 'rtsample.h': No such file or directory
Cannot open include file: 'widgetpanel.h': No such file or directory
Cannot open include file: 'addurldialog.h': No such file or directory
I don't know why i would be missing the include files. Any ideas on how to fix this? I'm trying to create a Qt widget application that can load an ArcGIS map. When I try to create a new Qt Widgets Application and try to include something like <ArcGISRuntime.h>, I get a similar
Cannot open include file: 'ArcGISRuntime.h': No such file or directory
I thought I had linked everything when I followed the setup instructions on the website, but it seems like the ArcGIS include files are only visible in the ArcGIS project template.
Miguel
Hi Miguel,
The samples unfortunately weren't designed in a way that they could be fully copied out, as there are some internal classes that are used. The headers that you mention it can't find are those internal classes we use. With the samples, you will need to pull out the pieces that you like and integrate them into your app, as copying the header/source in its entirety won't work.
Thank you,
Luke