Select to view content in your preferred language

Compiler cannot produce code for Qt 5.1.1-32

11363
4
Jump to solution
02-19-2015 11:30 PM
MiguelValencia1
Deactivated User

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

  • ArcGIS Runtime SDK for Qt on Windows.
  • Qt SDK 5.1.1 and Qt Creator 3.3.0
  • I installed WinDbg
  • I installed visual studio express 2013 for desktop
  • I set the prefix in the qt.conf file
  • I integrated the ArcGIS runtime SDK with Qt creator
  • I added the Qt SDK to Qt creator
  • I configured the kit I want to use

The problem is that when I try to select the compiler, I get the following error:

error.jpg

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?

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

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

View solution in original post

4 Replies
LucasDanzinger
Esri Frequent Contributor

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

0 Kudos
MiguelValencia1
Deactivated User

Thanks Luke,

I'll keep my eyes open for it. For now I tried installing other versions of Qt:

erors.jpg

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:

errors2.JPG

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

0 Kudos
MiguelValencia1
Deactivated User

Hi Luke,

I downloaded Qt 5.1.1 and MSVS 2012 and I was able to get the MyFirstMap project to load.

Map.jpg

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

0 Kudos
LucasDanzinger
Esri Frequent Contributor

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