Select to view content in your preferred language

Qt SDK on Linux not working

2679
0
09-12-2013 07:10 AM
DavidGuzman_Garcia
New Contributor
Hi,

We have installed ArcGIS Qt SDK on LinuxMint 15 with Qt 4.8 and qtcreator 2.8. We are not able to create a basic example using QtCreator we get the following error:

/home/david/build-untitled1-Desktop_Qt_4_8_5-Debug/..untitled1/mainwindow.cpp:16: undefined reference to `EsriRuntimeQt::Map::create(QWidget*)'
/home/david/build-untitled1-Desktop_Qt_4_8_5-Debug/../untitled1/mainwindow.cpp:23: undefined reference to `EsriRuntimeQt::ArcGISRuntime::installDirectory()'
collect2: error: ld returned 1 exit status
make: *** [arcgis_runtime_sdk_10_2_for_qt_application] Error 1

And this is our .pro file :

#-------------------------------------------------
#
# Project created by QtCreator 2013-02-20T10:13:43
#
#-------------------------------------------------

QT       += core gui opengl xml network

TARGET = arcgis_runtime_sdk_10_2_for_qt_application
TEMPLATE = app

win32:CONFIG += \
  embed_manifest_exe

# This variable should be set to x86_64 or x86 based on 64 or 32 bit Targets respectively.
QMAKE_TARGET.arch = $$(BUILD_ARCH)

unix:QMAKE_CXXFLAGS+=--std=c++0x

INCLUDEPATH += /opt/ArcGis/arcgis/runtime_sdk/qt10.2/sdk/include

contains(QMAKE_TARGET.arch, x86):{
unix:LIBS += \
  -L/usr/lib
win32:{
  LIBS +=  \
    -L"$$(ARCGISRUNTIMESDKQT_10_2)"/ArcGISRuntime10.2/Client32
  CONFIG(debug, debug|release) {
     LIBS += \
             -lEsriRuntimeQtd
  } else {
     LIBS += \
             -lEsriRuntimeQt
  }
}
}
else {
unix:LIBS += \
  -L/usr/lib64 \
  -L/opt/ArcGis/arcgis/runtime_sdk/qt10.2/ArcGISRuntime10.2/ClientLx/libEsriRuntimeQt.so

win32:{
  LIBS +=  \
  -L"$$(ARCGISRUNTIMESDKQT_10_2)"/ArcGISRuntime10.2/Client64
  CONFIG(debug, debug|release) {
    LIBS += \
            -lEsriRuntimeQtd
  } else {
    LIBS += \
            -lEsriRuntimeQt
  }
}
}

SOURCES += main.cpp \
        mainwindow.cpp

HEADERS  += mainwindow.h

Best regards,

David
0 Kudos
0 Replies