Warning, /frameworks/baloo/docs/development/build-instructions.md is written in an unsupported language. File is not indexed.
0001 # Build Instructions (Linux) {#build-instructions} 0002 0003 ## Prerequisites 0004 0005 * A C++ compiler 0006 * Qt 5.x 0007 * KDE Frameworks - I18n, Config, IdleTime, Auth, Crash, Solid, KIO, DBusAddons, KFileMetaData 0008 0009 On Arch Linux, install the following libraries: 0010 0011 ```bash 0012 $ sudo pacman -S ki18n kconfig kidletime kauth kcrash solid kio kdbusaddons kfilemetadata 0013 ``` 0014 0015 FIXME: What about basic requirements such as gcc and cmake? 0016 0017 ## Getting the code 0018 0019 ```bash 0020 $ git clone git://anongit.kde.org/baloo 0021 ``` 0022 0023 ## Setting up the development environment 0024 0025 Baloo installs a number of executables and libraries. While these can be installed in `/usr/`, that requires root access and typically interfers with the distro packages. Instead we prefer installing Baloo locally, and updating the required environment variables. This isolates environment also protects us from mistakes. 0026 0027 Python development typically also uses an isolated environment called a virtual environment. For now we can just use their tool. 0028 0029 ```bash 0030 $ sudo pacman -S python-virtualenv 0031 $ mkdir ~/baloo-env 0032 $ cd ~/baloo-env 0033 $ git clone git://anongit.kde.org/baloo 0034 $ mkdir build 0035 $ cd build 0036 $ cmake baloo -DCMAKE_INSTALL_PREFIX=~/baloo-env 0037 $ make -j4 0038 $ make install 0039 ``` 0040 0041 This builds and installs Baloo in the virtual environment. 0042 0043 This is stupid, the LD_LIBRARY_PATH is not set by virtualenv. We need a better tool. Write my own? 0044 0045 Setting up the environment 0046 Compilation and installation 0047 Running automated tests