Difference between revisions of "HowTos/Building Evolution Connector"

From Scalix Wiki
Jump to: navigation, search
(Checking out and building Scalix Connector for Evolution)
(gnome-common)
Line 19: Line 19:
 
Check out the gnome-common module from CVS and build it.
 
Check out the gnome-common module from CVS and build it.
  
First, define the CVSROOT:
+
Gnome.org has changed to SVN, so type:
  export CVSROOT=:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome
+
  svn co http://svn.gnome.org/svn/gnome-common/trunk gnome-common
Next, login to the repository (just hit return at the password prompt):
+
cvs login
+
Now, check out the gnome-common module:
+
cvs co gnome-common
+
 
Change to the gnome-common directory and call the autogen script:
 
Change to the gnome-common directory and call the autogen script:
 
  cd gnome-common; ./autogen.sh --prefix=/usr
 
  cd gnome-common; ./autogen.sh --prefix=/usr

Revision as of 11:12, 16 March 2007

Building Scalix Connector for Evolution from Source

This how-to describes how to build the Scalix Connector for Evolution from source. It assumes that you have working knowledge of Linux and the build tools. These instructions are for Fedora Core 5 and Evolution 2.6 but should apply with minor modifications to other distributions as well.

Prerequisites

Update your Fedora installation

If you did a Fedora install from CD it is a good idea to fully update your installation. The easiest way to do this is using yum:

yum update

This can take a while depending on how current your install was.

Evolution Development Packages

You need the evolution-devel and evolution-data-server-devel packages. Install those using yum:

yum install evolution-devel evolution-data-server-devel

gnome-common

Check out the gnome-common module from CVS and build it.

Gnome.org has changed to SVN, so type:

svn co http://svn.gnome.org/svn/gnome-common/trunk gnome-common

Change to the gnome-common directory and call the autogen script:

cd gnome-common; ./autogen.sh --prefix=/usr

After that install the macros:

sudo make install

Checking out and building Scalix Connector for Evolution

Go back up one directory to the place from where you checked out the gnome-common module.

Check out the evolution-scalix module:

cvs co evolution-scalix

Now call autogen.sh, which will create all the necessary makefiles for your system.

cd evolution-scalix ; ./autogen.sh --prefix=/usr

NOTE: In some cases, you may need to disable warnings: (the following was used to make it compile on a Debian system)

cd evolution-scalix ; ./autogen.sh --prefix=/usr --with-libdb=/usr --disable-more-warnings


IMPORTANT: the prefix value must be the same as the one you provided when calling autogen for gnome-common.

If everything goes well you will see a summary, listing install paths and other information. When you see that summary, everything is well and you can continue with building the connector:

make
Note: On SuSE 10.1 I had to modify evolution-scalix/addressbook/create-account.c,   line 77 to include an additional parameter:
Orig: gnome_program_init (PACKAGE, VERSION, LIBGNOME_MODULE, argc, argv, NULL);
New:  gnome_program_init (PACKAGE, VERSION, LIBGNOME_MODULE, argc, argv, NULL, NULL);

Once make finishes all that is left is installing the connector:

sudo make install

You now have the connector installed. Start Evolution and create a new account profile. Scalix should appear in the list of account types.

Creating your own RPM

If you want to create your own RPM, follow these steps:

First create a tarball from the source code:

make dist

This creates a evolution-scalix-<version>.tar.gz tarball in the current directory.

Now use rpmbuild to create the RPM:

sudo rpmbuild -tb evolution-scalix-<version>.tar.gz

Related Links