[Paraview] Error building superbuild VS2010

Ben Boeckel ben.boeckel at kitware.com
Tue Aug 4 14:24:10 EDT 2015


On Tue, Aug 04, 2015 at 00:55:16 +0000, Bruce Jones wrote:
> I followed your instructions and the build was successful in release mode.
> However, when I run the executable it crashes on load.
> 
> Attempting to debug this I tried to build in debug mode using the same
> approach. Unfortunately the debug build fails with an error,
> 
> qtmain.lib(qtmain_win.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> paraview_main.cxx.obj
> MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib'
> conflicts with use of other libs; use /NODEFAULTLIB:library
> bin\paraview.exe : fatal error LNK1319: 1 mismatches detected
> LINK Pass 1 failed. with 1319
> 
> I am not sure why this is occurring.

This typically occurs because Qt is built in release while ParaView is
debug and the two can't mix on Windows. I'd recommend starting from a
completely clean build tree to avoid any lingering files and setting
CMAKE_BUILD_TYPE=Release.

--Ben


More information about the ParaView mailing list