From c4c06b61dd04302da8793490718f87fe58a2b688 Mon Sep 17 00:00:00 2001 From: Jacky Song <61605733+Songtech-0912@users.noreply.github.com> Date: Wed, 30 Jun 2021 19:46:07 -0700 Subject: [PATCH] Refactor README and Arch Linux Install Instructions [2] (#643) * Added emacs and vim artifacts to gitignore * Modified Arch Linux build instructions for custom tested config.pri * Removed unneccesary instructions for gitignore and added source comments * Added template Arch Linux build instructions * Added mention of template archlinux config in install instructions --- .gitignore | 20 +++++- INSTALL_LINUX.md | 105 +++++++++++++++++++++------- README.md | 22 ++---- build-configs/arch-linux/config.pri | 25 +++++++ 4 files changed, 128 insertions(+), 44 deletions(-) create mode 100644 build-configs/arch-linux/config.pri diff --git a/.gitignore b/.gitignore index c1b86f4488..da88dfcb0e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +# List of git-untracked files +# --------------------------- + +# General build artifacts + *.h.cpp *.com *.DS_Store @@ -5,6 +10,9 @@ *_resource.rc moc*.cpp *moc + +# Build directories + build build32 build64 @@ -31,10 +39,17 @@ Info.plist *Win32 qrc_*.cpp *GeneratedFiles -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. + +# Emacs/Vim + +*.temp +*.swp + +# Ignore Visual Studio temporary files, build results, and +# files generated by popular Visual Studio add-ons. # User-specific files + *.suo *.user *.sln.docstates @@ -221,7 +236,6 @@ bigtosmall.txt #Documentation/source/_group* #Documentation/source/_prefs.rst #Documentation/source/plugins -Documentation/source/_build .qmake.stash App/Natron BreakpadClient.xcodeproj/ diff --git a/INSTALL_LINUX.md b/INSTALL_LINUX.md index 798329e5f5..05a965672d 100644 --- a/INSTALL_LINUX.md +++ b/INSTALL_LINUX.md @@ -1,9 +1,15 @@ Instructions for installing Natron from sources on GNU/Linux ============================================================ -This file is supposed to guide you step by step to have working (compiling) version of -Natron on GNU/Linux. +This file is supposed to guide you step by step to have working (compiling) version of Natron on GNU/Linux. Here's the gist of what you need to know: +* It's recommended to use Docker for the easiest hands-off installation method - see [here](#using-docker) for more details +* If you are on Arch Linux or Manjaro, see [this](#arch-linux) for relevant details +* If you are on Centos, Fedora or RHEL, see [here](#centos7) for specific instructions +* If you are on a Debian-based Linux (such as Ubuntu, KDE Plasma, ElementaryOS etc.) see [here](#debian-based) for details +* If you are willing to try the complete installation process, the instructions are below + +0. [Using Docker](#using-docker) 1. [Dependencies](#dependencies) - [Installing the full Natron SDK](#installing-the-full-natron-sdk) - [Environment to use the Natron SDK](#environment-to-use-the-natron-sdk) @@ -26,6 +32,15 @@ Natron on GNU/Linux. - [CentOS7/Fedora](#centos7) 5. [Generating Python bindings](#generating-python-bindings) +# Using Docker + +If you have `docker` installed, the installation procedure is very simple. Simply create a directory called `builds`, and then run the following command: + +```bash +docker run -it --rm --mount src="$(pwd)/builds",target=/home/builds_archive,type=bind natrongithub/natron-sdk:latest +``` + +Docker will automatically do the rest for you, and you should have a complete Natron binary in `./builds` (as a tgz archive). # Dependencies @@ -220,45 +235,73 @@ global.pri file. To enable an option just add `CONFIG+=