[Kde-pim] Akonadi-1.2.1 build error

Ingo Klöcker kloecker at kde.org
Tue Oct 20 16:46:34 BST 2009


On Tuesday 20 October 2009, Sagara Wijetunga wrote:
> Ingo Klöcker wrote:
> > On Sunday 18 October 2009, Sagara Wijetunga wrote:
> >> Kevin Krammer wrote:
> >>> Hi,
> >>>
> >>> On Sunday, 2009-10-18, Sagara Wijetunga wrote:
> >>>> Hi all
> >>>>
> >>>> I'm trying to compile Akonadi-1.2.1 (akonadi-1.2.1.tar.bz2) on
> >>>> FreeBSD, I get following compilation error:
> >>>>
> >>>> gmake
> >>>>
> >>>> Scanning dependencies of target akonadiprotocolinternals
> >>>> [  0%] Building CXX object
> >>>> libs/CMakeFiles/akonadiprotocolinternals.dir/imapparser.cpp.o
> >>>> [  1%] Building CXX object
> >>>> libs/CMakeFiles/akonadiprotocolinternals.dir/imapset.cpp.o
> >>>> [  1%] Building CXX object
> >>>> libs/CMakeFiles/akonadiprotocolinternals.dir/notificationmessage
> >>>>.c pp.o [  2%] Building CXX object
> >>>> libs/CMakeFiles/akonadiprotocolinternals.dir/xdgbasedirs.cpp.o
> >>>> Linking CXX shared library ../lib/libakonadiprotocolinternals.so
> >>>> [  2%] Built target akonadiprotocolinternals
> >>>> Scanning dependencies of target notificationmessagetest_automoc
> >>>> gmake[2]: ***
> >>>> [libs/tests/CMakeFiles/notificationmessagetest_automoc] Error 1
> >>>> gmake[1]: ***
> >>>> [libs/tests/CMakeFiles/notificationmessagetest_automoc.dir/all]
> >>>> Error 2 gmake: *** [all] Error 2
> >>>>
> >>>> 1. How to find more detail about this issue?
> >>>
> >>> make VERBOSE=1
> >>>
> >>>> 2. Is libs/tests necessary for Akonadi? If not, how to disable
> >>>> building libs/tests?
> >>>
> >>> Usually tests have to be enabled explicitly, i.e. they should be
> >>> off unless you specified them to be enabled at the cmake command.
> >>>
> >>> However, any error building the tests could also mean something
> >>> else will fail to build and might be harder to locate there
> >>> (tests usually have much less dependencies).
> >>> Since most of us are building on Linux we could have accidentally
> >>> slipped in something Linux specific which we rather have
> >>> removed/fixed than people on BSD work around :)
> >>>
> >>> Cheers,
> >>> Kevin
> >>
> >> Hi Kevin
> >>
> >> Thanks for the reply.
> >>
> >> Here is the verbose output:
> >>
> >> cd /usr/pkg/akonadi/build/libs/tests && /usr/bin/automoc4
> >> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.
> >>cpp /usr/pkg/akonadi/akonadi-1.2.1/libs/tests
> >> /usr/pkg/akonadi/build/libs/tests /usr/bin/moc /usr/bin/cmake
> >> gmake[2]: ***
> >> [libs/tests/CMakeFiles/notificationmessagetest_automoc] Error 1
> >> gmake[2]: Leaving directory `/usr/pkg/akonadi/build'
> >>
> >> The problem is,
> >> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.
> >>cpp is not available.
> >>
> >> There is no such file even under the source directory
> >> (/usr/pkg/akonadi/akonadi-1.2.1/).
> >
> > Of course, the file does not exist. It's supposed to be created by
> > automoc4.
> >
> >> Here are the contents of the /usr/pkg/akonadi/build/libs/tests/
> >> directory: ls /usr/pkg/akonadi/build/libs/tests/
> >> CMakeFiles
> >> CTestTestfile.cmake
> >> Makefile
> >> cmake_install.cmake
> >> notificationmessagetest_automoc.cpp.files
> >>
> >> cat
> >> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.
> >>cpp .files SOURCES:
> >> /usr/pkg/akonadi/akonadi-1.2.1/libs/tests/notificationmessagetest.
> >>cpp MOC_COMPILE_DEFINITIONS:
> >>
> >>
> >>
> >> What could I do now?
> >
> > Try running
> >
> > cd /usr/pkg/akonadi/build/libs/tests && /usr/bin/automoc4
> > /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.c
> >pp /usr/pkg/akonadi/akonadi-1.2.1/libs/tests
> > /usr/pkg/akonadi/build/libs/tests /usr/bin/moc /usr/bin/cmake
> >
> > manually.
> >
> >
> > Regards,
> > Ingo
>
> I tried following manually:
> cd /usr/pkg/akonadi/build/libs/tests
>
> /usr/bin/automoc4
> /usr/pkg/akonadi/build/libs/tests/notificationmessagetest_automoc.cpp
> /usr/pkg/akonadi/akonadi-1.2.1/libs/tests
> /usr/pkg/akonadi/build/libs/tests /usr/bin/moc /usr/bin/cmake
>
> Exit status ($?) is 1. No error message.
>
> Is there a way to run  automoc4 command with a verbose output?

I don't think so. I suggest trying to compile automoc4 yourself. Maybe 
there's something wrong with the installed automoc4.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20091020/5a46b38b/attachment.sig>
-------------- next part --------------
_______________________________________________
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