Commit 00cda16c authored by Matan Shukry's avatar Matan Shukry Committed by Matan Shukry

Edited build instructions

parent e6e9fea5
......@@ -42,6 +42,22 @@ Note: on all operating systems the entire procedure is done in a terminal window
## Setup your environment
## Required components for linux (tested on ubuntu 19.04):
```
sudo apt-get install git cmake extra-cmake-modules curl zlib1g-dev qttools5-dev libkf5config-dev libkf5widgetsaddons-dev libkf5completion-dev libkf5coreaddons-dev libkf5guiaddons-dev libkf5i18n-dev libkf5itemmodels-dev libkf5itemmodels-dev libkf5itemviews-dev libkf5windowsystem-dev libkf5archive-dev libqt5svg5-dev libqt5x11extras5-dev libquazip5-dev
```
## Build your own python (3.6):
download `https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz`
extract (tar), and build:
```
./configure --enable-optimizations
make
sudo make altinstall
```
## Prepare your directory layout
......@@ -139,6 +155,11 @@ Note: on all operating systems the entire procedure is done in a terminal window
cmake --build . --config RelWithDebInfo --target ext_openexr
```
Linux note: you need to first build openexr; that will fail, and then you need to set the LD_LIBRARY_PATH correctly and build again:
```
export LD_LIBRARY_PATH="$BUILD_ROOT/b/ext_ilmbase/ext_ilmbase-prefix/src/ext_ilmbase-build/Iex/"
```
OSX Note: You need to first build openexr; that will fail; then you need to set the rpath for the two utilities correctly, then try to build openexr again.
```
install_name_tool -add_rpath $BUILD_ROOT/i/lib $BUILD_ROOT/b/ext_openexr/ext_openexr-prefix/src/ext_openexr-build/IlmImf/./b44ExpLogTable
......@@ -151,10 +172,13 @@ Note: on all operating systems the entire procedure is done in a terminal window
cmake --build . --config RelWithDebInfo --target ext_tiff
cmake --build . --config RelWithDebInfo --target ext_gsl
cmake --build . --config RelWithDebInfo --target ext_vc
cmake --build . --config RelWithDebInfo --target ext_libraw
cmake --build . --config RelWithDebInfo --target ext_giflib
cmake --build . --config RelWithDebInfo --target ext_libraw
```
Linux note: You need to first build libraw; that will fail, and then you need to change the source code.
Specifically, it will complain about file `internal/dcraw_common.cpp`. Edit the file and remove the function `fpow64(float, float)`
On Linux (if you want to build your own SIP and PyQt instead of the system one)
```
cmake --build . --config RelWithDebInfo --target ext_sip
......@@ -217,7 +241,7 @@ Note: on all operating systems the entire procedure is done in a terminal window
On Linux
```
cmake ../krita -DCMAKE_INSTALL_PREFIX=BUILDROOT/i -DDEFINE_NO_DEPRECATED=1 -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake ../krita -DCMAKE_INSTALL_PREFIX=$BUILDROOT/i -DDEFINE_NO_DEPRECATED=1 -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
# Troubleshooting: if you built your own SIP and CMake fails to find it, please set
# the following environment variable to the SIP installation directory:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment