Dear All,
I am trying to build for IOS as the target. I successfully compile and run all the examples when my target is OSX, but all my attempts to compile for IOS failed.
What I did is (How do I attach/upload images here …?):
Download the latest source code
Run ./cmake_ios.sh
nsa-000:Urho3D-1.5 freebsd$ ./cmake_ios.sh /Users/freebsd/repo/dev/games-engines/ios/Urho3D-1.5/
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
2015-12-27 22:01:35.608 xcodebuild[50716:704381] [MT] PluginLoading: Required plug-in compatibility UUID F41BD31E-2683-44B8-AE7F-5F09E919790E for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/MarmaladeGCC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- Looking for include file stdint.h
-- Looking for include file stdint.h - not found
-- The ASM compiler identification is Clang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Failed
-- Found Urho3D: as CMake target
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.9.1")
-- Could NOT find Dot (missing: DOXYGEN_DOT_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/freebsd/repo/dev/games-engines/ios/Urho3D-1.5
-- post_cmake: Fix generated Xcode project
nsa-000:Urho3D-1.5 freebsd$
I then open the project in Xcode, and run the ALL_BUILD target which results in:
(tolua++ fails complaining about SED and post install script)
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/freebsd/repo/dev/games-engines/ios/Urho3D-1.5/Source/Urho3D/tolua++-prefix/src/tolua++-build
cd /Users/freebsd/repo/dev/games-engines/ios/Urho3D-1.5/Source/Urho3D/tolua++-prefix/src/tolua++-build && /opt/local/bin/cmake -E touch /Users/freebsd/repo/dev/games-engines/ios/Urho3D-1.5/Source/Urho3D/tolua++-prefix/src/tolua++-stamp/Debug-iphonesimulator/tolua++-configure
echo "Performing build step for 'tolua++'"
Performing build step for 'tolua++'
[b][size=150][color=#BF0040]cd /Users/freebsd/repo/dev/games-engines/ios/Urho3D-1.5/Source/Urho3D/tolua++-prefix/src/tolua++-build && bash -c "sed -i '' 's/EFFECTIVE_PLATFORM_NAME//g' CMakeScripts/install_postBuildPhase.make*"
sed: can't read s/EFFECTIVE_PLATFORM_NAME//g: No such file or directory[/color][/size][/b]
make: *** [/Users/freebsd/repo/dev/games-engines/ios/Urho3D-1.5/Source/Urho3D/tolua++-prefix/src/tolua++-stamp/Debug-iphonesimulator/tolua++-build] Error 2
What am I doing wrong?
Any help would be greatly appreciated.