It depends if it is a bug in CMake or if it's a new feature :-) <div><div>j.<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 11:26 AM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks Julien,<br>
<br>
so,<br>
<br>
is this something to be fixed in CTK ?<br>
<br>
or<br>
<br>
is this something to be fixed in the development version of CMake ?<br>
<br>
<br>
    Thanks<br>
<br>
<br>
         Luis<br>
<br>
<br>
-------------------------------------------------------------------------------<br>
<div><div></div><div class="h5">On Thu, Apr 8, 2010 at 11:19 AM, Julien Finet <<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>> wrote:<br>
> I'm using CMake 2.8.1... and it works for me... Maybe we should fix the pb<br>
> for more recent CMake versions.<br>
> J.<br>
><br>
> On Thu, Apr 8, 2010 at 11:09 AM, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>
> wrote:<br>
>><br>
>> I'm using a CMake built out of the CMake-git repository<br>
>> as it was on March 25th 2010 at 11:01am Eastern.<br>
>><br>
>><br>
>>             Is that too new ? or too old ?<br>
>><br>
>> What is the recommended version of CMake to use ?<br>
>><br>
>><br>
>> If there is a requirement for a specific version of CMake,<br>
>> we probably should put that in the top CMakeLists.txt file,<br>
>><br>
>> The current one says:<br>
>><br>
>>     CMAKE_MINIMUM_REQUIRED(VERSION 2.8)<br>
>><br>
>><br>
>><br>
>> It looks like we are missing a Wiki page with build<br>
>> instructions....<br>
>><br>
>><br>
>><br>
>>      Thanks for any hint,<br>
>><br>
>><br>
>>            Luis<br>
>><br>
>><br>
>> ---------------------------------------------------<br>
>> On Thu, Apr 8, 2010 at 11:01 AM, Arnaud Gelas<br>
>> <<a href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>> wrote:<br>
>> > Hi Luis,<br>
>> > I had a similar problem some time back. It seemed that I was not using<br>
>> > the<br>
>> > right cmake version.<br>
>> > Which cmake version are you using?<br>
>> > Arnaud<br>
>> > On Apr 8, 2010, at 10:41 AM, Julien Finet wrote:<br>
>> ><br>
>> > Luis,<br>
>> > For information, on my machine, the file ui_ctkDICOMListenerWidget.h is<br>
>> > generated in CTKDICOMWidgets_BINARY_DIR and not<br>
>> > in CTKDICOMWidgets_BINARY_DIR/Resources/UI<br>
>> > Julien.<br>
>> ><br>
>> > On Thu, Apr 8, 2010 at 10:38 AM, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> The following patch seems to fix the problem:<br>
>> >><br>
>> >><br>
>> >> ===========================================================<br>
>> >><br>
>> >> diff --git a/Libs/DICOM/Widgets/CMakeLists.txt<br>
>> >> b/Libs/DICOM/Widgets/CMakeLists.txt<br>
>> >> index 4c9670c..82a446e 100644<br>
>> >> --- a/Libs/DICOM/Widgets/CMakeLists.txt<br>
>> >> +++ b/Libs/DICOM/Widgets/CMakeLists.txt<br>
>> >> @@ -8,6 +8,7 @@ SET(KIT_export_directive "CTK_DICOM_WIDGETS_EXPORT")<br>
>> >><br>
>> >>  # Additional directories to include<br>
>> >>  SET(KIT_include_directories<br>
>> >> +  ${CTKDICOMWidgets_BINARY_DIR}/Resources/UI<br>
>> >>   )<br>
>> >><br>
>> >>  # Source files<br>
>> >><br>
>> >> ======================================================<br>
>> >><br>
>> >><br>
>> >> Does anyone has an objection to the patch ?<br>
>> >><br>
>> >><br>
>> >> BTW:  Any hint of why is that this compilation errors<br>
>> >> was not reported by other builds in the Dashboard ?<br>
>> >><br>
>> >><br>
>> >>      Thanks<br>
>> >><br>
>> >><br>
>> >>           Luis<br>
>> >><br>
>> >><br>
>> >><br>
>> >> ---------------------------------------------------------------<br>
>> >> On Thu, Apr 8, 2010 at 10:35 AM, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>
>> >> wrote:<br>
>> >> > More on this,<br>
>> >> ><br>
>> >> > The offending file is actually generated in<br>
>> >> ><br>
>> >> > ./CTK-build/Libs/DICOM/Widgets/Resources/UI/ui_ctkDICOMListenerWidget.h<br>
>> >> ><br>
>> >> > but the directory:<br>
>> >> > ./CTK-build/Libs/DICOM/Widgets/Resources/UI<br>
>> >> ><br>
>> >> > doesn't seem to be added to a CMake command<br>
>> >> ><br>
>> >> >   INCLUDE_DIRECTORIES()<br>
>> >> ><br>
>> >> > Any hint on what will be the proper location for<br>
>> >> > adding this command ?<br>
>> >> ><br>
>> >> ><br>
>> >> >    Thanks<br>
>> >> ><br>
>> >> ><br>
>> >> >         Luis<br>
>> >> ><br>
>> >> ><br>
>> >> > --------------------------------------------------------------<br>
>> >> > On Thu, Apr 8, 2010 at 10:23 AM, Luis Ibanez<br>
>> >> > <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>
>> >> > wrote:<br>
>> >> >> I'm starting a build of CTK from scratch<br>
>> >> >> and ran into the following compilation below.<br>
>> >> >><br>
>> >> >> It looks like a misconfiguration of a file that<br>
>> >> >> is supposed to be preprocessed by Qt.<br>
>> >> >><br>
>> >> >> I will appreciate any advice on how to fix it,<br>
>> >> >><br>
>> >> >> (This can be seen too in the Dashboard on the<br>
>> >> >> build from "eldorado.kitware").<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >>      Thanks,<br>
>> >> >><br>
>> >> >><br>
>> >> >>           Luis<br>
>> >> >><br>
>> >> >><br>
>> >> >> ------------------------------------------<br>
>> >> >> [ 20%] Built target QtMobility<br>
>> >> >> [ 40%] Built target DCMTK<br>
>> >> >> [ 60%] Built target CTK-Utilities<br>
>> >> >> [ 80%] Built target CTK-Configure<br>
>> >> >> [ 80%] Performing build step for 'CTK-build'<br>
>> >> >> [ 12%] Built target CTKCore<br>
>> >> >> [ 17%] Built target CTKCoreCxxTests<br>
>> >> >> [ 25%] Built target CTKWidgets<br>
>> >> >> [ 48%] Built target CTKDICOMCore<br>
>> >> >> [ 56%] Built target CTKDICOMCoreCxxTests<br>
>> >> >> [ 58%] Building CXX object<br>
>> >> >><br>
>> >> >><br>
>> >> >> Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/ctkDICOMListenerWidget.cxx.o<br>
>> >> >><br>
>> >> >><br>
>> >> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:4:39:<br>
>> >> >> error: ui_ctkDICOMListenerWidget.h: No such file or directory<br>
>> >> >><br>
>> >> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:9:<br>
>> >> >> error: expected class-name before ‘{’ token<br>
>> >> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:<br>
>> >> >> In<br>
>> >> >> constructor<br>
>> >> >> ‘ctkDICOMListenerWidget::ctkDICOMListenerWidget(QWidget*)’:<br>
>> >> >><br>
>> >> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:27:<br>
>> >> >> error: ‘class ctkDICOMListenerWidgetPrivate’ has no member named<br>
>> >> >> ‘setupUi’<br>
>> >> >> make[5]: ***<br>
>> >> >><br>
>> >> >> [Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/ctkDICOMListenerWidget.cxx.o]<br>
>> >> >> Error 1<br>
>> >> >> make[4]: *** [Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/all]<br>
>> >> >> Error 2<br>
>> >> >> make[3]: *** [all] Error 2<br>
>> >> >> make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error<br>
>> >> >> 2<br>
>> >> >> make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2<br>
>> >> >> make: *** [all] Error 2<br>
>> >> >><br>
>> >> ><br>
>> >> _______________________________________________<br>
>> >> Ctk-developers mailing list<br>
>> >> <a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
>> >> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
>> ><br>
>> > <ATT00001..txt><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>