Blogilo From SVN

From Blogilo Wiki

Revision as of 22:29, 20 December 2009 by Golnaz (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

By porting blogilo into KDE project, It is cosidered a part of kdepim module of kde, And uses kblog library that is part of kdepimlibs module. so if you have cloned blogilo from kde svn repository, you need to clone kblog library as well (if you don't already have latest kblog or kdepimlibs version).


But if you want to get kblog without cloning the whole kdepimlibs module, you need to apply some changes in kblog CMakeLists file before compiling it, to make kblog independent to kdepimlibs module. These changes are listed here:


The original file starts with:

project(kblog)

Insert the following after the line above:

add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})

find_package(KDE4 REQUIRED) find_package(KdepimLibs REQUIRED) find_package(Boost)


Then replace this line:

include_directories(${Boost_INCLUDE_DIR})

With these lines:

include_directories(${QT_INCLUDES} ${Boost_INCLUDE_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${KDEPIMLIBS_INCLUDE_DIR})

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules )


If the installed kdepimlibs version is older than the KDE branch you cloned kblog from, you may need to find the line:

set_target_properties(kblog PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )

And replace ${GENERIC_LIB_VERSION} and ${GENERIC_LIB_SOVERSION} by the version and soversion of installed kdepimlibs.