[Ctk-developers] CTK build error with Qt5

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Tue Sep 1 15:34:51 UTC 2015


Hi Hongzhi,

Julien pushed a fix few days ago that may be helpful to address that
particular issue.
See commit 8b12543 "Fix compilation on Visual Studio" on
https://github.com/commontk/CTK/commits/master

Let us know if that helps,
Thanks
Jc

On Wed, Aug 26, 2015 at 10:05 PM, Hongzhi Lan <hongzhi at stanford.edu> wrote:

> 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?
>
>
> Thanks,
>
> Hongzhi
>
>
> ------------------------------
> *From:* Ctk-developers <ctk-developers-bounces at public.kitware.com> on
> behalf of Hongzhi Lan <hongzhi at stanford.edu>
> *Sent:* Tuesday, August 25, 2015 6:32 PM
> *To:* Jean-Christophe Fillion-Robin
> *Cc:* ctk-developers at commontk.org
> *Subject:* [Ctk-developers] CTK build error with Qt5
>
> Hi Chris,
>
> 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.
>
>
> Linking CXX shared library ../../../../bin/libCTKVisualizationVTKCore.so
> CMakeFiles/CTKVisualizationVTKCore.dir/vtkLightBoxRendererManager.cpp.o:
> In function `vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit()':
> /home/hongzhi/ProgramFiles/VTK6.2.0-Qt5.4.1-Python2.7.6/Rendering/Core/vtkRenderingCoreModule.h:41:
> undefined reference to `vtkRenderingFreeTypeOpenGL_AutoInit_Construct()'
> CMakeFiles/CTKVisualizationVTKCore.dir/vtkLightBoxRendererManager.cpp.o:
> In function `vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit()':
> /home/hongzhi/ProgramFiles/VTK6.2.0-Qt5.4.1-Python2.7.6/Rendering/Core/vtkRenderingCoreModule.h:41:
> undefined reference to `vtkRenderingFreeTypeOpenGL_AutoInit_Destruct()'
> collect2: error: ld returned 1 exit status
> make[5]: *** [bin/libCTKVisualizationVTKCore.so.0.1.0] Error 1
> make[4]: ***
> [Libs/Visualization/VTK/Core/CMakeFiles/CTKVisualizationVTKCore.dir/all]
> Error 2
> make[3]: *** [all] Error 2
> make[2]: *** [CTK-prefix/src/CTK-stamp/CTK-build] Error 2
> make[1]: *** [CMakeFiles/CTK.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Thanks!
> Hongzhi
>
>
>
> On Wed, Apr 29, 2015 at 10:58 PM, Jean-Christophe Fillion-Robin <
> jchris.fillionr at kitware.com> wrote:
>
>> Hi Hongzhi,
>>
>> Good to know you resolved the problem.
>>
>> On Wed, Apr 22, 2015 at 3:23 PM, Hongzhi Lan <h1lan at eng.ucsd.edu> wrote:
>>
>>> ....../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.
>>
>>
>> It turns out that we already fixed that problem. The corresponding fixes
>> has just been integrated into master. See [1] and [2]
>>
>> Let us know if you have any other issues.
>>
>> Thanks
>> Jc
>>
>> [1]
>> https://github.com/commontk/CTK/commit/e4e9cc326d4ab603785267defebcdcbf514d429d
>>
>> [2] https://github.com/commontk/CTK/pull/558#issuecomment-97669981
>>
>>
>>
>> --
>> +1 919 869 8849
>>
> <https://github.com/commontk/CTK/pull/558#issuecomment-97669981>
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20150901/32174499/attachment.htm>


More information about the Ctk-developers mailing list