Hello,
I'm using Qt 5.7.0, Win 7 64bit, ArcGis 10.2.6 SDK runtime
The IDE propose me Arcgis Quick & Qwidget project
the 2 .prf files are in the features folder of the SDK of QT
The IDE finds the qch for help
The .pro refer to arcgisruntime
#include arcgisruntime.h & point.h
i am creating a Arcgis point with a Qt geocoordinate.
but when i build my project: QT refers to these errors :
_imp___ZN13EsriRuntimeQt5PointD1Ev
_imp___ZN13EsriRuntimeQt5RuntimeQt5PointC1ERK14QGeoCoordinate
Is there something wrong, during the install?
Solved! Go to Solution.
My fault,
I was trying to run with mingw .
With VS2013, QT said me : he can't find the argis headers. So I re-install the runtime, and check my vs2013 kit in QT.
It's finally work.
Thanks .
From a very basic test that I wrote, this works for me. Can you share some code? Did you include QGeoCoordinate?
Hello,
thanks for answering so quickly.
I already use QGeoCoordinate without troubleshoot.
In my .pro :
I add :
CONFIG += c++11 esri_runtime_qt10_2_6
win32:CONFIG += embed_manifest_exe
In my cpp :
I add :
#include "ArcGISRuntime.h"
#include "Point.h"
I add :
QGeoCoordinate my_QT_point(0,0);
EsriRuntimeQt::Point my_ESSRI_point(my_QT_point); Results :
G:\Dev\noname\noname.cpp:38: erreur : undefined reference to '_imp___ZN13EsriRuntimeQt5PointC1ERK14QGeoCoordinate'
G:\Dev\noname\noname.cpp:38: erreur : undefined reference to `_imp___ZN13EsriRuntimeQt5PointD1Ev'
And you are including QGeoCoodinate? I am doing the same code (only I include QGeoCoordinate) and it builds just fine. I am running on Windows
Yes i have :
#include <QGeoCoordinate>
and also :
QT += positioning
i can use QGeoCoordinate, but if i use some EsriRuntimeQt:: ... i have this error.
for example if i use :
#include "Map.h"
+
EsriRuntimeQt::Map *m_map = new EsriRuntimeQt::Map(this);
I obtain :
G:\Dev\noname\noname.cpp:-1: erreur : undefined reference to `_imp___ZN13EsriRuntimeQt3MapC1EP7QObject'
this is my .pro:
#-------------------------------------------------
# Copyright 2015 ESRI
#
# All rights reserved under the copyright laws of the United States
# and applicable international laws, treaties, and conventions.
#
# You may freely redistribute and use this sample code, with or
# without modification, provided you include the original copyright
# notice and use restrictions.
#
# See the Sample code usage restrictions document for further information.
#-------------------------------------------------
TARGET = noname
TEMPLATE = app
QT += positioning core gui opengl xml network widgets sensors
# After installing the Runtime SDK for Qt you'll need to copy the
# esri_runtime_qt.prf file from your qt10.2.6/sdk/ideintegration folder
# to your Qt SDK's mkspecs/features folder in order for Qt Creator to locate
# the ArcGIS Runtime SDK for Qt header files and libraries.
#
CONFIG += c++11 esri_runtime_qt10_2_6
win32:CONFIG += \
embed_manifest_exe
SOURCES += \
main.cpp \
noname.cpp
HEADERS += \
noname.h
INCLUDEPATH +=F:\Program Files (x86)\ArcGIS SDKs\Qt10.2.6\sdk\windows\include \
F:\Program Files (x86)\ArcGIS SDKs\Qt10.2.6\sdk\windows\x86\bin
My fault,
I was trying to run with mingw .
With VS2013, QT said me : he can't find the argis headers. So I re-install the runtime, and check my vs2013 kit in QT.
It's finally work.
Thanks .