I was going through the Getting Started PDF and trying to look at the StarforceTD project and run it on a device. For that to be available I have to run make in the scaleform root against the Makefile present there with make P=iPhone/armv7 C=Release+NoRTTI but this results in this error:
cc Src/Sound/Sound_SoundRenderer.cpp
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc: No such file or directory
make: *** [Obj/iPhone-armv7/Release_NoRTTI/Src/Sound/Sound_SoundRenderer.o] Error 1
I think it is because gcc is no longer located under iPhoneOS.platform/Developer/usr/bin with XCode 5.
Any change to get an updated Makefile or some instructions on how to get this working with XCode 5 on Mavericks? Would be really appreciated 🙂
Thanks!
Solved! Go to Solution.
Solved by adam.petrone. Go to Solution.
Hello gummudu,
For Xcode 5, specify clang in the command line:
make P=iPhone+clang/armv7 C=Release+NoRTTI
I also ran into this issue, but it doesn't fully fix the build pipeline. I get this error when building curl:
checking for stdint.h... (cached) no
checking for unistd.h... no
checking size of long... 0
checking size of void*... 0
configure: error: cannot find out size of long.
make: *** [Obj/iPhone-armv7-clang/3rdParty/curl-7.29.0/libcurl.a] Error 1
Is there a similar fix for this issue as well?
Hello legosarecool,
Which package are you using? libcurl is not in scaleform_4.2.24_iphone_consumer.
Thanks,
Adam
legosarecool,
You can try this. Our build engineer may have a more elegant fix, but in the meantime - you will need to modify the shell script at 3rdParty/curl-7.29.0/SFcurlHelper.sh
Around line 58, look for these lines:
export CC=${IOS_CC} export CPP=${IOS_CPP}
Replace the CFLAGS and LDFLAGS with this (this resolves the headers not being found):
export CFLAGS="-arch ${IOS_ARCH} -isysroot ${IPHONEVER} ${COMMON_CFLAGS}" export LDFLAGS="-Wl,-syslibroot ${IPHONEVER}"
And add this line (this resolves three errors on 10.9 with clang):
export CPPFLAGS="-D_FORTIFY_SOURCE=0"