Qt KDE integration in kdereview.

Olivier Goffart ogoffart at kde.org
Thu Nov 5 07:53:52 GMT 2009


Le Thursday 05 November 2009, Christoph Feck a écrit :
> On Tuesday 03 November 2009 16:55:51 Olivier Goffart wrote:
> > I have just submitted a new plugin in kdereview:  qguiplatformplugin_kde
> 
> I had to apply the following change to make (re)building work, not sure if
>  it shouldn't use automoc stuff...
> 
> Otherwise it may fail with this error:
> 
> make[2]: *** No rule to make target `qguiplatformplugin_kde.moc', needed by
> `qguiplatformplugin_kde/CMakeFiles/kde.dir/qguiplatformplugin_kde.o'.


This is strange, because the class that contains the Q_OBJECT macro is in 
qguiplatformplugin_kde.cpp
not in the header (which is copied from Qt, so the moc should not be run on 
it)

> Index: CMakeLists.txt
> ===================================================================
> --- CMakeLists.txt      (Revision 1044950)
> +++ CMakeLists.txt      (Arbeitskopie)
> @@ -10,7 +10,7 @@
>  include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
> ${KDE4_INCLUDES})
> 
>  set(kde_SOURCES  qguiplatformplugin_kde.cpp)
> -qt4_generate_moc(qguiplatformplugin_kde.cpp qguiplatformplugin_kde.moc)
> +qt4_generate_moc(qguiplatformplugin_p.h qguiplatformplugin_kde.moc)
> 
>  add_library (kde SHARED ${kde_SOURCES})
> 





More information about the kde-core-devel mailing list