build error on QT

1494
5
Jump to solution
08-10-2016 10:54 AM
altricogermini
New Contributor II

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?

0 Kudos
1 Solution

Accepted Solutions
altricogermini
New Contributor II

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 .

View solution in original post

0 Kudos
5 Replies
LucasDanzinger
Esri Frequent Contributor

From a very basic test that I wrote, this works for me. Can you share some code? Did you include QGeoCoordinate?

0 Kudos
altricogermini
New Contributor II

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'

0 Kudos
LucasDanzinger
Esri Frequent Contributor

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

0 Kudos
altricogermini
New Contributor II

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

					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos
altricogermini
New Contributor II

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 .

0 Kudos