<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;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" 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 tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Ctk-developers <ctk-developers-bounces@public.kitware.com> on behalf of Hongzhi Lan <hongzhi@stanford.edu><br>
<b>Sent:</b> Tuesday, August 25, 2015 6:32 PM<br>
<b>To:</b> Jean-Christophe Fillion-Robin<br>
<b>Cc:</b> ctk-developers@commontk.org<br>
<b>Subject:</b> [Ctk-developers] CTK build error with Qt5</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" 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 color="#222222" face="arial, sans-serif">Hi Chris,</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif"><br>
</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif">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 color="#222222" face="arial, sans-serif"><br>
</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif"><br>
</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif">
<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 color="#222222" face="arial, sans-serif"><br>
</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif"><br>
</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif">Thanks!</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif">Hongzhi</font></div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif"><br>
</font></div>
<div class="gmail_extra"><font color="#222222" face="arial, sans-serif"><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" target="_blank" title="mailto:jchris.fillionr@kitware.com
Ctrl+Click or tap to follow the link" style="color:rgb(17,85,204)">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 class="">
<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" target="_blank" title="mailto:h1lan@eng.ucsd.edu
Ctrl+Click or tap to follow the link" style="color:rgb(17,85,204)">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.<wbr>6/CTK-build/Libs/Core/<wbr>generated_cpp/org_commontk_<wbr>CTKCore/org_commontk_CTKCore.<wbr>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" target="_blank" style="color:rgb(17,85,204)">https://github.com/commontk/<wbr>CTK/commit/<wbr>e4e9cc326d4ab603785267defebcdc<wbr>bf514d429d</a><br>
<br>
[2] <a href="https://github.com/commontk/CTK/pull/558#issuecomment-97669981" target="_blank" style="color:rgb(17,85,204)">https://github.com/commontk/<wbr>CTK/pull/558#issuecomment-<wbr>97669981</a><br>
</div>
<span class="">
<div class="gmail_extra"><br>
<br clear="all">
<br>
-- <br>
<div><a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank" style="color:rgb(17,85,204)">+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" target="_blank" style="color:rgb(17,85,204)"></a></div>
</div>
</div>
</div>
</div>
</body>
</html>