Compile KTechlab no Ubuntu 20.04

Sep 28 2020

Não consegui encontrar um pacote do KTechlab. Decidi compilá-lo a partir dos fontes, mas tenho um problema que não consigo resolver.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)

Pesquisei, mas não consegui instalar o kdelibs4 ...

Aqui está minha configuração:

  • Ubuntu 20.04
  • Eu instalei o desktop Kde: sudo apt-get install kubuntu-desktop

Pode me ajudar?

Obrigado.

Respostas

N0rbert Sep 28 2020 at 20:51

Por favor, note que ktechlab-0.3 é um branch muito antigo, ele depende do Qt4 que não está disponível para Ubuntu 20.04 LTS através dos repositórios oficiais.

Mas você pode instalá-lo usando um repositório alternativo - KDE Trinity R14 com:

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

Isso terminará com a instalação do KTechlab 0.3, conforme solicitado na pergunta. Você pode usar a linha de comando /opt/trinity/bin/ktechlabe obterá o seguinte:


Eu recomendaria mudar para a versão 0.50.1 moderna e compilá-la traduzindo ArchLinux AUR PKGBUILD para os nomes dos pacotes deb da seguinte maneira:

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 você obterá o seguinte: