From 41e0f1eb463467930c277a2f1cb356a085bec3c2 Mon Sep 17 00:00:00 2001 From: Yongkie Wiyogo Date: Thu, 30 Jan 2020 05:58:43 +0100 Subject: [PATCH] Added building steps for Fedora Linux --- BUILDING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index f3c6051..f63823b 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -83,6 +83,15 @@ Installation steps: 5. Install graphicsmagick: `sudo apt install libgraphicsmagick1-dev` 6. Install libpng: `sudo apt install libpng-dev` +On Fedora Linux: +1. Refresh RPM package manager: `sudo dnf update` +2. Install GCC: `sudo dnf groupinstall "Development Tools" && sudo dnf groupinstall "C Development Tools and Libraries"` +3. Install CMake: `sudo dnf install cmake` +4. Install Cairo: `sudo dnf install cairo-devel ` +5. Install graphicsmagick: `sudo dnf install GraphicsMagick-devel` +6. Install libpng: `sudo apt install libpng-devel`. If `usr/include/libpng/png.h` doesn't exist do `sudo mkdir /usr/include/libpng && sudo ln -s /usr/include/libpng16/png.h /usr/include/libpng/png.h` +7. Install liblzma and libtiff: `sudo dnf install xz-devel libtiff-devel` + Example of CMake execution: ``` git clone --recurse-submodules https://github.com/cpp-io2d/P0267_RefImpl