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".
It seems you are missing a package "ki18n". Probably "libkf5i18n-dev" in Ubuntu.
libkf5i18n-dev is already installed in version 5.38.0-0ubuntu1.
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/
$ 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.
Ah, I forgot to clear the cache. You're right. With ".." it works.