Error while building ArcGISSample in windows: error: undefined reference to '_imp_...

3309
1
04-18-2014 05:06 AM
VijayDhameliya
New Contributor
I have installed "qt-opensource-windows-x86-msvc2012-5.2.1" and "ArcGIS_Runtime_SDK_Qt_Windows_102" and followed steps given on https://developers.arcgis.com/qt/info/runtime-qt-sdk-installation-and-set-up.htm.

Now I created ArcGISSample project (default) Link and without making any changes in code when I try to build it gives errors as shown in figure: [ATTACH=CONFIG]33196[/ATTACH]

Errors:
C:\Users\Vijay13\Documents\build-ArcGISSample-Desktop_Qt_5_2_0_MinGW_32bit-Debug\debug\ArcGISSample.o:-1: In function `ZN12ArcGISSampleC2EP7QWidget':
C:\Users\Vijay13\Documents\Sample\ArcGISSample\ArcGISSample.cpp:25: error: undefined reference to `_imp___ZN13EsriRuntimeQt3MapC1Ev'
C:\Users\Vijay13\Documents\Sample\ArcGISSample\ArcGISSample.cpp:28: error: undefined reference to `_imp___ZN13EsriRuntimeQt13ArcGISRuntime15setRenderEngineERKNS_12RenderEngineE'
C:\Users\Vijay13\Documents\Sample\ArcGISSample\ArcGISSample.cpp:30: error: undefined reference to `_imp___ZN13EsriRuntimeQt15MapGraphicsView6createERNS_3MapEP7QWidget'
C:\Users\Vijay13\Documents\Sample\ArcGISSample\ArcGISSample.cpp:32: error: undefined reference to `_imp___ZN13EsriRuntimeQt3Map20setWrapAroundEnabledERKb' ..... Likewise there are 12 errors.
Can someone help me get rid of this errors.

PS: I have not installed VS 2012 or OpenGL explicitly, does that make any difference ?
0 Kudos
1 Reply
JeanneTrieu
Occasional Contributor
Hi,

You will have to install at least VS 2012 express on your machine and use the qt-opensource-windows-x86-msvc2012-5.2.1. MinGW is not supported.

Regards,
0 Kudos