Problems with Makefiles

Emmanuel DENIE emd at teamlog.fr
Mon Dec 10 13:12:57 GMT 2001


Pascal Francq wrote:

>Hi,
>I have a problem with the makefiles in a project created by KDevelop. You 
>will find in attachment the "Makefile.am". The problem is that I have to add 
>to the linker object libraries that are in subdirs to make it link correctly. 
>But KDevelop already has added this libraries in the "Makefile.am". So, I 
>don't understand why I have to add them once again. Perhaps, something is 
>missing in my Makefile.am
>
>
>------------------------------------------------------------------------
>
>####### kdevelop will overwrite this part!!! (begin)##########
>bin_PROGRAMS = kgalileicenter
>kgalileicenter_SOURCES = qaddnewdocument.ui qaddjudgement.ui qgxmlview.cpp kgalileicenterdocview.cpp kgalileicenterdocsview.cpp qgroupingalgo.ui qaddnewuser.ui kgalileisubprofileview.cpp kgalileicenterprofileview.cpp kgalileimainprofileview.cpp kgalileiprofileview.cpp qloadonedoc.ui kgalileicentergroupsview.cpp kgalileicenteruserview.cpp qconnectmysql.ui kgalileicenterview.cpp kgalileicenterdoc.cpp kgalileicenter.cpp main.cpp 
>kgalileicenter_LDADD   = ./r/rstd/librstd.a ./r/rmysql/librmysql.a ./r/rio/librio.a ./r/rxml/librxml.a ./galilei/gdocs/libgdocs.a ./galilei/libgalilei.a ./galilei/ggroups/libggroups.a ./galilei/glangs/libglangs.a ./galilei/gprofiles/libgprofiles.a ./galilei/gsessions/libgsessions.a ./galilei/gsessionsmysql/libgsessionsmysql.a ./r/rinter/librinter.a ./galilei/ginfos/libginfos.a ./galileiinterface/filters/libfilters.a ./galileiinterface/urlmanagers/liburlmanagers.a ./r/rga/librga.a ./qtwidgets/rga/librga.a /usr/lib/libmysqlclient.so  ${GCENTER}/galilei/gsessions/libgsessions.a  ${GCENTER}/galilei/gprofiles/libgprofiles.a ${GCENTER}/galilei/glangs/libglangs.a ${GCENTER}/galilei/glib.o ${GCENTER}/galilei/gsessions/libgsessions.a ${GCENTER}/galilei/gdocs/libgdocs.a ${GCENTER}/galilei/ggroups/libggroups.a ${GCENTER}/r/rinter/librinter.a ${GCENTER}/r/rxml/librxml.a ${GCENTER}/r/rio/librio.a ${GCENTER}/galilei/ginfos/libginfos.a ${GCENTER}/qtwidgets/rga/librga.a ${GCENTER}/r/rga/librga.a ${GCENTER}/galileiinterface/filters/libfilters.a ${GCENTER}/r/rmysql/librmysql.a $(LIB_KFILE) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET)
>
>SUBDIRS = r galilei galileiinterface qtwidgets 
>
>EXTRA_DIST = main.cpp kgalileicenter.cpp kgalileicenter.h kgalileicenterdoc.cpp kgalileicenterdoc.h kgalileicenterview.cpp kgalileicenterview.h kgalileicenterui.rc kgalileicenter.desktop lo32-app-kgalileicenter.png lo16-app-kgalileicenter.png qconnectmysql.ui kgalileicenteruserview.h kgalileicenteruserview.cpp kgalileicentergroupsview.h kgalileicentergroupsview.cpp qloadonedoc.ui qlistviewitemtype.h kgalileiprofileview.cpp kgalileiprofileview.h kgalileimainprofileview.cpp kgalileimainprofileview.h kgalileicenterprofileview.h kgalileicenterprofileview.cpp kgalileisubprofileview.cpp kgalileisubprofileview.h qaddnewuser.ui qgroupingalgo.ui kgalileicenterdocsview.cpp kgalileicenterdocsview.h kgalileicenterdocview.cpp kgalileicenterdocview.h qgxmlview.cpp qgxmlview.h qaddjudgement.ui qaddnewdocument.ui 
>
>install-data-local:
>	$(mkinstalldirs) $(kde_appsdir)/Applications/
>	$(INSTALL_DATA) $(srcdir)/kgalileicenter.desktop $(kde_appsdir)/Applications/kgalileicenter.desktop
>	$(mkinstalldirs) $(kde_icondir)/locolor/32x32/apps/
>	$(INSTALL_DATA) $(srcdir)/lo32-app-kgalileicenter.png $(kde_icondir)/locolor/32x32/apps/kgalileicenter.png
>	$(mkinstalldirs) $(kde_icondir)/locolor/16x16/apps/
>	$(INSTALL_DATA) $(srcdir)/lo16-app-kgalileicenter.png $(kde_icondir)/locolor/16x16/apps/kgalileicenter.png
>
>uninstall-local:
>	-rm -f $(kde_appsdir)/Applications/kgalileicenter.desktop
>	-rm -f $(kde_icondir)/locolor/32x32/apps/kgalileicenter.png
>	-rm -f $(kde_icondir)/locolor/16x16/apps/kgalileicenter.png
>
>####### kdevelop will overwrite this part!!! (end)############
># this 10 paths are KDE specific. Use them:
># kde_htmldir       Where your docs should go to. (contains lang subdirs)
># kde_appsdir       Where your application file (.kdelnk) should go to.
># kde_icondir       Where your icon should go to.
># kde_minidir       Where your mini icon should go to.
># kde_datadir       Where you install application data. (Use a subdir)
># kde_locale        Where translation files should go to.(contains lang subdirs)
># kde_cgidir        Where cgi-bin executables should go to.
># kde_confdir       Where config files should go to.
># kde_mimedir       Where mimetypes should go to.
># kde_toolbardir    Where general toolbar icons should go to.
># kde_wallpaperdir  Where general wallpapers should go to.
>
># set the include path for X, qt and KDE
>INCLUDES= $(all_includes)
>
>METASOURCES = AUTO
>
># the library search path.
>kgalileicenter_LDFLAGS = $(all_libraries) $(KDE_RPATH)
>
>rcdir = $(kde_datadir)/kgalileicenter
>rc_DATA = kgalileicenterui.rc
>
>messages: rc.cpp
>	LIST=`find . -name \*.h -o -name \*.hh -o -name \*.H -o -name \*.hxx -o -name \*.hpp -o -name \*.cpp -o -name \*.cc -o -name \*.cxx -o -name \*.ecpp -o -name \*.C`; \
>	if test -n "$$LIST"; then \
>	 $(XGETTEXT) $$LIST -o $(podir)/kgalileicenter.pot; \
>	fi
>
hi, did you indicate in "option project" the librairies you want to use 
in "linker option"?
perhaps the problem is here
have a lot of fun
emmanuel



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list