4928d51eca
Due to bitrot the Akonadi backend and KWallet support code no longer worked. Moved the common code for KApplication initialization into libsyncevolution's SyncContext::initMain() and fixed autotools rules. The old code always tried to contact an X server (default constructor of KApplication). That doesn't seem to be necessary and is avoided now. Even better might be to skip KApplication entirely and instead use QCoreApplication and KComponentData, as suggested by http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKApplication.html KAboutData was incorrectly passed the address of a string pointer, not the pointer itself. Testing the Akonadi backend in client-test failed because client-test always overwrites the "backend" value with "Test_kde_[contact/event/..]._[1/2]". Now this special case is detected. The backend then uses the first resp. second resource that it finds.
43 lines
1.6 KiB
Text
43 lines
1.6 KiB
Text
Getting started with Akonadi on Debian testing:
|
|
aptitude install libakonadi-dev akonadi-server \
|
|
libqt4-dev kdepim-runtime \
|
|
akonadiconsole \
|
|
kdepimlibs5-dev
|
|
|
|
Controlling Akonadi server:
|
|
akonadictl start/stop/restart
|
|
|
|
Debugging Akonadi:
|
|
akonadiconsole
|
|
|
|
Configuring without Evolution and with Akonadi:
|
|
<path>/syncevolution/configure --with-synthesis-src=<path>/libsynthesis \
|
|
CFLAGS="-g -Wall -Werror -Wno-unknown-pragmas" \
|
|
CXXFLAGS="-g -Wall -Werror -Wno-unknown-pragmas" \
|
|
--disable-shared --enable-static \
|
|
--enable-libcurl \
|
|
--enable-unit-tests --enable-integration-tests \
|
|
--disable-ecal --disable-ebook --disable-libsoup \
|
|
--enable-akonadi --enable-kwallet
|
|
|
|
This creates src/syncevolution and src/client-test which can be run under
|
|
a debugger directly.
|
|
|
|
Query databases:
|
|
syncevolution
|
|
|
|
Configuring syncevolution for contacts with Akonadi as backend:
|
|
syncevolution --configure --source-property sync=none \
|
|
--sync-property username=... \
|
|
--sync-property password=... \
|
|
scheduleworld
|
|
syncevolution --configure --source-property sync=two-way \
|
|
--source-property type=kde-contacts \
|
|
--source-property evolutionsource=akonadi:?... \
|
|
scheduleworld addressbook
|
|
|
|
Initial run:
|
|
syncevolution --sync slow scheduleworld addressbook
|
|
|
|
All following runs:
|
|
syncevolution scheduleworld
|