Tim, Darrell,
I have had good success tonight with todays GIT build. I made it though tdepim in the build. I was able to build:
"dependencies/$useqt" 'dependencies/tqtinterface' 'dependencies/arts' 'dependencies/dbus-tqt' 'dependencies/dbus-1-tqt' 'dependencies/tqca-tls' 'dependencies/libart-lgpl' 'dependencies/libcaldav' 'dependencies/libcarddav' 'tdelibs' 'tdebase' 'tdenetwork'
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?
On 03/11/2012 08:37 PM, David C. Rankin wrote:
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?
More importantly, where in the code can I patch the location or add it as an include location with CMake?
On 03/11/2012 08:45 PM, David C. Rankin wrote:
On 03/11/2012 08:37 PM, David C. Rankin wrote:
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?
More importantly, where in the code can I patch the location or add it as an include location with CMake?
I'll try:
export CMAKE_INCLUDE_PATH="/usr/include/libcaldav-0.6.5:/usr/include/libcarddav-0.6.1"
If this works, then we might want to add a cmake check in the beginning to locate these include. Serghei? What do you think?
On 03/11/2012 08:57 PM, David C. Rankin wrote:
On 03/11/2012 08:45 PM, David C. Rankin wrote:
On 03/11/2012 08:37 PM, David C. Rankin wrote:
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?
More importantly, where in the code can I patch the location or add it as an include location with CMake?
I'll try:
export CMAKE_INCLUDE_PATH="/usr/include/libcaldav-0.6.5:/usr/include/libcarddav-0.6.1"
If this works, then we might want to add a cmake check in the beginning to locate these include. Serghei? What do you think?
Nope, still cratered:
[ 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
Help?
On 03/11/2012 09:20 PM, David C. Rankin wrote:
On 03/11/2012 08:57 PM, David C. Rankin wrote:
On 03/11/2012 08:45 PM, David C. Rankin wrote:
On 03/11/2012 08:37 PM, David C. Rankin wrote:
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?
More importantly, where in the code can I patch the location or add it as an include location with CMake?
I'll try:
export CMAKE_INCLUDE_PATH="/usr/include/libcaldav-0.6.5:/usr/include/libcarddav-0.6.1"
If this works, then we might want to add a cmake check in the beginning to locate these include. Serghei? What do you think?
Nope, still cratered:
<snip> -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
Help?
It looks like the pkgconfig file for libcaldav is hosed:
21:36 archangel:/dat_e/chroot> cat david/usr/lib/pkgconfig/libcaldav.pc prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include
pkglibdir=${libdir}/libcaldav pkgincludedir=${includedir}/libcaldav
Name: libcaldav Description: libcaldav is a client library for CalDAV Version: 0.6.5
Cflags: -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include Libs: -pthread -lgthread-2.0 -lrt -lglib-2.0 -lcurl
I'll repackage caldav and carddav without the additional:
/libcarddav-0.6.1/carddav.h ^^^^^^^^^^^^^^^^^
in the include path and try again...
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
On 03/11/2012 09:50 PM, Darrell Anderson wrote:
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
Darn,
I wish I would have read this before re-inventing the wheel. Thanks Darrell. I'll take a look at the patches. Why don't we just put the header file in ${prefix}/include to begin with and dispense with the additional directory to hold '1' file?
I wish I would have read this before re-inventing the wheel. Thanks Darrell. I'll take a look at the patches. Why don't we just put the header file in ${prefix}/include to begin with and dispense with the additional directory to hold '1' file?
Good question. Is the answer 42?
Darrell