<div dir="ltr"><div><div><div><div><div>Hi Hongzhi, <br><br></div>Julien pushed a fix few days ago that may be helpful to address that particular issue.<br></div>See commit 8b12543 "Fix compilation on Visual Studio" on <a href="https://github.com/commontk/CTK/commits/master">https://github.com/commontk/CTK/commits/master</a><br><br></div>Let us know if that helps, <br></div>Thanks<br></div>Jc<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 26, 2015 at 10:05 PM, Hongzhi Lan <span dir="ltr"><<a href="mailto:hongzhi@stanford.edu" target="_blank">hongzhi@stanford.edu</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">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I also tried with Qt4.8.6 and the same issue happened. But If I tried CTK code from April with Qt4.8.6, the build is good. I guess something changed in CTK after then?</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Hongzhi</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Ctk-developers <<a href="mailto:ctk-developers-bounces@public.kitware.com" target="_blank">ctk-developers-bounces@public.kitware.com</a>> on behalf of Hongzhi Lan <<a href="mailto:hongzhi@stanford.edu" target="_blank">hongzhi@stanford.edu</a>><br>
<b>Sent:</b> Tuesday, August 25, 2015 6:32 PM<br>
<b>To:</b> Jean-Christophe Fillion-Robin<br>
<b>Cc:</b> <a href="mailto:ctk-developers@commontk.org" target="_blank">ctk-developers@commontk.org</a><br>
<b>Subject:</b> [Ctk-developers] CTK build error with Qt5</font>
<div> </div>
</div><div><div class="h5">
<div>
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="gmail_extra">
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222">Hi Chris,</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222"><br>
</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222">I just tried today to build current  CTK with Qt5, but failed. I used my own VTK6.2.0, ITK4.5.1, PythonQt3.0 built with Qt5.4.1. The OS is Ubuntu 14.04 64bit. The error is shown as below.
 I didn't have this error before. </font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222"><br>
</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222"><br>
</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222">
<div class="gmail_extra">Linking CXX shared library ../../../../bin/libCTKVisualizationVTKCore.so</div>
<div class="gmail_extra">CMakeFiles/CTKVisualizationVTKCore.dir/vtkLightBoxRendererManager.cpp.o: In function `vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit()':</div>
<div class="gmail_extra">/home/hongzhi/ProgramFiles/VTK6.2.0-Qt5.4.1-Python2.7.6/Rendering/Core/vtkRenderingCoreModule.h:41: undefined reference to `vtkRenderingFreeTypeOpenGL_AutoInit_Construct()'</div>
<div class="gmail_extra">CMakeFiles/CTKVisualizationVTKCore.dir/vtkLightBoxRendererManager.cpp.o: In function `vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit()':</div>
<div class="gmail_extra">/home/hongzhi/ProgramFiles/VTK6.2.0-Qt5.4.1-Python2.7.6/Rendering/Core/vtkRenderingCoreModule.h:41: undefined reference to `vtkRenderingFreeTypeOpenGL_AutoInit_Destruct()'</div>
<div class="gmail_extra">collect2: error: ld returned 1 exit status</div>
<div class="gmail_extra">make[5]: *** [bin/libCTKVisualizationVTKCore.so.0.1.0] Error 1</div>
<div class="gmail_extra">make[4]: *** [Libs/Visualization/VTK/Core/CMakeFiles/CTKVisualizationVTKCore.dir/all] Error 2</div>
<div class="gmail_extra">make[3]: *** [all] Error 2</div>
<div class="gmail_extra">make[2]: *** [CTK-prefix/src/CTK-stamp/CTK-build] Error 2</div>
<div class="gmail_extra">make[1]: *** [CMakeFiles/CTK.dir/all] Error 2</div>
<div class="gmail_extra">make: *** [all] Error 2</div>
</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222"><br>
</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222"><br>
</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222">Thanks!</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222">Hongzhi</font></div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222"><br>
</font></div>
<div class="gmail_extra"><font face="arial, sans-serif" color="#222222"><br>
</font></div>
</div>
<div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8000001907349px">
<span style="font-size:small">On Wed, Apr 29, 2015 at 10:58 PM, Jean-Christophe Fillion-Robin </span><span dir="ltr" style="font-size:small"><<a href="mailto:jchris.fillionr@kitware.com" title="mailto:jchris.fillionr@kitware.com
Ctrl+Click or tap to follow the link" style="color:rgb(17,85,204)" target="_blank">jchris.fillionr@kitware.com</a>></span><span style="font-size:small"> wrote:</span><br style="font-size:small">
<blockquote class="gmail_quote" style="font-size:small;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">Hi Hongzhi, <br>
<br>
</div>
<div class="gmail_extra">Good to know you resolved the problem.<br>
</div>
<span>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Apr 22, 2015 at 3:23 PM, Hongzhi Lan <span dir="ltr"><<a href="mailto:h1lan@eng.ucsd.edu" title="mailto:h1lan@eng.ucsd.edu
Ctrl+Click or tap to follow the link" style="color:rgb(17,85,204)" target="_blank">h1lan@eng.ucsd.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
....../CTK-Qt5.4.1-Python2.7.6/CTK-build/Libs/Core/generated_cpp/org_commontk_CTKCore/org_commontk_CTKCore.h:9:19: fatal error: QWidget: No such file or directory #include <QWidget> ^ compilation terminated.</blockquote>
</div>
<br>
</div>
</span>
<div class="gmail_extra">It turns out that we already fixed that problem. The corresponding fixes has just been integrated into master. See [1] and [2]<br>
<br>
</div>
<div class="gmail_extra">Let us know if you have any other issues.<br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Thanks<br>
</div>
<div class="gmail_extra">Jc<br>
</div>
<div class="gmail_extra"><br>
[1] <a href="https://github.com/commontk/CTK/commit/e4e9cc326d4ab603785267defebcdcbf514d429d" style="color:rgb(17,85,204)" target="_blank">https://github.com/commontk/CTK/commit/e4e9cc326d4ab603785267defebcdcbf514d429d</a><br>
<br>
[2] <a href="https://github.com/commontk/CTK/pull/558#issuecomment-97669981" style="color:rgb(17,85,204)" target="_blank">https://github.com/commontk/CTK/pull/558#issuecomment-97669981</a><br>
</div>
<span>
<div class="gmail_extra"><br>
<br clear="all">
<br>
-- <br>
<div><a href="tel:%2B1%20919%20869%208849" value="+19198698849" style="color:rgb(17,85,204)" target="_blank">+1 919 869 8849</a></div>
</div>
</span></div>
</blockquote>
</div>
<div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8000001907349px">
<a href="https://github.com/commontk/CTK/pull/558#issuecomment-97669981" style="color:rgb(17,85,204)" target="_blank"></a></div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">+1 919 869 8849<br></div>
</div>