However, tdepim fails with:
[ 82%] Building CXX object
kresources/caldav/CMakeFiles/kcal_caldav-shared.dir/resource.cpp.o
cd /build/src/build/kresources/caldav &&
/usr/bin/c++
-Dkcal_caldav_shared_EXPORTS -D_FILE_OFFSET_BITS=64
-DHAVE_CONFIG_H
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC
-I/build/src/build/kresources/caldav -I/build/src/tdepim
-I/build/src/tdepim/libtdepim -I/opt/trinity/include
-I/opt/tqt3/include
-I/opt/trinity/include/tqt -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
-I/usr/include/libcaldav -o
CMakeFiles/kcal_caldav-shared.dir/resource.cpp.o
-c /build/src/tdepim/kresources/caldav/resource.cpp
In file included from
/build/src/tdepim/kresources/caldav/reader.h:20:0,
from
/build/src/tdepim/kresources/caldav/resource.cpp:39:
/build/src/tdepim/kresources/caldav/job.h:26:24: fatal
error: caldav.h: No such
file or directory
compilation terminated.
make[2]: ***
[kresources/caldav/CMakeFiles/kcal_caldav-shared.dir/resource.cpp.o]
Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: ***
[kresources/caldav/CMakeFiles/kcal_caldav-shared.dir/all]
Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2
From the build of caldav, I have caldav.h in:
/usr/include/libcaldav-0.6.5/caldav.h
Why isn't tdepim finding it by default?
The short answer is tdepim is looking in /usr/include/libcaldav as noted in your build log
output. The header file is located in /usr/include/libcaldav-0.6.5 as you noted. Those two
locations disagree. Why?
Because of the way the libcaldav and libcardav packages build. Look in
pkgconfig/libcaldav.pc and you'll see that the location there is not the same as the
actual location.
Check your cmake cache file to confirm that tdepim does not find the libcaldav headers.
Refer to bug report 701 for two patches.
Darrell