From 6b3dd245f6384716d7e55bfdbf99e89c6e2e7ad9 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Mon, 2 May 2022 15:40:21 +0300 Subject: [PATCH] Update README.md to reflect it's possible to generate Ninja build scripts also --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1df27bb2..1263d756 100644 --- a/README.md +++ b/README.md @@ -423,16 +423,24 @@ possible. Depending on the platform, some additional tools are required for compiling uvg266 with CMake. For Ubuntu, the required packages are `build-essential cmake`. -Run the following commands to compile and install uvg266. +Run the following commands to generate the build scripts cd build cmake .. + +Then depending on your generator settings you might want to use Make to compile and install uvg266, force with `-G 'Unix Makefiles'` in CMake command + make sudo make install + +or Ninja, force with `-G Ninja` in the CMake command + + ninja + sudo ninja install Visual Studio natively supports opening the `CMakeLists.txt` of the CMake build package has been installed. Otherwise CMake-CLI can be used to generate the Visual Studio project files. -**When building shared library with visual studio the tests will fail to link, the main binary will still work** +**When building shared library with visual studio/MSys2/MinGW the tests will fail to link, so they are disabled** ### Docker This project includes a [Dockerfile](./Dockerfile), which enables building for Docker.