Re: [Evolution-hackers] [Evolution] [Not subscribed to the list] Calender compiling from git issue



Am Sonntag, den 12.09.2010, 12:16 +0200 schrieb Ralf Mardorf:
> Hi Paul Smith :)
> 
> Im using your http://mad-scientist.us/Makefile to build Evolution from
> git for the audio distro 64 Studio 3.3 alpha amd64, based on Ubuntu
> Karmic.
> 
> And perhaps hi list :), maybe my request is allowed to get through the
> list, without being subscribed.
> 
> All optional packages are disabled:
> 
> ENABLE_libgweather :=	n
> ENABLE_exchange :=	n
> ENABLE_mapi :=		n
> ENABLE_webcal :=	n
> ENABLE_openchange :=	n
> 
> I build those dependencies ...
> 
> atk_1.30.0-1_amd64.deb
> glib_2.25.15-1_amd64.deb (+ dummy packages
> libglib2.0-0_2.25.15-1_all.deb and libglib2.0-dev_2.25.15-1_all.deb)
> gtk+_2.20.1-1_amd64.deb
> libgdata_0.6.3-1_amd64.deb
> 
> ... to build gtkhtml, evolution-data-server and evolution.
> 
> I had some issues with glib. First I build it to /usr/local and got
> issues because some .la wer not found in /usr, then I build it to /usr
> and the .la were not found in /usr/local, so I add links.
> 
> Until now I couldn't solve this issue:
> 
> root 64studio:/usr/src/evolution-git# make -j2
> [snip]
> make[5]: Entering directory
> `/usr/src/evolution-git/obj/evolution-data-server/calendar/libedata-cal'
>   CC     libedata_cal_1_2_la-e-data-cal-enumtypes.lo
>   CC     libedata_cal_1_2_la-e-cal-backend.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-cache.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-factory.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-intervaltree.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-sexp.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-sync.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-util.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-store.lo
>   CC     libedata_cal_1_2_la-e-cal-backend-file-store.lo
>   CC     libedata_cal_1_2_la-e-data-cal.lo
>   CC     libedata_cal_1_2_la-e-data-cal-view.lo
>   CC     e_calendar_factory-e-data-cal-factory.o
>   CC     e_calendar_factory-e-data-cal-migrate.o
>   CC     e_calendar_factory-e-cal-backend-loader-factory.o
>   CC     test_e_sexp-e-cal-backend-sexp.o
>   CC     test_intervaltree-test-intervaltree.o
> ../../../../evolution-data-server/calendar/libedata-cal/e-cal-backend-sexp.c:27:47: error: libedataserver/e-data-server-util.h: No such file or directory
> In file included
> from ../../../../evolution-data-server/calendar/libedata-cal/e-cal-backend-sexp.h:30,
> 
> from ../../../../evolution-data-server/calendar/libedata-cal/e-cal-backend-sexp.c:30:
> ../../../../evolution-data-server/calendar/libedata-cal/e-cal-backend.h:26:35: error: libedataserver/e-list.h: No such file or directory
> ../../../../evolution-data-server/calendar/libedata-cal/e-cal-backend.h:27:37: error: libedataserver/e-source.h: No such file or directory
>   CC     test_intervaltree-e-cal-backend-intervaltree.o
> In file included

I recently built the gnome-2-32 version and had the above compile error
as well. I fixed it with the following patch, but I think, it is fixed
in the latest commits in the master and gnome-2-32 branches. Just pull
the latest:

===================================================================
evolution-data-server/calendar/libedata-cal/e-cal-backend-sexp.c:27:47:
error: libedataserver/e-data-server-util.h: No such file or directory

From: Thomas Mittelstaedt <tmstaedt t-mittelstaedt de>


---

 calendar/backends/file/Makefile.am |    3 +++
 calendar/libedata-cal/Makefile.am  |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/calendar/backends/file/Makefile.am
b/calendar/backends/file/Makefile.am
index c672157..b2e2fdf 100644
--- a/calendar/backends/file/Makefile.am
+++ b/calendar/backends/file/Makefile.am
@@ -44,6 +44,9 @@ test_interval_searches_LDADD = \
 
 test_interval_searches_CPPFLAGS = \
 	$(AM_CPPFLAGS)			\
+	-I$(top_srcdir)			\
+	-I$(top_builddir)		\
+	-I$(top_srcdir)/calendar	\
 	-I$(top_builddir)/calendar	\
 	$(EVOLUTION_CALENDAR_CFLAGS)	\
 	-DTEST_QUERY_RESULT=1
diff --git a/calendar/libedata-cal/Makefile.am
b/calendar/libedata-cal/Makefile.am
index 0f33c68..ed2f978 100644
--- a/calendar/libedata-cal/Makefile.am
+++ b/calendar/libedata-cal/Makefile.am
@@ -121,6 +121,7 @@ e_calendar_factory_LDADD =						\
 test_e_sexp_SOURCES = e-cal-backend-sexp.c e-cal-backend-sexp.h
 test_e_sexp_CPPFLAGS = \
 	$(AM_CPPFLAGS)				\
+	-I$(top_srcdir)				\
 	-I$(top_srcdir)/calendar		\
 	-I$(top_builddir)/calendar		\
 	$(EVOLUTION_CALENDAR_CFLAGS)		\

===================================================================

I usually install evolution into /opt/evo. To make sure the right
libraries are linked in, i.e. not the ones from the existing evolution
2.30 installation in /usr, I use the LDFLAGS=-L/opt/evo/lib when
generating the configure script via:

=========================================================
1) Go to the source directory and execute autogen.sh with
NOCONFIGURE=yes:
  PKG_CONFIG_PATH=/opt/evo/lib/pkgconfig/  CC='ccache gcc' CFLAGS=-g
LDFLAGS=-L/opt/evo/lib  NOCONFIGURE=yes bash  ./autogen.sh
--prefix='/opt/evo' --disable-deprecated-warning-flags
2) Go to the object directory and do the autogen without NOCONFIGURE:
   PKG_CONFIG_PATH=/opt/evo/lib/pkgconfig/  CC='ccache gcc' CFLAGS=-g
LDFLAGS=-L/opt/evo/lib
bash /home/tom/src/evolution/evolution/autogen.sh  --prefix='/opt/evo'
--disable-deprecated-warning-flags

Important: I needed the "-L"-flag, so that /opt/evo/lib is searched
before the standard system libraries, which happen to contain evolution
2.30 stuff!
=========================================================


> I'm running make as root, because the user can't just run sudo, but
> has
> to run su for my install.
> Any help is welcome.
> 

You can do a make as normal user and then run sudo make install.

Hope that helps.

-- 
thomas




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]