[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: builddir different from source dir
From:       Alejandro Exojo <suy () kurly ! org>
Date:       2004-12-24 16:32:10
Message-ID: 200412241732.10965.suy () kurly ! org
[Download RAW message or body]

El Viernes, 24 de Diciembre de 2004 15:31, David Faure escribió:
> On Friday 24 December 2004 15:16, Alejandro Exojo wrote:
> > Is also available at webcvs:
> > http://cvs.sourceforge.net/viewcvs.py/kxmleditor/kxmleditor/part/
> > http://cvs.sourceforge.net/viewcvs.py/kxmleditor/kxmleditor/part/Makefile
> >.am?rev=1.41&view=log
>
> Two unrelated comments:
> 1) the LIBADD line could simply say $(LIB_KDEPRINT), that one includes all
> the rest. 2) The installation of kxmleditorpart.desktop is broken (e.g.
> with DESTDIR). Better use the condensed form:
> kde_services_DATA = kxmleditorpart.desktop
> (and completely remove [un]install-data-local)
> When is someone going to fix kdevelop? :/

OK, I changed this and also "lib_LTLIBRARIES" for "kde_modules_LTLIBRARIES". 
I've attached the patch with my changes.

> Other than that it looks fine indeed so I would suspect a broken
> admin/am_edit. Try updating it from KDE CVS HEAD?

Still fails. I did the following:

1. Unpack the sources
2. Patch the sources with the attached patch
3. make -f admin/Makefile.common
4. mkdir objdir && cd objdir
5. ../configure --disable-debug --enable-final --disable-rpath
6. make

It fails again because it doesn't uses the proper path:

(...)
/usr/share/qt3/bin/moc ../../part/kxeelementdialog.h -o 
kxeelementdialog.moc.cpp
/usr/share/qt3/bin/moc ../../part/kxmleditorpart.h -o kxmleditorpart.moc.cpp
/usr/share/qt3/bin/moc ../../part/kxespecprocinstrdialog.h -o 
kxespecprocinstrdialog.moc.cpp
/usr/share/qt3/bin/moc ../../part/kxechardatadialog.h -o 
kxechardatadialog.moc.cpp
/usr/share/qt3/bin/moc ../../part/kxe_viewelement.h -o kxe_viewelement.moc.cpp
/usr/share/qt3/bin/moc ../../part/kxmleditorfactory.h -o 
kxmleditorfactory.moc.cpp
/usr/share/qt3/bin/moc ../../part/kxeattributedialog.h -o 
kxeattributedialog.moc.cpp
/usr/share/qt3/bin/moc ../../part/kxedocument.h -o kxedocument.moc.cpp
/usr/share/qt3/bin/moc kxeattachdialogbase.h -o kxeattachdialogbase.moc
moc: kxeattachdialogbase.h: No such file
make[3]: *** [kxeattachdialogbase.moc] Error 1
make[3]: Leaving directory 
`/home/alex/debian/kxmleditor/upstream/kxmleditor-1.1.4/objdir/part'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/alex/debian/kxmleditor/upstream/kxmleditor-1.1.4/objdir/part'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/alex/debian/kxmleditor/upstream/kxmleditor-1.1.4/objdir'
make: *** [all] Error 2

What surprises me, is that the first invocations of moc, have the right path, 
but not the other ones. I'm using an admin/ dir from CVS HEAD, and automake 
1.7.

Again, thanks a lot for the comments!

-- 
Alex (a.k.a. suy) - GPG ID 0x0B8B0BC2
http://darkshines.net/ - Jabber ID: suy@bulmalug.net

["makefile.am.patch" (text/x-makefile)]

--- Makefile.am~	2004-12-24 16:48:44.000000000 +0100
+++ Makefile.am	2004-12-24 16:50:19.000000000 +0100
@@ -1,24 +1,17 @@
 ####### kdevelop will overwrite this part!!! (begin)##########
 
-lib_LTLIBRARIES =  libkxmleditorpart.la
+kde_module_LTLIBRARIES =  libkxmleditorpart.la
 
 libkxmleditorpart_la_SOURCES = kxesearchdialogbase.ui kxesearchdialog.cpp \
kxeprocinstrdialogbase.ui kxeprocinstrdialog.cpp kxespecprocinstrdialogbase.ui \
kxespecprocinstrdialog.cpp kxeelementdialogbase.ui kxeelementdialog.cpp \
kxeattributedialogbase.ui kxeattributedialog.cpp kxechardatadialogbase.ui \
kxechardatadialog.cpp kxeattachdialogbase.ui kxechoosestringdialogbase.ui \
kxechoosestringdialog.cpp kxefilenewdialog.cpp kxeconfiguration.cpp kxesettings.cpp \
kxetreeviewsettingspage.ui kxetreeviewsettings.cpp kxenewfilesettingspage.ui \
kxenewfilesettings.cpp kxeprintsettingspage.ui kxeprintsettings.cpp \
kxearchiveextssettingspage.ui kxearchiveextssettings.cpp kxetextviewsettingspage.ui \
kxetextviewsettings.cpp kxe_treeviewitem.cpp kxe_treeview.cpp kxe_viewelement.cpp \
kxe_viewattributes.cpp kxesyntaxhighlighter.cpp kxetexteditordialogbase.ui \
kxetexteditordialog.cpp actions.cpp qdom_add.cpp kxecommand.cpp commands_file.cpp \
commands_edit.cpp commands_insert.cpp kxmleditorpart.cpp kxmleditorfactory.cpp \
dcopiface_part_ro.skel dcopiface_part_ro.cpp kxedocument.cpp  
 libkxmleditorpart_la_LDFLAGS = -module $(all_libraries) -version-info 1:0:0
-libkxmleditorpart_la_LIBADD = $(LIB_KDEPRINT) $(LIB_KPARTS) $(LIB_KFILE) \
$(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) +libkxmleditorpart_la_LIBADD = $(LIB_KDEPRINT)
 
 SUBDIRS = pics icons
 
 EXTRA_DIST =  kxmleditorpartBrowseUI.rc kxmleditorpartEditUI.rc kxedocument.rc \
kxmleditorpart.desktop   
-
-install-data-local:
-	$(mkinstalldirs) $(kde_servicesdir)
-	$(INSTALL_DATA) $(srcdir)/kxmleditorpart.desktop \
                $(kde_servicesdir)/kxmleditorpart.desktop
-
-uninstall-local:
-	-rm -f $(kde_servicesdir)/kxmleditorpart.desktop
-	-rmdir $(kde_servicesdir)
+kde_services_DATA = kxmleditorpart.desktop
 
 ####### kdevelop will overwrite this part!!! (end)############
 # this 10 paths are KDE specific. Use them:



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic