[Ctk-developers] Compilation error on: ui_ctkDICOMListenerWidget.h: No such file or directory
Julien Finet
julien.finet at kitware.com
Thu Apr 8 14:41:00 UTC 2010
Luis,
For information, on my machine, the file ui_ctkDICOMListenerWidget.h is
generated in CTKDICOMWidgets_BINARY_DIR and not in
CTKDICOMWidgets_BINARY_DIR/Resources/UI
Julien.
On Thu, Apr 8, 2010 at 10:38 AM, Luis Ibanez <luis.ibanez at kitware.com>wrote:
> The following patch seems to fix the problem:
>
>
> ===========================================================
>
> diff --git a/Libs/DICOM/Widgets/CMakeLists.txt
> b/Libs/DICOM/Widgets/CMakeLists.txt
> index 4c9670c..82a446e 100644
> --- a/Libs/DICOM/Widgets/CMakeLists.txt
> +++ b/Libs/DICOM/Widgets/CMakeLists.txt
> @@ -8,6 +8,7 @@ SET(KIT_export_directive "CTK_DICOM_WIDGETS_EXPORT")
>
> # Additional directories to include
> SET(KIT_include_directories
> + ${CTKDICOMWidgets_BINARY_DIR}/Resources/UI
> )
>
> # Source files
>
> ======================================================
>
>
> Does anyone has an objection to the patch ?
>
>
> BTW: Any hint of why is that this compilation errors
> was not reported by other builds in the Dashboard ?
>
>
> Thanks
>
>
> Luis
>
>
>
> ---------------------------------------------------------------
> On Thu, Apr 8, 2010 at 10:35 AM, Luis Ibanez <luis.ibanez at kitware.com>
> wrote:
> > More on this,
> >
> > The offending file is actually generated in
> > ./CTK-build/Libs/DICOM/Widgets/Resources/UI/ui_ctkDICOMListenerWidget.h
> >
> > but the directory:
> > ./CTK-build/Libs/DICOM/Widgets/Resources/UI
> >
> > doesn't seem to be added to a CMake command
> >
> > INCLUDE_DIRECTORIES()
> >
> > Any hint on what will be the proper location for
> > adding this command ?
> >
> >
> > Thanks
> >
> >
> > Luis
> >
> >
> > --------------------------------------------------------------
> > On Thu, Apr 8, 2010 at 10:23 AM, Luis Ibanez <luis.ibanez at kitware.com>
> wrote:
> >> I'm starting a build of CTK from scratch
> >> and ran into the following compilation below.
> >>
> >> It looks like a misconfiguration of a file that
> >> is supposed to be preprocessed by Qt.
> >>
> >> I will appreciate any advice on how to fix it,
> >>
> >> (This can be seen too in the Dashboard on the
> >> build from "eldorado.kitware").
> >>
> >>
> >>
> >> Thanks,
> >>
> >>
> >> Luis
> >>
> >>
> >> ------------------------------------------
> >> [ 20%] Built target QtMobility
> >> [ 40%] Built target DCMTK
> >> [ 60%] Built target CTK-Utilities
> >> [ 80%] Built target CTK-Configure
> >> [ 80%] Performing build step for 'CTK-build'
> >> [ 12%] Built target CTKCore
> >> [ 17%] Built target CTKCoreCxxTests
> >> [ 25%] Built target CTKWidgets
> >> [ 48%] Built target CTKDICOMCore
> >> [ 56%] Built target CTKDICOMCoreCxxTests
> >> [ 58%] Building CXX object
> >>
> Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/ctkDICOMListenerWidget.cxx.o
> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:4:39:
> >> error: ui_ctkDICOMListenerWidget.h: No such file or directory
> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:9:
> >> error: expected class-name before ‘{’ token
> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx: In
> >> constructor ‘ctkDICOMListenerWidget::ctkDICOMListenerWidget(QWidget*)’:
> >> /home/ibanez/src/CTK/Libs/DICOM/Widgets/ctkDICOMListenerWidget.cxx:27:
> >> error: ‘class ctkDICOMListenerWidgetPrivate’ has no member named
> >> ‘setupUi’
> >> make[5]: ***
> [Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/ctkDICOMListenerWidget.cxx.o]
> >> Error 1
> >> make[4]: *** [Libs/DICOM/Widgets/CMakeFiles/CTKDICOMWidgets.dir/all]
> Error 2
> >> make[3]: *** [all] Error 2
> >> make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error 2
> >> make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2
> >> make: *** [all] Error 2
> >>
> >
> _______________________________________________
> Ctk-developers mailing list
> Ctk-developers at commontk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20100408/a55f7f77/attachment.htm>
More information about the Ctk-developers
mailing list