[ 30%] Building CXX object kplayer/CMakeFiles/kplayer.dir/kplayerwidget.o
/usr/lib/icecc/bin/c++ -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -fPIC -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -DDEBUG -g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline -I/opt/kde4/include -I/usr/lib/qt4/include -I/usr/lib/qt4/include/Qt -I/usr/lib/qt4/mkspecs/default -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/Qt3Support -I/usr/lib/qt4/include/QtAssistant -I/usr/lib/qt4/include/QtDesigner -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtOpenGL -I/usr/lib/qt4/include/QtSql -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtSvg -I/usr/lib/qt4/include/QtScript -I/usr/lib/qt4/include/QtUiTools -I/usr/lib/qt4/include/QtTest -I/usr/lib/qt4/include/QtDBus -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -o kplayer/CMakeFiles/kplayer.dir/kplayerwidget.o -c /home/fwang/kde4-kplayer/BUILD/kplayer-0.7/kplayer/kplayerwidget.cpp
/home/fwang/kde4-kplayer/BUILD/kplayer-0.7/kplayer/kplayerwidget.cpp:28:29: error: kplayerwidget.moc: No such file or directory
Logged In: YES
user_id=137121
Originator: NO
Do you have moc-qt4 installed? What happens if you run moc-qt4 from the command line?
On Debian you need libqt4-dev package (among many others), which contains the moc-qt4 program that converts .ui files to .moc.
Failing that, please post the full output from cmake and make.
Logged In: YES
user_id=2180659
Originator: NO
I can confirm this problem. I only get it when doing an out-of-source build. In-source builds work fine.
Logged In: YES
user_id=164667
Originator: YES
well. %cmake_kde macro in Mandriva is expanded as:
mkdir build
cd build
cmake ..
And it works fine with other kde4 apps. There might be some problem in CMakeLists.txt, or adding something like:
INCLUDE_DIRECTORIES(BEFORE ${PROJET_SOURCE_DIR})