Compiling Evolution EWS for Ubuntu 12.04

As my employer uses Exchange mail server, I need a way to access my mail from my Ubuntu box. The current Evolution exchange connector is quite outdated, so I prefer to use the emerging Evolution EWS connector. It can access the addressbook, the calendar and even the MAIL! 😀 Since it’s emerging it requires frequent recompilation. After installing the required tools and libs, it still doesn’t compile on the Ubuntu 12.04, for the several deprecated API calls it makes. So I came up with the following script to compile it and prepare a nice little package from it.

sudo rm -r evolution-ews ; git clone -b gnome-3-2
sed '/-Wall/ a 
t-Wno-missing-field-initializers' evolution-ews/ |
AC_CHECK_LIB(gthread-2.0, g_thread_init)' >evolution-ews/
mv evolution-ews/ evolution-ews/
cd evolution-ews

./ --prefix=/usr --disable-maintainer-mode
sudo checkinstall --pkgname=evolution-ews --pkgversion=3.2 --pkgrelease=git -requires `evolution (>= 3.2), evolution (<<3.3)` && sudo mv *.deb ..
cd ..

6 thoughts on “Compiling Evolution EWS for Ubuntu 12.04

    1. Are you sure you installed all the required libraries?
      I used the script on three different machines without any problems.
      Send me your error log and I will look into it!

  1. Hello!
    I’d like to try (I use the DAVMAIL), how do I download the script (I use Ubuntu 11.10)?
    You have the list of packages and dependencies?

    Thank you,

  2. This script was for Ubuntu 12.04, as of 12.10 and later the package has been fixed and can easily be installed straight from the repository. It was a hack and was only needed temporarily. I’m glad if it helped a few fellows!

    The only reason the post is still here, is because it might contain something useful for someone.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.