Jump to content

Craft/Linux: Difference between revisions

From KDE Community Wiki
TheOneRing (talk | contribs)
TheOneRing (talk | contribs)
No edit summary
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
= Preparations =
A screen recording version is available https://www.youtube.com/watch?v=giW8Wgjj1pE


== Preparations ==


== Ubuntu ==
=== My OS doesn't offer python 3.6 ===
See https://github.com/pyenv/pyenv
 
=== Ubuntu ===


  sudo apt update
  sudo apt update
  sudo apt install python3.6 build-essential git cmake
  sudo apt install python3 python3-pip python3-venv build-essential git wget libxcb-xinerama0-dev
sudo apt-get build-dep qt5-default
 
sudo apt install libxcb-xinerama0-dev
=== Other ===
See https://doc.qt.io/qt-6/linux-requirements.html
 
== Install Craft ==
  python3 -c "$(wget https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py -O -)" --prefix ~/CraftRoot


== Other ==
== Use craft ==
See https://wiki.qt.io/Building_Qt_5_from_Git
Every time you want to use craft in a new shell, you need to set up the craft environment, first:
source ~/CraftRoot/craft/craftenv.sh


= Install Craft =
In this shell, now craft is usable, e.g. to build Kate with all dependencies:
  wget https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py -O CraftSetup.py &&\
craft kate
  python3.6 CraftSetup.py --prefix ~/CraftRoot

Latest revision as of 12:35, 17 October 2024

A screen recording version is available https://www.youtube.com/watch?v=giW8Wgjj1pE

Preparations

My OS doesn't offer python 3.6

See https://github.com/pyenv/pyenv

Ubuntu

sudo apt update
sudo apt install python3 python3-pip python3-venv build-essential git wget libxcb-xinerama0-dev

Other

See https://doc.qt.io/qt-6/linux-requirements.html

Install Craft

 python3 -c "$(wget https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py -O -)" --prefix ~/CraftRoot

Use craft

Every time you want to use craft in a new shell, you need to set up the craft environment, first:

source ~/CraftRoot/craft/craftenv.sh

In this shell, now craft is usable, e.g. to build Kate with all dependencies:

craft kate