From dd0563300176f0faa50c0766cb97d5e376dbd802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 8 Jun 2016 13:26:07 +0200 Subject: [PATCH] doc: clarify how to specify path to SDL2 in Getting Started Guide. --- doc/getting-started.dox | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/getting-started.dox b/doc/getting-started.dox index 6e38841c9..1f2bc1b42 100644 --- a/doc/getting-started.dox +++ b/doc/getting-started.dox @@ -188,6 +188,13 @@ where to create build directory, allows you to specify initial CMake parameters (e.g. the `-DWITH_SDL2APPLICATION=ON` parameter) and then you can just press *Configure* and everything is ready to be built. +If you have SDL2 in a non-standard location and CMake can't find it, you need +to specify where SDL `include/` and `lib/` directories are through +`CMAKE_PREFIX_PATH`. So, for example, on Windows, the full CMake invocation +might look like this: + + cmake .. -DCMAKE_PREFIX_PATH="C:/Users/you/Downloads/SDL2-2.0.4" -DWITH_SDL2APPLICATION=ON + On Windows you may get errors about missing DLLs when running the application. The solution is either compiling everything as static (enable `BUILD_STATIC` CMake option) or installing the dependencies somewhere. To install them, change