Unable to build QtLocation 5.3.0 on Windows



  • I'm using Qt 5.3.0 for Windows 64-bit (VS 2013) dated May 26 2014 and trying to get the QtLocation to building using Qt 5.3.0 MSVC2013 64bit. I can see that QtLocation is included in the plugins but I wanted to build and run the mapviewer example which included with the code.

    So I downloaded the 5.3.0 branch from Git and when I try to build the qtlocation.pro I get the following errors.

    Creating library ....\lib\Qt5Locationd.lib and object ....\lib\Qt5Locationd.exp
    qgeomapscene.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QDoubleVector3D::QDoubleVector3D(class QVector3D const &)" (_imp??0QDoubleVector3D@@QEAA@AEBVQVector3D@@@Z) referenced in function "public: void __cdecl QGeoMapScenePrivate::paintGL(class QGLPainter *)" (?paintGL@QGeoMapScenePrivate@@QEAAXPEAVQGLPainter@@@Z)
    qgeomapscene.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QDoubleVector3D::operator class QVector3D(void)const " (_imp??BQDoubleVector3D@@QEBA?AVQVector3D@@XZ) referenced in function "public: class QGeometryData __cdecl QGeoMapScenePrivate::buildGeometry(class QGeoTileSpec const &)" (?buildGeometry@QGeoMapScenePrivate@@QEAA?AVQGeometryData@@AEBVQGeoTileSpec@@@Z)
    ....\lib\Qt5Locationd.dll : fatal error LNK1120: 2 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    15:37:31: The process "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe" exited with code 2.
    Error while building/deploying project qtlocation (kit: Desktop Qt 5.3.0 MSVC2013 64bit)
    When executing step 'Make'
    15:37:31: Elapsed time: 00:34.

    Any help? Btw it seem that the release version has build (trying to build Release version) but for some reason compiler is trying to build Debug version as well.



  • Same problem here. Qt3D (a prerequisite for QtLocation) seemed to build and install fine. QtLocation (using source from Qt online installer where build is auto-enabled by the presence of Qt3D) builds in release mode, but not in debug mode (on Win64 MSVC2013 Express using nmake), which prevents "nmake install" from completing.

    The missing class is in QtPositioning, which is built in the same (qtlocation) source directory. I can't find a reason for this link to succeed for release and fail for debug. While you can link it manually, I think this is a bug somewhere in the .pro files. I nobody replies with what we're doing wrong, I'll make a bug report.

    Has anybody successfully compiled QtLocation with MSVC2013 64bit?



  • Same problem with MSVC2010 32 bit.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.