aboutsummaryrefslogtreecommitdiff
path: root/docs/README.osx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/README.osx')
-rw-r--r--docs/README.osx90
1 files changed, 45 insertions, 45 deletions
diff --git a/docs/README.osx b/docs/README.osx
index c6570f249d..9a60985870 100644
--- a/docs/README.osx
+++ b/docs/README.osx
@@ -44,8 +44,8 @@ its not part of OSX anymore since 10.8.
2. Getting the source code
-----------------------------------------------------------------------------
- $ cd $HOME
- $ git clone git://github.com/xbmc/xbmc.git Kodi
+ $ cd $HOME
+ $ git clone git://github.com/xbmc/xbmc.git Kodi
-----------------------------------------------------------------------------
3.1 Install XCODE
@@ -74,34 +74,34 @@ constellations of Xcode and osx versions (to be updated once we know more):
system.
3.2.1 Compiling as 32 Bit binary
- $ cd $HOME/Kodi
- $ cd tools/depends
- $ ./bootstrap
- $ ./configure --host=i386-apple-darwin
- $ make
+ $ cd $HOME/Kodi
+ $ cd tools/depends
+ $ ./bootstrap
+ $ ./configure --host=i386-apple-darwin
+ $ make
3.2.2 Compiling as 64 Bit binary
- $ cd $HOME/Kodi
- $ cd tools/depends
- $ ./bootstrap
- $ ./configure --host=x86_64-apple-darwin
- $ make
+ $ cd $HOME/Kodi
+ $ cd tools/depends
+ $ ./bootstrap
+ $ ./configure --host=x86_64-apple-darwin
+ $ make
3.2.3 Compile binary addons
- $ make -C target/binary-addons
+ $ make -C target/binary-addons
NOTE: if you only want to build specific addons you can specify like this:
- $ make -C target/binary-addons ADDONS="pvr.hts pvr.dvblink"
+ $ make -C target/binary-addons ADDONS="pvr.hts pvr.dvblink"
NOTE: You can speedup compilation on multicore systems by doing
- "make -j<number of cores>" instead of "make". For a dualcore this would read:
- "make -j2"
+ "make -j<number of cores>" instead of "make". For a dualcore this would read:
+ $ make -j2
ADVANCED developers only! If you want to specify an OSX SDK version (if
multiple versions are installed) - then append it to the configure line
above (example below would use OSX SDK 10.9 and build for 64bit):
- $ ./configure --host=x86_64-apple-darwin --with-sdk=10.9
+ $ ./configure --host=x86_64-apple-darwin --with-sdk=10.9
Ensure that you also adapt the xcode project to use this SDK version.
@@ -114,16 +114,16 @@ first. This is a simple step and involves the following:
4.a Compilation by using command-line building via xcodebuild or
by compiling via Xcode GUI
- $ cd $HOME/Kodi
- $ make -C tools/depends/target/xbmc
- $ make clean
- $ make xcode_depends
+ $ cd $HOME/Kodi
+ $ make -C tools/depends/target/xbmc
+ $ make clean
+ $ make xcode_depends
4.b Compilation by using command-line building via make (experimental)
- $ cd $HOME/Kodi
- $ make -C tools/depends/target/xbmc
- $ make clean
+ $ cd $HOME/Kodi
+ $ make -C tools/depends/target/xbmc
+ $ make clean
The configure operation will setup the build environment for codecs and
internal libraries that are used by Kodi. This step is required for both Xcode
@@ -154,11 +154,11 @@ then build.
If you have selected a specific OSX SDK Version in step 3.2 then you might need
to adapt the active target to use the same OSX SDK version. Else build will fail
-(you will see alot of errors with at least non-found boost/shared_ptr.hpp).
+(you will see a lot of errors with at least non-found boost/shared_ptr.hpp).
The build process will take a long time when building the first time.
You can see the progress in "Build Results". There are a large number of static
-and dynamic libaries that will need to be built. Once these are built,
+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
@@ -166,16 +166,16 @@ 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
+ $ ./build/Debug/Kodi
Or the release version:
-$ ./build/Release/Kodi
+ $ ./build/Release/Kodi
You can also build via Xcode from the command-line using the following:
-$ xcodebuild -configuration Release ONLY_ACTIVE_ARCH=YES ARCHS=i386 VALID_ARCHS=i386 \
- -target "Kodi.app" -project Kodi.xcodeproj
+ $ xcodebuild -configuration Release ONLY_ACTIVE_ARCH=YES ARCHS=i386 VALID_ARCHS=i386 \
+ -target "Kodi.app" -project Kodi.xcodeproj
You can specify "Release" instead of "Debug" as a configuration. Be sure to set *_ARCHS
variables to the same architecture as selected in step 3.2 (either i386 for 32Bit or x86_64
@@ -191,17 +191,17 @@ You could try xcodebuild from the command-line with altered SDK - like 10.9 in t
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
+ $ 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
+ $ cd $HOME/Kodi
+ $ export KODI_HOME=`pwd`
+ $ make
+ $ ./Kodi.bin
-----------------------------------------------------------------------------
5. Packaging
@@ -209,13 +209,13 @@ below(normally unneeded - for advanced developers).
This section describes how to package Kodi in a disk image for
distribution.
- 1. build Kodi.app from XCode so that the application bundle is correctly updated.
+1. build Kodi.app from XCode so that the application bundle is correctly updated.
- 2. $ cd tools/darwin/packaging/osx
+2. $ cd tools/darwin/packaging/osx
- 3. $ chmod +x ./mkdeb-osx.sh && ./mkdmg-osx.sh release
+3. $ chmod +x ./mkdeb-osx.sh && ./mkdmg-osx.sh release
- 4. Use release or debug - you have to be sure that you build the corresponding
- version before.
+4. Use release or debug - you have to be sure that you build the corresponding
+ version before.
- 6. Find the corresponding dmg in the packaging dir.
+6. Find the corresponding dmg in the packaging dir.