[Kde-pim] Building akonadinext

Martin Steigerwald Martin at lichtvoll.de
Thu Dec 18 12:50:47 GMT 2014


Hi!

I get a build error on trying to build Akonadi next:

-- The following OPTIONAL packages have not been found:

 * Libgit2

-- The following REQUIRED packages have not been found:

 * FlatBuffers

CMake Error at /usr/share/cmake-3.0/Modules/FeatureSummary.cmake:513 
(message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  CMakeLists.txt:63 (feature_summary)



So I tried building flatbuffers and got this:

martin at merkaba:~/KDE/Dev/flatbuffers> make -j4
[ 38%] Built target flatc
[ 61%] Built target flatsampletext
[ 72%] [ 77%] Built target flatsamplebinary
Building CXX object CMakeFiles/flattests.dir/tests/test.cpp.o
/home/martin/KDE/Dev/flatbuffers/tests/test.cpp: In instantiation of ‘void 
TestEq(T, U, const char*, const char*, int) [with T = long unsigned int; U = 
int]’:
/home/martin/KDE/Dev/flatbuffers/tests/test.cpp:140:3:   required from here
/home/martin/KDE/Dev/flatbuffers/tests/test.cpp:40:14: error: comparison between 
signed and unsigned integer expressions [-Werror=sign-compare]
   if (expval != val) {
              ^
cc1plus: all warnings being treated as errors
CMakeFiles/flattests.dir/build.make:128: recipe for target 
'CMakeFiles/flattests.dir/tests/test.cpp.o' failed
make[2]: *** [CMakeFiles/flattests.dir/tests/test.cpp.o] Error 1
CMakeFiles/Makefile2:165: recipe for target 'CMakeFiles/flattests.dir/all' 
failed
make[1]: *** [CMakeFiles/flattests.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


I worked around it like this:

diff --git a/tests/test.cpp b/tests/test.cpp
index 46d3f95..5aaaf0d 100644
--- a/tests/test.cpp
+++ b/tests/test.cpp
@@ -37,7 +37,7 @@ int testing_fails = 0;
 
 template<typename T, typename U>
 void TestEq(T expval, U val, const char *exp, const char *file, int line) {
-  if (expval != val) {
+  if (expval != (T) val) {
     auto expval_str = flatbuffers::NumToString(expval);
     auto val_str = flatbuffers::NumToString(val);
     TEST_OUTPUT_LINE("TEST FAILED: %s:%d, %s (%s) != %s", file, line,


Okay, now also after installed libgit-dev it builds. I thought libgit would be 
optional but apparently it isn´t:

-- The following OPTIONAL packages have not been found:

 * Libgit2

CMake Error: The following variables are used in this project, but they are 
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
LIBGIT2_INCLUDE_DIR (ADVANCED)
   used as include directory in directory 
/home/martin/KDE/Dev/akonadinext/tests/hawd
   used as include directory in directory 
/home/martin/KDE/Dev/akonadinext/tests/hawd
LIBGIT2_LIBRARIES (ADVANCED)
    linked by target "hawd" in directory 
/home/martin/KDE/Dev/akonadinext/tests/hawd
    linked by target "libhawd" in directory 
/home/martin/KDE/Dev/akonadinext/tests/hawd

-- Configuring incomplete, errors occurred!



Ah, then a dependency is missing from cmake:

[ 45%] Built target asynctest
/home/martin/KDE/Dev/akonadinext/common/storage_lmdb.cpp:34:18: fatal error: 
lmdb.h: Datei oder Verzeichnis nicht gefunden
 #include <lmdb.h>
                  ^
compilation terminated.



Okay, after installing it, it still doesn´t build:

[ 59%] Linking CXX executable clientapitest
[ 61%] Building CXX object client/CMakeFiles/akonadi2_client.dir/main.cpp.o
Building CXX object 
dummyresource/CMakeFiles/akonadi2_resource_dummy.dir/facade.cpp.o
/home/martin/KDE/Dev/akonadinext/client/main.cpp:20:24: fatal error: 
QApplication: No such file or directory
 #include <QApplication>
                        ^
compilation terminated.
[ 62%] Building CXX object 
synchronizer/CMakeFiles/akonadi2_synchronizer.dir/listener.cpp.o
client/CMakeFiles/akonadi2_client.dir/build.make:54: recipe for target 
'client/CMakeFiles/akonadi2_client.dir/main.cpp.o' failed
make[2]: *** [client/CMakeFiles/akonadi2_client.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:503: recipe for target 
'client/CMakeFiles/akonadi2_client.dir/all' failed
make[1]: *** [client/CMakeFiles/akonadi2_client.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 66%] Built target clientapitest
In file included from /home/martin/



Hmm, but I have it:

martin at merkaba:~/KDE/Dev/akonadinext/build> apt-file search QApplication | 
egrep "libqt|qtbase"
libqt4-dev: /usr/include/qt4/QtGui/QApplication
qtbase5-dev: /usr/include/x86_64-linux-
gnu/qt5/QtGui/QApplicationStateChangeEvent
qtbase5-dev: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication



Any hint?


Also what can I do with it then, I bet I can test the hawd benchmark. Can I 
also throw a huge maildir folder yet at it for testing? Or is it all to 
premature yet?

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list