Bug 389363 - build fails with 'Unknown CMake command "ki18n_wrap_ui"'
Summary: build fails with 'Unknown CMake command "ki18n_wrap_ui"'
Status: RESOLVED NOT A BUG
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-24 08:34 UTC by Stefan Endrullis
Modified: 2018-05-06 00:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Endrullis 2018-01-24 08:34:21 UTC
Today I tried to compile Krusader from source and got an error while running cmake:
CMake Error at ActionMan/CMakeLists.txt:8 (ki18n_wrap_ui):
  Unknown CMake command "ki18n_wrap_ui".

Here is the full shell output:

$ git clone https://github.com/KDE/krusader.git
Cloning into 'krusader'...
remote: Counting objects: 47355, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 47355 (delta 6), reused 9 (delta 6), pack-reused 47334
Receiving objects: 100% (47355/47355), 21.95 MiB | 6.20 MiB/s, done.
Resolving deltas: 100% (39151/39151), done.
$ cd krusader
$ mkdir krusader-build
$ cd krusader-build
$ cmake ../krusader -DCMAKE_INSTALL_PREFIX=/usr/local/ -DCMAKE_C_FLAGS="-O2 -fPIC" -DCMAKE_CXX_FLAGS="-O2 -fPIC"
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at ActionMan/CMakeLists.txt:8 (ki18n_wrap_ui):
  Unknown CMake command "ki18n_wrap_ui".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.9)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/stefan/software/krusader/krusader-build/CMakeFiles/CMakeOutput.log".
Comment 1 Martin Kostolný 2018-01-24 17:07:35 UTC
It seems you are missing a package "ki18n". Probably "libkf5i18n-dev" in Ubuntu.
Comment 2 Stefan Endrullis 2018-01-24 17:09:38 UTC
libkf5i18n-dev is already installed in version 5.38.0-0ubuntu1.
Comment 3 Martin Kostolný 2018-01-24 17:14:05 UTC
Oh, sorry. I can see the problem now. You are calling:

cmake ../krusader

instead of:

cmake ..

So to be precise - please try this command from your build folder:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/
Comment 4 Stefan Endrullis 2018-01-24 17:20:17 UTC
$ cd krusader/krusader-build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/
CMake Error: The source "/home/stefan/software/krusader/CMakeLists.txt" does not match the source "/home/stefan/software/krusader/krusader/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
Comment 5 Stefan Endrullis 2018-01-24 17:44:30 UTC
Ah, I forgot to clear the cache.  You're right.  With ".." it works.