[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: FreeBSD: can't compile template generated by kapptemplate
From: Mathias Monnerville <mathias.monnerville () univ-paris4 ! fr>
Date: 2005-10-18 9:32:21
Message-ID: 20051018093221.GA2838 () sritux ! univ-paris4 ! fr
[Download RAW message or body]
On Tue, Oct 18, 2005 at 03:07:23AM -0500, Thomas Braxton wrote:
> Where is the object file for KMyAppIface? kmyappiface.o maybe?
> It looks like the file implementing KMyAppIface is missing from the link
> command.
You were right. I was missing kmyappiface_skep.o object for KMyAppIface.
It seems that the Makefile.am generated by kapptemplate does *not* work
out of the box on FreeBSD.
The problem is that kmyappiface.skel (generated from
kmyappiface.kidl by dcopidl2cpp) does not exist in the default
kapptemplate's distribution; instead kmyappiface_skel.cpp exists.
Is this a typo ?
On the other hand, kmyappiface.skel is given to the SOURCES primary (and
the compile process works fine) on my linux box... I don't understand.
Anyway, here is a patch to get it working:
--- Makefile.orig Tue Oct 18 11:10:50 2005
+++ Makefile.am Tue Oct 18 11:10:41 2005
@@ -15,18 +15,18 @@
kmyapp_LDFLAGS = $(KDE_RPATH) $(all_libraries)
# the libraries to link against.
-kmyapp_LDADD = $(LIB_KFILE) -lkdeprint
+kmyapp_LDADD = $(LIB_KFILE) -lpthread -lkdeprint
# which sources should be compiled for kmyapp
kmyapp_SOURCES = main.cpp kmyapp.cpp kmyappview.cpp \
- kmyapppref.cpp kmyappiface.skel
+ kmyapppref.cpp kmyappiface_skel.cpp
# these are the headers for your project
noinst_HEADERS = kmyapp.h kmyappview.h kmyapppref.h
# client stuff
kmyapp_client_LDFLAGS = $(KDE_RPATH) $(all_libraries)
-kmyapp_client_LDADD = $(LIB_KDECORE)
+kmyapp_client_LDADD = $(LIB_KDECORE) -lpthread
kmyapp_client_SOURCES = kmyapp_client.cpp
# let automoc handle all of the meta source files (moc)
Thanks for your help,
---
Mathias.
>> 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