[Kde-pim] Akonadi-1.2.1 build error

Sagara Wijetunga sagara at tomahawk.com.sg
Tue Oct 20 03:58:01 BST 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.cpp.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/).
>
> 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?
>
> Sagara
>
>   
Hi all

I'm still trying to identify the cause of this error. Could somebody 
please shed some light on it?

Some more details:

    tar -xjf akonadi-1.2.1.tar.bz2
    cd akonadi-1.2.1

    mkdir -v ../build
    cd ../build

    cmake -DCMAKE_INSTALL_PREFIX=/usr \
            -DSYSCONF_INSTALL_DIR=/etc/kde \
            -DLIB_INSTALL_DIR=/usr/lib \
            -DCMAKE_BUILD_TYPE=Release \
            -DLIB_SUFFIX= \
            -DBoost_INCLUDE_DIR=/usr/include \
            ../akonadi-1.2.1

    gmake VERBOSE=1 >& akonadi-make.log


Kind regards
Sagara

_______________________________________________
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