Select to view content in your preferred language

Problem with MyFirstMap example (MSVC2013 + QML)

6483
8
Jump to solution
03-02-2015 02:55 AM
JuanJesus
Deactivated User

Hi there,

I tried to install arcGIS Qt SDK in windows with no success. I followed all the steps and used the last version of Qt (5.4.1 MSVC13 OpenGL 64) with the compiler Microsoft Visual C++ compiler 12.0 (64 bits). The code compiles but when I run the program, I get this message:

--------------------------------------------

Initializing application

QQmlApplicationEngine failed to load component

qrc:/qml/main.qml:16 plugin cannot be loaded for module "ArcGIS.Runtime": Cannot load library E:/Developing/Qt5.4/5.4/msvc2013_64_opengl/qml/ArcGIS/Runtime/ArcGISRuntimePlugin.dll:

--------------------------------------------

However, the .dll is in the suggested path. Any ideas?

Thanks

Juan

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

Hey Juan,

The new build for Windows on 5.4.1 is now up and ready for download in the same place you got 5.4.0. With this, you will use Qt 5.4.1 with our SDK.

Thanks!

Luke

View solution in original post

8 Replies
LucasDanzinger
Esri Frequent Contributor

Hey Juan-

The issue is probably because of Qt 5.4.1. For the version that is currently available for download, you must use 5.4.0 for Windows (see system requirements here - System requirements—ArcGIS Runtime SDK for Qt | ArcGIS for Developers). This is due to a Qt Company bug, where binaries lost backwards/forward compatibility at 5.4.0. Our binaries that you downloaded were built with 5.4.0, so you will need that version.

5.4.1 was released just as we were releasing 10.2.5. We are in the process of certifying a new build off 5.4.1, and that will be available for you to use very soon. Stay tuned for more information.

See the note about this and follow the blog here - ArcGIS Runtime SDK 10.2.5 for Qt is now available | ArcGIS Blog

Here is the Qt Company blog that explains the break in binary compatibility - Qt 5.4.1 Released |

Download Qt 5.4.0 here - Index of /archive/qt/5.4/5.4.0

Let me know if you have any questions about any of this.

Thanks!

Luke

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Hey Juan,

The new build for Windows on 5.4.1 is now up and ready for download in the same place you got 5.4.0. With this, you will use Qt 5.4.1 with our SDK.

Thanks!

Luke

JuanJesus
Deactivated User

Sorry for answering so late. It is working now.

Thanks for your help

Juan

JörgTurla
Emerging Contributor

Hi,

I have a simular problem as Juan. I downloaded and installed the ArcGIS Runtime SDK 10.2.5 for Qt (Release-No 10.2.899) last week. I'm working with Visual Studio  2013. I build Qt Release 5.4.1 with OpenSSL and OpenGL support from source. My first "Show a Map" program compiles without any problems, but starting the program fails because the dll entry point of Qt5OpenGL.dll can not be found.

What could be wrong?

Best regards

Jörg

0 Kudos
JuanJesus
Deactivated User

Hi Jorg,

Have you tried to put the required .dll inside the executable folder? Qt5OpenGL.dll must be located in the Qt installation folder. If this solution fixes your problem, you'll have to add the folder to the system $PATH.

Juan

0 Kudos
JörgTurla
Emerging Contributor

Hi Juan,

thank you for your very fast reply.

Yes I tried to copy all DLL's into the executable folder, with the same result. The problem is not that DLL's can not be found. It looks like an incompatibilty between the ArcGIS SDK and my Qt5 build. Could be something went wrong with configuring and building Qt. Do you have any idea?

Thanks

Jörg

0 Kudos
VentsislavStanchev
Emerging Contributor

hi

Qt SDK for Windows version 5.4.1 minimum (msvc2013, OpenGL) See important note below.

To access HTTPS or SSL-enabled web services on Windows, the Qt SDK requires the latest SSL/OpenSSL libraries be installed. See your operating system documentation for more information.

Microsoft Visual Studio 2013 C++ compiler

Microsoft XML Core Services (MSXML) 6.0

Microsoft .NET Framework 4.0

Microsoft .NET Framework 4.5

Qt 5.4.1 need to be version (msvc2013, OpenGL)

after this you install ArcGIS runtime sdk for qt

and run postinstall when you specify qtcreator.exe and qmake.exe

then run qt creator for example: open new project - > ArcGIS - > one choice one from 2 both templates and go qmake and run.

if your Qt creator is with mingw or version is under 5.4.1 its normaly to have this issue

0 Kudos
JörgTurla
Emerging Contributor

Hi,

it's working now.

Thanks for your help.

Jörg

0 Kudos