An example for my general question https://askubuntu.com/questions/485242/an-introduction-to-translating-and-debugging-source-code : I had installed the 'Qt 4 Designer' and I have downloaded the krusader-2.4.0-beta3.tar.bz2 file. Among the packed files I see the CMakeLists.txt that contains

set(VERSION "2.4.0-beta3" )
set(RELEASE_NAME "Single Step")
find_package(KDE4 REQUIRED)
include_directories( ${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES}  )
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
add_definitions( "-DKRARC_ENABLED" )
\#add_subdirectory(krfiledialog) - not used
\#add_subdirectory(virt) - not used
\#add_subdirectory(tar) - not used
message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: skipped subdir $(TARDIR)")
macro_optional_add_subdirectory( po )

I guess that I am to find or choose my directories and define them using

KDE4_INCLUDES=the directory

etc. I need an introduction about rules for it; maybe the directories are among the following


Or should I install yet another package from KDE?

I have tried opening


(the only *.cmake file from the download) in the 'Qt Creator' and building it, but it demands many parameters. I'd like to know how to find the parameters, as far as possible directly from the downloaded files. This is what I meant by a "general introduction 'how to make such projects'", maybe for KDE projects particularly; is something like it available?

  • If your question is not specific to ubuntu, use unix.stackexchange.com – Panther Jun 19 '14 at 13:24
  • I do not tend to super general Linux solutions; I want to use my Ubuntu 12.04 routinely and adjust its tools to what I need; now, to adjust them to be able to work with them similarly as I am used from Windows XP, MS office 2003, Total Commander and Visual Studio 6.0. – Tomáš Pečený Jun 19 '14 at 15:53
  • Evidently my question 485386 shows to be yet too general. Particularly: Please, what should I install into the Ubuntu 12.04 to satisfy the line 'find_package(KDE4 REQUIRED)' of the CMakeLists.txt? Thanks! – Tomáš Pečený Jun 20 '14 at 13:45

The matter of the command find_package(KDE4 REQUIRED) is solved in my answer to How to get KDE4 for building a project in Ubuntu 12.04?.

Similarly, installing zlib1g-dev enabled me to open the CMakeLists.txt as a 'Qt 4 Designer' project via cmake (without parameters) and to build it; Qt accepted dependencies of the sources.

I have attained my goal - now I can watch how Krusader works by using the debugger. (Similar steps for the stable Krusader version led to error messages during translation, evidently I have made a mistake, maybe at a version of some dependency; I am satisfied by watching the Krusader version I use.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.