[Uml-devel] Debugging Umbrello

Gopala Krishna krishna.ggk at gmail.com
Wed Dec 23 17:56:23 UTC 2009


Hi,

On Wed, Dec 23, 2009 at 10:52 PM, Juha Manninen <juha.manninen at phnet.fi> wrote:
> after some web search I figured I should add line :
> find_package(KDE4 REQUIRED)
> to
> kdesdk/umbrello/umbrello/CMakeLists.txt
> and
> kdesdk/umbrello/umbrello/pics/CMakeLists.txt

> It actually helped! QtCreator let's me build the code but it gives an error
> about missing .h file in the umbrello/umbrello/ dir which is not correct
> because the file is there.
>
> I am wondering why I must add the line
> find_package(KDE4 REQUIRED)
> there? Why is it missing? Could it be added there?
>
> I must tweak some more to actually debug.
>
>
> When I run "make" on command line (without IDE), it says:
> -- Found Qt-Version 4.5.3 (using /usr/bin/qmake)
>
> and builds Umbrello OK.

The problem is quite a few of packages and configuration is done by
kdesdk/CMakeLists.txt and umbrello/CMakeLists.txt just builds up on
it..

Try the attached CMakeLists.txt. This is picked up from,
http://websvn.kde.org/branches/work/soc-umbrello/  ( a branch
containing work done in soc08)



-- 
Cheers,
Gopala Krishna A
-------------- next part --------------
project(umbrello)

# search packages used by KDE
find_package(Qt4 REQUIRED)
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
include(MacroLibrary)
include(CheckIncludeFile)
include(CheckIncludeFileCXX)
include(CheckLibraryExists)

# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
# definitions like _GNU_SOURCE that are needed on each platform.
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -DQT_STRICT_ITERATORS)

find_package(LibXslt REQUIRED)
find_package(LibXml2 REQUIRED)

set(Boost_MINIMUM_VERSION 1.33.1)
find_package(Boost REQUIRED)

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DQT3_SUPPORT)
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} )

add_subdirectory(umbrello)



More information about the umbrello-devel mailing list