Update README.md

Removed brief compilation instructions as the RawPedia articles are now up to date and explain everything in relevant detail.
This commit is contained in:
Beep6581 2015-12-19 18:32:58 +01:00
parent 0a56ba6e87
commit 46388488ca

View File

@ -23,42 +23,5 @@ http://git-scm.com/book/en/
## Compilation, branches and Git ## Compilation, branches and Git
Refer to RawPedia for a detailed explanation of how to get the necessary dependencies and how to compile RawTherapee: Refer to RawPedia for a detailed explanation of how to get the necessary dependencies and how to compile RawTherapee:
http://rawpedia.rawtherapee.com/Linux http://rawpedia.rawtherapee.com/Linux
http://rawpedia.rawtherapee.com/Windows
The information below is a brief summary of that. http://rawpedia.rawtherapee.com/OS_X
### Clone the source code
Clone the source code either using HTTPS:
```
git clone https://github.com/Beep6581/RawTherapee ~/repo-rt
```
or using SSH (see https://help.github.com/articles/generating-ssh-keys/ ):
```
git clone git@github.com:Beep6581/RawTherapee.git ~/repo-rt
```
or update a previously cloned repository:
```
cd ~/repo-rt && git pull
```
### Optionally pick a branch
New features and bug fixes are made on their own branches. Once tested, those branches are merged into the "master" branch. We used to test new features and bug fixes by sharing patches (.diff files) but git makes branching easy and branching makes sharing patches unnecessary.
To test a new feature or bug fix, just checkout [the right branch](https://github.com/Beep6581/RawTherapee/branches/active) before compiling:
```
git checkout <branchname>
```
### Compile and run
To find out how many threads your CPU supports, run:
`grep -c processor /proc/cpuinfo`
Then replace the number in `-j8` below with this number. This will make compilation faster but it will have no effect on the speed of running RawTherapee.
Now you will make an out-of-source compilation of RawTherapee, it will be built into the ~/repo-rt/build/release folder, and then you will move this folder to your home directory and rename it to "rt", so make sure there is no ~/rt folder already!
```
mkdir build && cd build && \
cmake -DCMAKE_CXX_FLAGS="-std=c++11" -DCMAKE_BUILD_TYPE="release" -DPROC_TARGET_NUMBER="2" -DBUILD_BUNDLE="ON" -DBINDIR="." -DDATADIR="." -DCACHE_NAME_SUFFIX=4 .. && \
make -j8 install && \
mv release ~/rt
```
Run RawTherapee:
`~/rt/rawtherapee`