Compila KTechlab in Ubuntu 20.04

Sep 28 2020

Non sono riuscito a trovare un pacchetto da KTechlab. Ho deciso di compilarlo dai sorgenti ma ho un problema che non riesco a risolvere.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)

Ho cercato ma non sono riuscito a installare kdelibs4 ...

Ecco la mia configurazione:

  • Ubuntu 20.04
  • Ho installato Kde desktop: sudo apt-get install kubuntu-desktop

Mi potete aiutare?

Grazie.

Risposte

N0rbert Sep 28 2020 at 20:51

Tieni presente che ktechlab-0.3 è un ramo molto vecchio, si basa su Qt4 che non è disponibile per Ubuntu 20.04 LTS tramite i repository ufficiali.

Ma puoi installarlo usando un repository alternativo - KDE Trinity R14 con:

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

Questo terminerà con l'installazione di KTechlab 0.3 come richiesto nella domanda. Puoi farlo usando la riga di comando /opt/trinity/bin/ktechlabe otterrai quanto segue:


Consiglierei di passare alla moderna versione 0.50.1 e di compilarla traducendo ArchLinux AUR PKGBUILD nei nomi dei pacchetti deb come segue:

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

e otterrai quanto segue: