Compilez KTechlab dans Ubuntu 20.04

Sep 28 2020

Je n'ai pas trouvé de package de KTechlab. J'ai décidé de le compiler à partir des sources mais j'ai un problème que je n'arrive pas à résoudre.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)

J'ai cherché mais je n'ai pas pu installer kdelibs4 ...

Voici ma configuration:

  • Ubuntu 20.04
  • J'ai installé le bureau Kde: sudo apt-get install kubuntu-desktop

Pouvez-vous m'aider?

Je vous remercie.

Réponses

N0rbert Sep 28 2020 at 20:51

Veuillez noter que ktechlab-0.3 est une très ancienne branche, elle repose sur Qt4 qui n'est pas disponible pour Ubuntu 20.04 LTS via les référentiels officiels.

Mais vous pouvez l'installer en utilisant un référentiel alternatif - KDE Trinity R14 avec:

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

Cela se terminera par l'installation de KTechlab 0.3 comme vous l'avez demandé dans la question. Vous pouvez le faire en utilisant la ligne de commande /opt/trinity/bin/ktechlabet vous obtiendrez ce qui suit:


Je recommanderais de passer à la version moderne 0.50.1 et de la compiler en traduisant ArchLinux AUR PKGBUILD en noms de package deb comme suit:

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

et vous obtiendrez ce qui suit: