Guys,
This is probably a stupid "forest for the trees issue", but I can't get
my
kdepim build to find 'caldav.h'!
I have caldav from quickbuilds installed:
22:21 trinity:~/tblds/trinity-kdepim> locate caldav.h
/usr/include/libcaldav-0.6.2/caldav.h
However, for some reason, the kdepim build isn't seeing it. I am building with:
export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
export CMAKE_INCLUDE_PATH=/usr/include/libcaldav-0.6.2
cmake ${srcdir}/${_svnmod} \
-DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DQT_VERSION=3 \
-DWITH_ARTS=ON \
-DWITH_BIRTHDAYS=ON \
-DWITH_CALDAV=ON \
-DWITH_CARDDAV=ON \
-DWITH_EGROUPWARE=ON \
-DWITH_GROUPDAV=ON \
-DWITH_INDEXLIB=ON \
-DWITH_PAM=ON \
-DWITH_SASL=ON \
-DBUILD_ALL=ON
make
}
It builds fine without:
-DWITH_CALDAV=ON \
-DWITH_CARDDAV=ON \
But with the above enabled, I get the following error:
[ 81%] Building CXX object
kresources/caldav/CMakeFiles/kcal_caldav-shared.dir/resource.cpp.o
cd /home/david/tblds/trinity-kdepim/src/build/kresources/caldav && /usr/bin/c++
-Dkcal_caldav_shared_EXPORTS -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H
-march=i686 -mtune=generic -O2 -pipe -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/home/david/tblds/trinity-kdepim/src/build/kresources/caldav
-I/home/david/tblds/trinity-kdepim/src/kdepim
-I/home/david/tblds/trinity-kdepim/src/kdepim/libkdepim -I/opt/trinity/include
-I/opt/qt/include -I/opt/qt/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
/home/david/tblds/trinity-kdepim/src/kdepim/kresources/caldav/resource.cpp
In file included from
/home/david/tblds/trinity-kdepim/src/kdepim/kresources/caldav/reader.h:20:0,
from
/home/david/tblds/trinity-kdepim/src/kdepim/kresources/caldav/resource.cpp:39:
/home/david/tblds/trinity-kdepim/src/kdepim/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 `/home/david/tblds/trinity-kdepim/src/build'
make[1]: *** [kresources/caldav/CMakeFiles/kcal_caldav-shared.dir/all] Error 2
make[1]: Leaving directory `/home/david/tblds/trinity-kdepim/src/build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I thought setting:
export CMAKE_INCLUDE_PATH=/usr/include/libcaldav-0.6.2
would allow the build to find caldav.h, but -- it ain't working... What say the
gurus?
--
David C. Rankin, J.D.,P.E.