Only works on second time

William A. Hoffman billlist at nycap.rr.com
Fri Apr 14 19:10:54 CEST 2006


At 12:21 PM 4/14/2006, David Faure wrote:
>Hi,
>
>I got this error while compiling kdelibs4_snapshot:
>
>Scanning dependencies of target kcm_phonon
>Building CXX object phonon/kcm/CMakeFiles/kcm_phonon.dir/main.o
>In file included from /devel/kde/src/4/kdelibs4_snapshot/phonon/kcm/main.cpp:26:
>/devel/kde/src/4/kdelibs4_snapshot/phonon/kcm/outputdevicechoice2.h:23:36: ui_outputdevicechoice2.h: No such file or directory
>make[2]: *** [phonon/kcm/CMakeFiles/kcm_phonon.dir/main.o] Error 1
>make[1]: *** [phonon/kcm/CMakeFiles/kcm_phonon.dir/all] Error 2
>make: *** [all] Error 2
>makeobj[0]: Leaving directory `/devel/kde/build/4/kdelibs4_snapshot'
>
>But doing make again fixed it:
>
>-obelix- dfaure 18:08 /devel/kde/build/4/kdelibs4_snapshot>cd phonon/kcm
>-obelix- dfaure 18:15 /devel/kde/build/4/kdelibs4_snapshot/phonon/kcm>make
>makeobj[0]: Entering directory `/devel/kde/build/4/kdelibs4_snapshot/phonon/kcm'
>Scanning dependencies of target kcm_phonon
>Generating ui_outputdevicechoice2.h
>Building CXX object phonon/kcm/CMakeFiles/kcm_phonon.dir/main.o
>Building CXX object phonon/kcm/CMakeFiles/kcm_phonon.dir/outputdevicechoice2.o
>Linking CXX shared module ../../lib/kcm_phonon.so
>makeobj[0]: Leaving directory `/devel/kde/build/4/kdelibs4_snapshot/phonon/kcm'

I think that ui_outputdevicechoice2.h needs to be in the sources for the target.
If it is a generated header it should be in the list of sources for some target.
Maybe kde4_add_ui_files(kcmphonon_SRCS outputdevicechoice2.ui) should just add
the output files to the SRCS passed into the macro.

Can you try adding ui_outputdevicechoice2.h  to the sources and see if it fixes
the problem?

-Bill



More information about the Kde-buildsystem mailing list