Announcements
The Scaleform forum is now read-only. Please head to the Gamedev site for product support.
Scaleform Forum (Read Only)
Scaleform enables developers to leverage the power of the Adobe® Flash® tool set to create powerful user interface environments for video games.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

make / Makefile not working on Mavericks with Xcode 5.0.2

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
gummudu
1717 Views, 8 Replies

make / Makefile not working on Mavericks with Xcode 5.0.2

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!

8 REPLIES 8
Message 2 of 9
gummudu
in reply to: gummudu

using scaleform_4.2.24_iphone_consumer btw

Message 3 of 9
adam.petrone
in reply to: gummudu

Hello gummudu,

 

For Xcode 5, specify clang in the command line:

 

make P=iPhone+clang/armv7 C=Release+NoRTTI

 

Message 4 of 9
gummudu
in reply to: adam.petrone

That worked! 😄 thanks a million

Message 5 of 9
legosarecool
in reply to: gummudu

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?

Message 6 of 9
adam.petrone
in reply to: legosarecool

Hello legosarecool,

 

Which package are you using? libcurl is not in scaleform_4.2.24_iphone_consumer.

 

Thanks,

Adam

Message 7 of 9
legosarecool
in reply to: adam.petrone

I'm using the sf_4.3.26_ios_armv7_eval package.

Message 8 of 9
adam.petrone
in reply to: legosarecool

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"
Message 9 of 9
legosarecool
in reply to: adam.petrone

Thanks Adam, that fixed it!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report