Guidelines and HOWTOs/Build from source/FreeBSD: Difference between revisions

From KDE Community Wiki
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* Install Python 3.6 and libraries needed for Craft:
pkg install python37 py37-sqlite3


* Install required dependencies either with pkg, or from ports:
* Optional: Install dependencies that will be required for compiling most KDE applications:
  pkg install libxml harfbuzz shared-mime-info p5-URI py36-sqlite3 xcb-util-image libxslt xcb-util-wm freetype2 xcb-util-renderutil gettext-runtime fontconfig git bash libxcbcommon xcb-util-keysyms gettext-tools icu python dbus inputproto cmake xorg-fonts pcre png bison xkeyboard-config pkgconf libxcb gpgme p7zip glib python36
  pkg install libxml harfbuzz shared-mime-info p5-URI py36-sqlite3 xcb-util-image libxslt xcb-util-wm freetype2 xcb-util-renderutil gettext-runtime fontconfig git bash libxcbcommon xcb-util-keysyms gettext-tools icu python dbus inputproto cmake xorg-fonts pcre png bison xkeyboard-config pkgconf libxcb gpgme p7zip glib python37
or
portmaster devel/icu devel/pcre devel/dbus x11-fonts/fontconfig print/freetype2 print/harfbuzz graphics/png x11/libxcb x11/xcb-util-image x11/xcb-util-keysyms :x11/xcb-util-renderutil x11/xcb-util-wm x11/libxkbcommon security/gpgme databases/py36-sqlite3 x11/inputproto shells/bash devel/git devel/cmake archivers/p7zip net/p5-URI lang/python lang/python36 x11/xkeyboard-config x11-fonts/xorg-fonts devel/libexecinfo devel/gmake devel/pkgconf devel/gettext-tools devel/gettext-runtime devel/bison misc/shared-mime-info lang/ruby22 textproc/libxslt devel/glib20
 
* Prepare some build directory in your home directory, here we assume:
mkdir ~/kf
 
* Switch to this build dir
cd ~/kf


* Get Craft
* Get Craft
  git clone git://anongit.kde.org/craft.git
  fetch -o setup.py https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py && python3.7 setup.py --prefix ~/CraftRoot
 
* Copy Mac OS X config template to right location, should be OK to use out of the box
mkdir etc
cp craft/kdesettings.fbsd etc/kdesettings.ini


* Optional: Adjust craft config to your liking:
* Optional: Adjust craft config to your liking:
  ee etc/kdesettings.ini
  ee ~/kde/etc/kdesettings.ini


* Optional: Run bash if you are running some other shell
* Optional: Run bash if you are running some other shell

Latest revision as of 12:21, 13 February 2020

  • Install Python 3.6 and libraries needed for Craft:
pkg install python37 py37-sqlite3
  • Optional: Install dependencies that will be required for compiling most KDE applications:
pkg install libxml harfbuzz shared-mime-info p5-URI py36-sqlite3 xcb-util-image libxslt xcb-util-wm freetype2 xcb-util-renderutil gettext-runtime fontconfig git bash libxcbcommon xcb-util-keysyms gettext-tools icu python dbus inputproto cmake xorg-fonts pcre png bison xkeyboard-config pkgconf libxcb gpgme p7zip glib python37
  • Get Craft
fetch -o setup.py https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py && python3.7 setup.py --prefix ~/CraftRoot
  • Optional: Adjust craft config to your liking:
ee ~/kde/etc/kdesettings.ini
  • Optional: Run bash if you are running some other shell
bash
  • Setup environment:
source craft/kdeenv.sh
  • In this shell, now craft is usable, e.g. to build Kate with all dependencies:
craft kate