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

List:       kde-devel
Subject:    Re: Help with kcontrol modules
From:       Frans Englich <frans.englich () telia ! com>
Date:       2004-03-23 14:29:49
Message-ID: 200403231529.49566.frans.englich () telia ! com
[Download RAW message or body]

On Monday 22 March 2004 17:30, Juan Luis Baptiste wrote:
> Hi,
>
> > I would guess some of the other lines are wrong. Could you post the whole
> > Makefile.am?
>
> I modified my Makefile.am based in the snippet you posted, it compiles but
> when linking it doesn't find any of the functions of the Qt library,
> undefined references everywhere. Here is a snippet of my Makefile.am:
>
> kcm_knetworkconf_la_SOURCES = kselectdistrodlg.ui kknownhostinfo.cpp
> kinterfaceupdowndlg.ui kaddknownhostdlg.ui kdetectdistrodlg.ui
> knetworkconfmodule.cpp kroutinginfo.cpp kreloadnetworkdlg.ui
> kaddressvalidator.cpp kdnsinfo.cpp knetworkinfo.cpp kadddevicedlg.ui
> kadddnsserverdlg.ui knetworkconfigparser.cpp knetworkinterface.cpp
> knetworkconfdlg.ui knetworkconf.cpp main.cpp kadddevicedlgextension.ui
> kadddevicedlgextension.ui.h knetworkconfiface.skel
> kcm_knetworkconf_la_LIBDADD   =  $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
> $(LIBSOCKET)

You shouldn't need to specify LIB_QT.

> EXTRA_DIST = main.cpp knetworkconf.cpp knetworkconf.h knetworkconf.desktop
> lo32-app-knetworkconf.png lo16-app-knetworkconf.png knetworkconfdlg.ui
> knetworkinterface.cpp knetworkinterface.h knetworkconfigparser.cpp
> knetworkconfigparser.h kadddnsserverdlg.ui kadddevicedlg.ui
> knetworkinfo.cpp knetworkinfo.h kdnsinfo.cpp kdnsinfo.h
> kaddressvalidator.cpp
> kaddressvalidator.h kreloadnetworkdlg.ui network_card.png kroutinginfo.cpp
> kroutinginfo.h knetworkconfmodule.cpp knetworkconfmodule.h
> kdetectdistrodlg.ui kaddknownhostdlg.ui kinterfaceupdowndlg.ui
> kadddnsserverdlg.ui.h kadddevicedlg.ui.h kaddknownhostdlg.ui.h
> kknownhostinfo.cpp kknownhostinfo.h kselectdistrodlg.ui
>
> kde_module_LTLIBRARIES = kcm_knetworkconf.la
>
> # set the include path for X, qt and KDE
> INCLUDES= $(all_includes)

(Cosmetic:  AM_CPPFLAGS = $(all_includes) )

>
> METASOURCES = AUTO
>
> # the library search path.
> kcm_knetworkconf_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -module
> -avoid-version -no-undefined

Shouldn't need KDE_RPATH

I don't know what your problem possibly could be. :|


			Frans

 
>> 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