<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Luis,<div><br></div><div>I had a similar problem some time back. It seemed that I was not using the right cmake version.</div><div><br></div><div>Which cmake version are you using?</div><div><br></div><div>Arnaud</div><div><br><div><div>On Apr 8, 2010, at 10:41 AM, Julien Finet wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Luis, <div><br></div><div>For information, on my machine, the file ui<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">_ctkDICOMListenerWidget.h is generated in </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">CTKDICOMWidgets_BINARY_DIR and not in </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">CTKDICOMWidgets_BINARY_DIR/Resources/UI</span></div> <div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Julien.<br></span></font><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 10:38 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;">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> <div><div></div><div class="h5">On Thu, Apr 8, 2010 at 10:35 AM, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>> wrote:<br> > More on this,<br> ><br> > The offending file is actually generated in<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 <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>> 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> >> Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/ctkDICOMListenerWidget.cxx.o<br> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:4:39:<br> >> error: ui_ctkDICOMListenerWidget.h: No such file or directory<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: In<br> >> constructor ‘ctkDICOMListenerWidget::ctkDICOMListenerWidget(QWidget*)’:<br> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:27:<br> >> error: ‘class ctkDICOMListenerWidgetPrivate’ has no member named<br> >> ‘setupUi’<br> >> make[5]: *** [Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/ctkDICOMListenerWidget.cxx.o]<br> >> Error 1<br> >> make[4]: *** [Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/all] Error 2<br> >> make[3]: *** [all] Error 2<br> >> make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error 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> </div></div></blockquote></div><br></div> <span><ATT00001..txt></span></blockquote></div><br></div></body></html>