This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kate-compiling from src failed

Tags: None
(comma "," separated)
pushkarajthorat
Registered Member
Posts
13
Karma
0
OS

Kate-compiling from src failed

Sat Aug 07, 2010 2:31 pm
hello,
I am trying to compile kate(http://kate-editor.org/get-it/) on KUBUNTU 10.04 LTS.
I have faced following problems, some of them are resolved are some are still intact, I hope we should update the above page.

1. The kdelibs5-devl depends on many packages which gives dpendency error, one should select the Open Source Software(main), and Community maintained (Universe) in the kpackage/synaptic before we try to upgrade the kdelibs5-devl.

2. git clone git://gitorious.org/kate/kate.git -> gave me error, I had to use svn repository instead.

3. cmake ../kate -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=~/kde/usr
failed at -
CMakeLists.txt at line ->
Code: Select all
kde4_add_library(kateinterfaces SHARED ${kateinterfaces_LIB_SRCS})

saying kde4_add_library was not found. Adding - find_package(KDE4 REQUIRED) in the CMakeLists.txt solved the issue.

4. cmake failed saying - it cannot find the appropriate .cmake file.
Code: Select all
export CMAKE_MODULE_PATH=/usr/share/kde4/apps/cmake/modules/

solved this issue.

5. solving above problem landed me into the problem
Code: Select all
      -- Found automoc4: /usr/bin/automoc4
    CMake Error: File /automoc4.files.in does not exist.
    CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
      configure_file Problem configuring file
    Call Stack (most recent call first):
      /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:620 (_automoc4_kde4_pre_target_handling)
      plugins/textfilter/CMakeLists.txt:8 (kde4_add_plugin)

following numerous errors.. the whole output is captured at - http://paste.ubuntu.com/474489/, now I have googled for nearly 5 hours, can anyone please help me out!!

I am desperate to compile and start kate on my desktop!

Regards, Pushkaraj
pinotree
KDE Developer
Posts
222
Karma
7
OS

Re: Kate-compiling from src failed

Sat Aug 07, 2010 4:02 pm
Problem 3, 4 and 5 are due to the same issue: you need the whole kdelibs sources, and you must run cmake for the whole of it. After that, you cd in the subdirectory/ies of kdelibs you want to compile (eg kate) and run make from there. Note this does not mean compiling the whole kdelibs.
If you do the above, you can avoid all the (wrong) hacks you did (ie adding "find_package(KDE4 REQUIRED)", exporting CMAKE_MODULE_PATH).


Pino Toscano
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Kate-compiling from src failed

Sat Aug 07, 2010 11:11 pm
Note that Kate from Gitorious is just Kate, and allows the components to be built easily. If you are only interested in Kate, I would recommend using that instead.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell