[Ctk-developers] ctk building error with itk4.71

Hongzhi Lan h1lan at eng.ucsd.edu
Wed Apr 22 15:23:00 EDT 2015


Hi Chris,

I figured out the issue. The ITK used for building CTK with Qt4 actually
was glued with the VTK built with Qt5. I just rebuilt ITK and solved the
issue. I also found when building CTK with VTK6.2, BUILD_TESTING should be
OFF. I can build CTK with Qt5 successfully, but if I want to add Python as
well, it gives me the error as below.  I used my own VTK6.2.0, ITK4.5.1,
PythonQt3.0 built with Qt5.4.1.

....../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.


Thanks,
Hongzhi

On Tue, Apr 21, 2015 at 10:49 PM, Jean-Christophe Fillion-Robin <
jchris.fillionr at kitware.com> wrote:

> Hi Hongzhi,
>
> Did you manage to address your problem ?
>
> If not, could you share the content of CTK-build/CTK-build/CMakeCache.txt
> ?
>
> Thanks
> Jc
>
> On Mon, Apr 6, 2015 at 8:16 PM, Hongzhi Lan <h1lan at eng.ucsd.edu> wrote:
>
>> HI, CTK members,
>>
>> I'm trying to build CTK with newest versions of VTK, ITK and PythonQt. I
>> can build ctk successfully with Qt4.8.6, VTK6.2.0 and PythonQt3.0,but when
>> I provide ITK_DIR for my ITK4.7.1 build, an error happens. Although I have
>> Qt5 installed too, but in cmake for ctk build, moc and qmake are
>> specifically  set as .../Qt4.8.6/bin/moc and .../Qt4.8.6/bin/qmake. But it
>> seems moc from Q5 was used instead. I don't why. I'm using  CTK downloaded
>> on April 3, 2015, on Ubuntu14.04 64bit.
>>
>> ..../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:15:2:
>> error: #error "This file was generated using the moc from 5.4.1. It"
>>  #error "This file was generated using the moc from 5.4.1. It"
>>   ^
>> .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:16:2:
>> error: #error "cannot be used with the include files from this version of
>> Qt."
>>  #error "cannot be used with the include files from this version of Qt."
>>   ^
>> .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:17:2:
>> error: #error "(The moc has changed too much.)"
>>  #error "(The moc has changed too much.)"
>> ...
>>
>> Thanks,
>> Hongzhi
>>
>> _______________________________________________
>> Ctk-developers mailing list
>> Ctk-developers at public.kitware.com
>> http://public.kitware.com/mailman/listinfo/ctk-developers
>>
>>
>
>
> --
> +1 919 869 8849
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20150422/e38ef54b/attachment.html>


More information about the Ctk-developers mailing list