[Live-devel] Updated iOS config for genMakeFiles

Braden Ackerman backerman at icontrol.com
Fri Dec 12 10:18:12 PST 2014


Ross,


> One correction to your file: I presume that

>       /usr/bin/xcrun (3 occurrences)
> should be replaced with
>      $(TOOL_PATH)/xcrun


xcrun is actually located in /usr/bin. I should have added a note to the build script that "Command line tools (OSX *.*) for Xcode - Xcode *.*" has to be installed as it includes xcrun. There may be a way to get this script working without xcrun, but I haven't found it. The vast majority of iOS developers will have that set of tools installed.


Also: I forgot I was building without testProgs. When I downloaded the live555 source to test the build script I posted yesterday it failed on testMP3Streamer as the std c++ library wasn't being linked.


I've updated the script to include a note about the command line tools and added a linker option for the missing library. I downloaded a fresh copy of the live555 source and the following script builds the static libraries successfully:


# **Note: you must install the relevant "Command line tools (OSX *.*) for Xcode - Xcode *.*" for this script to work.
# Available from: https://developer.apple.com/downloads/index.action
# Change the following version number, if necessary, before running "genMakefiles iphoneos"
IOS_VERSION = 8.1

DEVELOPER_PATH = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
TOOL_PATH = $(DEVELOPER_PATH)/usr/bin
SDK_PATH = $(DEVELOPER_PATH)/SDKs
SDK = $(SDK_PATH)/iPhoneOS$(IOS_VERSION).sdk
COMPILE_OPTS =          $(INCLUDES) -I. $(EXTRA_LDFLAGS) -DBSD=1 -O2 -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -arch armv7 --sysroot=$(SDK)
C =                     c
C_COMPILER =            /usr/bin/xcrun clang
C_FLAGS =               $(COMPILE_OPTS)
CPP =                   cpp
CPLUSPLUS_COMPILER =    /usr/bin/xcrun clang
CPLUSPLUS_FLAGS =       $(COMPILE_OPTS) -Wall
OBJ =                   o
LINK =                  /usr/bin/xcrun clang -o
LINK_OPTS =             -v -L. -arch armv7 --sysroot=$(SDK) -L$(SDK)/usr/lib/system /usr/lib/libc++.dylib
CONSOLE_LINK_OPTS =     $(LINK_OPTS)
LIBRARY_LINK =          libtool -s -o
LIBRARY_LINK_OPTS =
LIB_SUFFIX =            a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =

?
Best regards,

Braden Ackerman


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20141212/2b1a700d/attachment.html>


More information about the live-devel mailing list