<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I guess I inadvertently posted to the VTK list because I'm using QVTK.  I consider myself very lucky to have a got a response, one that fixed my problem.<br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> vtkusers <vtkusers-bounces@vtk.org> on behalf of Gib Bogle <g.bogle@auckland.ac.nz><br>
<b>Sent:</b> Thursday, 8 March 2018 5:57 p.m.<br>
<b>To:</b> Mike Chinander; vtkusers@vtk.org<br>
<b>Subject:</b> [FORGED] Re: [vtkusers] [FORGED] Re: Compile error building VTK 4.8.6</font>
<div> </div>
</div>
<div>
<p>Sorry, my slip, of course I meant Qt 4.8.6.</p>
<p>I think that fix should work for me - this is old code that I don't want to mess with.<br>
</p>
<p>Thanks a lot!</p>
<p><br>
</p>
<p>Gib<br>
</p>
<div style="color:rgb(33,33,33)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> vtkusers <vtkusers-bounces@vtk.org> on behalf of Mike Chinander <chinander@gmail.com><br>
<b>Sent:</b> Thursday, 8 March 2018 5:44 p.m.<br>
<b>To:</b> vtkusers@vtk.org<br>
<b>Subject:</b> [FORGED] Re: [vtkusers] Compile error building VTK 4.8.6</font>
<div> </div>
</div>
<div>
<div dir="ltr">Are you compiling VTK here or Qt 4.8.6? See <a href="https://bugreports.qt.io/browse/QTBUG-28335">https://bugreports.qt.io/browse/QTBUG-28335</a> for a possible fix.
<div><br>
</div>
<div>If it's an option for you (i.e., not trying build legacy code), I'd recommend using newer versions of VTK and Qt (and compiler).</div>
<div><br>
</div>
<div>Good luck,</div>
<div><br>
</div>
<div>--Mike</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Mar 7, 2018 at 10:04 PM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I am trying to build VTK for x64, something I've done before with MSVC 2010, but not with MSVC 2012.  I get this error compiling WTFString.cpp:</p>
<p><br>
</p>
<p>        cl -c -nologo -Zm200 -Zc:wchar_t- -wd4291 -wd4344 -wd4396 -wd4503 -wd480<br>
0 -wd4819 -wd4996 -O2 -MD -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -DBUILDING_QT__=1<br>
 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -D_HAS_TR1=0 -DBUILDING_JavaScriptCore -DBUIL<br>
DING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE<br>
 -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\..\include\Q<br>
tCore" -I"..\..\..\..\..\include" -I"." -I"..\..\Source" -I"..\ThirdParty" -I"as<br>
sembler" -I"bytecode" -I"bytecompiler" -I"heap" -I"dfg" -I"debugger" -I"interpre<br>
ter" -I"jit" -I"parser" -I"profiler" -I"runtime" -I"wtf" -I"wtf\gobject" -I"d:\Q<br>
t\4.8.6\src\3rdparty\webkit\<wbr>Source\JavaScriptCore\wtf\<wbr>symbian" -I"wtf\unicode" -<br>
I"yarr" -I"API" -I"ForwardingHeaders" -I"generated" -I"os-win32" -I"..\..\Source<br>
" -I"..\..\include" -I"\include\QtWebKit" -I"\include" -I"..\..\..\..\..\include<br>
\ActiveQt" -I"tmp\moc\release_shared" -I"..\..\..\..\..\mkspecs\<wbr>win32-msvc2012"<br>
-Fotmp\obj\release_shared\ @C:\Users\mbog002\AppData\<wbr>Local\Temp\WTFString.obj.29<br>
08.4805.jom<br>
WTFString.cpp<br>
.\wtf/HashSet.h(180) : error C2664: 'std::pair<_Ty1,_Ty2>::pair(<wbr>const std::pair<<br>
_Ty1,_Ty2> &)' : cannot convert parameter 1 from 'std::pair<_Ty1,_Ty2>' to 'const std::pair<_Ty1,_Ty2> &'</p>
<p>...</p>
<p><br>
</p>
<p>(there are many more lines, but probably not adding more useful info).</p>
<p><br>
</p>
<p>The error seems to be from Hashset.h, about here:</p>
<p><br>
</p>
<p>    template<typename T, typename U, typename V><br>
    inline pair<typename HashSet<T, U, V>::iterator, bool> HashSet<T, U, V>::add(const ValueType& value)<br>
    {<br>
        return m_impl.add(value);<br>
    }<br>
</p>
<p><br>
</p>
<p>I'm afraid this is way beyond my level  of C++ expertise - I don't use templates.  Is this error the result of a change between MSVC 2010 and 2012?  How can I avoid this error?</p>
<p><br>
</p>
<p>Thanks</p>
<span class="HOEnZb"><font color="#888888">
<p>Gib<br>
</p>
</font></span></div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>