From fd276ae9024a6092383b0351c451a801f42a96b4 Mon Sep 17 00:00:00 2001 From: Jose M Pan Date: Fri, 16 Dec 2016 12:44:25 -0300 Subject: [PATCH 1/2] Fixed some commands for scons Changed platform to iphone but with x86 arch for simulator Added arch parameter to 32 and 64 targets to get the correct files. --- reference/compiling_for_ios.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/compiling_for_ios.rst b/reference/compiling_for_ios.rst index f8bab6b0..2af27fb6 100644 --- a/reference/compiling_for_ios.rst +++ b/reference/compiling_for_ios.rst @@ -34,7 +34,7 @@ Alternatively, you can run :: - $ scons p=isim bin/godot.isim.tools + $ scons p=iphone arch=x86 bin/godot.isim.tools for a Simulator executable. @@ -44,9 +44,9 @@ It can be done in three steps, first compile 32 bit version, then compile 64 bit :: - $ scons p=iphone tools=no bits=32 target=release - $ scons p=iphone tools=no bits=64 target=release - $ lipo -create bin/godot.iphone.opt.32 arm64 bin/godot.iphone.opt.64 -output bin/godot.iphone.opt.universal + $ scons p=iphone tools=no bits=32 target=release arch=arm + $ scons p=iphone tools=no bits=64 target=release arch=arm64 + $ lipo -create bin/godot.iphone.opt.32 bin/godot.iphone.opt.64 -output bin/godot.iphone.opt.universal Run From b9f1f65a34e5bd98bcd50ceb0c73a0ba94621bbe Mon Sep 17 00:00:00 2001 From: Jose M Pan Date: Sat, 17 Dec 2016 00:28:00 -0300 Subject: [PATCH 2/2] The command must not include output filename --- reference/compiling_for_ios.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/compiling_for_ios.rst b/reference/compiling_for_ios.rst index 2af27fb6..d36d2510 100644 --- a/reference/compiling_for_ios.rst +++ b/reference/compiling_for_ios.rst @@ -19,13 +19,13 @@ Open a Terminal, go to the root dir of the engine source code and type: :: - $ scons p=iphone bin/godot.iphone.debug + $ scons p=iphone target=debug for a debug build, or: :: - $ scons p=iphone bin/godot.iphone.opt target=release + $ scons p=iphone target=release for a release build (check ``platform/iphone/detect.py`` for the compiler flags used for each configuration). @@ -34,7 +34,7 @@ Alternatively, you can run :: - $ scons p=iphone arch=x86 bin/godot.isim.tools + $ scons p=iphone arch=x86 target=debug for a Simulator executable.