"klash_part.cpp:542:26: error: klash_part.moc: No such file or directory"

The problem is that automake is not very smart when it comes own to 
dependencies on autogenerated files. The attached patch makes automake behave 
by forcing it to do things in the right order.
--- gnash/plugin/klash/Makefile.am.ark	2006-03-05 13:23:01.000000000 +0100
+++ gnash/plugin/klash/Makefile.am	2006-03-05 13:24:26.000000000 +0100
@@ -25,7 +25,7 @@
 
 kde_module_LTLIBRARIES= libklashpart.la
 
-libklashpart_la_SOURCES= klash_part.cpp
+libklashpart_la_SOURCES= klash_part.cpp klash_part.moc
 libklashpart_la_LDFLAGS= -avoid-version $(all_libraries) $(KDE_RPATH)
 libklashpart_la_LIBADD=
 
@@ -62,3 +62,4 @@
 klash_part.moc: $(srcdir)/klash_part.h
 	$(MOC) $(srcdir)/klash_part.h -o klash_part.moc
 
+BUILT_SOURCES = klash_part.moc
--- gnash/plugin/klash/klash_part.cpp.ark	2006-03-05 13:24:30.000000000 +0100
+++ gnash/plugin/klash/klash_part.cpp	2006-03-05 13:24:45.000000000 +0100
@@ -538,5 +538,3 @@
 WId KlashView::embedId () {
     return m_embed->embeddedWinId ();
 }
-
-#include "klash_part.moc"
_______________________________________________
Gnash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash

Reply via email to