From 6f78f1d4e446dab2ea63e961ac881635e80eaf8b Mon Sep 17 00:00:00 2001 From: Memphiz Date: Sat, 24 Sep 2016 13:02:32 +0200 Subject: Revert "[osx/readme] - remove KODI_HOME bits from readme (not needed anymore)" its still needed in the default xcode setup as it seems This reverts commit fbc59139074ac7ce1c2f6730f914b661138044c2. --- docs/README.osx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/README.osx b/docs/README.osx index 42b3fef703..e730cd6177 100644 --- a/docs/README.osx +++ b/docs/README.osx @@ -139,6 +139,14 @@ binaries from git that might cause problems. 4.1 Using Xcode ----------------------------------------------------------------------------- Start XCode and open the Kodi project (Kodi.xcodeproj) located in $HOME/Kodi. +For development, Kodi is run from the $HOME/Kodi directory and needs to have +the KODI_HOME environment variable set to know where that directory is located. +To set KODI_HOME environment variable: + +Xcode 6 and later + Menu -> Product -> Edit Sheme -> "Run Kodi"/"Debug" -> Add KODI_HOME into + the List of "Environment Variables". Set the value to the path to the Kodi + root folder. For example, "/Users/bigdog/Documents/Kodi" There are two build targets "Kodi" and "Kodi.app" (each in 32Bit and 64Bit flavour) with debug and release settings. The "Kodi" target is used for rapid build and @@ -158,8 +166,9 @@ and dynamic libraries that will need to be built. Once these are built, subsequent builds will be faster. After the build, you can ether run Kodi for Mac from Xcode or run it from -the command-line. -To run the debug version: +the command-line. If you run it from the command-line, make sure your set +the KODI_HOME environment variable (export KODI_HOME=$HOME/Kodi). Then, to +run the debug version: $ ./build/Debug/Kodi @@ -187,12 +196,14 @@ below(normally unneeded - for advanced developers). a) $ cd $HOME/Kodi + $ export KODI_HOME=`pwd` $ make xcode_depends $ xcodebuild -sdk macosx10.9 -project Kodi.xcodeproj -target Kodi.app ONLY_ACTIVE_ARCH=YES \ ARCHS=x86_64 VALID_ARCHS=x86_64 -configuration Release build b) Building via make: $ cd $HOME/Kodi + $ export KODI_HOME=`pwd` $ make $ ./Kodi.bin -- cgit v1.2.3