Skompiluj KTechlab w Ubuntu 20.04

Sep 28 2020

Nie mogłem znaleźć paczki z KTechlab. Postanowiłem skompilować to ze źródeł, ale mam problem, którego nie mogę rozwiązać.https://github.com/ktechlab/ktechlab-0.3

$ cmake ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.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
qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.7", minimum required is "4.6.0") 
CMake Error at /usr/share/cmake-3.16/Modules/FindKDE4.cmake:61 (message):
  ERROR: Could not find KDE4 kde4-config
Call Stack (most recent call first):
  CMakeLists.txt:11 (find_package)

Szukałem, ale nie mogłem zainstalować kdelibs4 ...

Oto moja konfiguracja:

  • Ubuntu 20.04
  • Zainstalowałem pulpit Kde: sudo apt-get install kubuntu-desktop

Możesz mi pomóc?

Dziękuję Ci.

Odpowiedzi

N0rbert Sep 28 2020 at 20:51

Należy pamiętać, że ktechlab-0.3 jest bardzo starą gałęzią, opiera się na Qt4, który nie jest dostępny dla Ubuntu 20.04 LTS za pośrednictwem oficjalnych repozytoriów.

Ale możesz go zainstalować za pomocą alternatywnego repozytorium - KDE Trinity R14 z:

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/j/jasper/libjasper1_1.900.1-debian1-2.4ubuntu1.2_amd64.deb
sudo apt-get install ./libjasper1_1.900.1-debian1-2.4ubuntu1.2_amd64.deb

sudo add-apt-repository "deb https://ftp.fau.de/trinity/trinity-r14.0.0/ubuntu/ focal main"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C93AF1698685AD8B
sudo apt-get update
sudo apt install ktechlab-trinity

Zakończy się to instalacją KTechlab 0.3, jak prosiłeś w pytaniu. Możesz to zrobić za pomocą wiersza poleceń, /opt/trinity/bin/ktechlaba otrzymasz:


Poleciłbym przełączyć się na nowoczesną wersję 0.50.1 i skompilować ją, tłumacząc ArchLinux AUR PKGBUILD na nazwy pakietów deb w następujący sposób:

sudo apt-get install git build-essential cmake extra-cmake-modules gettext qt5-default libkf5declarative-dev libkf5khtml-dev libkf5doctools-dev libkf5texteditor-dev gpsim-dev glib2.0

cd ~/Downloads
git clone https://github.com/ktechlab/ktechlab.git
cd ktechlab
sh build-simple.sh
sh run-simple.sh

a otrzymasz: