[Development] Build broke on Windows 7 64bit, whatever out-of-source or in-source-tree

Rohan McGovern rohan.mcgovern at nokia.com
Tue May 29 01:15:39 CEST 2012


Loaden said:
> >
> > Generating Code...
> >  link /LIBPATH:"d:\qpSOFT\Projects\BuildQt5-x64\qtbase\lib"
> > /LIBPATH:"d:\qpSOFT\Projects\BuildQt5-x64\qtbase\lib"
> > /LIBPATH:"d:\qpSOFT\Projects\BuildQt5-x64\qtbase\lib" /NOLOGO /DYNAMICBASE
> > /NXCOMPAT /DEBUG /DLL /MANIFEST
> > /MANIFESTFILE:"debug\declarative_locationd.intermediate.manifest"
> > /OUT:d:\qpSOFT\Projects\BuildQt5-x64\qtbase\imports\QtLocation\declarative_locationd.dll
> > @C:\Users\loaden\AppData\Local\Temp\nmAC70.tmp
> > poly2tri.lib(cdt.obj) : error LNK2038: mismatch detected for
> > '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> > qdeclarativeposition.obj
> > poly2tri.lib(sweep_context.obj) : error LNK2038: mismatch detected for
> > '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> > qdeclarativeposition.obj
> > poly2tri.lib(sweep.obj) : error LNK2038: mismatch detected for
> > '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> > qdeclarativeposition.obj
> > poly2tri.lib(advancing_front.obj) : error LNK2038: mismatch detected for
> > '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> > qdeclarativeposition.obj
> > poly2tri.lib(shapes.obj) : error LNK2038: mismatch detected for
> > '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> > qdeclarativeposition.obj
> >    Creating library
> > d:\qpSOFT\Projects\BuildQt5-x64\qtbase\imports\QtLocation\declarative_locationd.lib
> > and object
> > d:\qpSOFT\Projects\BuildQt5-x64\qtbase\imports\QtLocation\declarative_locationd.exp
> > LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
> > libs; use /NODEFAULTLIB:library
> > d:\qpSOFT\Projects\BuildQt5-x64\qtbase\imports\QtLocation\declarative_locationd.dll
> > : fatal error LNK1319: 5 mismatches detected
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 10.0\VC\Bin\amd64\link.EXE"' : return code '0x527'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 10.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.
> > NMAKE : fatal error U1077: 'cd' : return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: 'cd' : return code '0x2'
> > Stop.
> >
> > Build broke after re-install Windows SDK 7.1.
> Any comments?

Hi Loaden,

You seem to be getting a link error from mixing debug and release
versions of libraries.

I believe there is an error in
qtlocation/src/imports/location/location.pro, these two lines:

  LIBS += -L../../3rdparty/poly2tri -lpoly2tri
  win32:LIBS += -L../../3rdparty/poly2tri/release -L../../3rdparty/poly2tri/debug

Unless I've missed something, there's nothing here which ensures the
debug version of declarative_location is linked with the debug version
of the poly2tri static library.



More information about the Development mailing list