Skip to content

Commit 9851c9a

Browse files
committed
improve build instructions, fixes #3
1 parent 1fe3ab6 commit 9851c9a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,18 @@ on the full set the MAE is 5.32 and on the validation set the MAE is 4.97.
9999

100100
## Building
101101

102-
Building instructions:
102+
Building instructions for Debian:
103103
```
104-
sudo apt install libhwy-dev liblcms2-dev libjpeg62-turbo-dev libpng-dev cmake ninja-build
104+
sudo apt install build-essential git libhwy-dev liblcms2-dev libjpeg62-turbo-dev libpng-dev cmake ninja-build
105105
mkdir build
106106
cd build
107107
cmake ../src -G Ninja
108108
ninja ssimulacra2
109109
```
110110

111-
or simply execute `build_ssimulacra2`.
111+
or simply execute `build_ssimulacra2`. Other distributions should be similar;
112+
you may need to use `libjpeg-turbo8-dev` instead of `libjpeg62-turbo-dev`.
113+
Version 2.13 of lcms2 is needed.
112114

113115
The source code of SSIMULACRA 2 is also part of the `tools` of [libjxl](https://github.com/libjxl/libjxl/blob/main/tools/ssimulacra2.cc).
114116

build_ssimulacra

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ then
1212
else
1313
echo "Build problem. Check for missing dependencies?"
1414
echo "Try installing dependencies:"
15-
echo " sudo apt install libhwy-dev liblcms2-dev libjpeg62-turbo-dev libpng-dev cmake ninja-build"
15+
echo " sudo apt install build-essential libhwy-dev liblcms2-dev libjpeg62-turbo-dev libpng-dev cmake ninja-build"
1616

1717
fi

0 commit comments

Comments
 (0)