Build smartFox client API

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

developer.kus
Posts: 10
Joined: 04 Jul 2018, 09:52

Build smartFox client API

Postby developer.kus » 04 Jul 2018, 10:10

My project work with cocos2d-x then I do follow this guide http://docs2x.smartfoxserver.com/Gettin ... ios-xcode7, but I always get error '../ZLib/zlib.h' file not found in ByteArray.h. If I add Zlib folder to project I get error from Xcode: doesn't support 32 bit(I use Xcode 9). How can I fix this error?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Build smartFox client API

Postby Lapo » 04 Jul 2018, 16:19

Hi,
it sounds like you've missed one step in the compilation.
In the page you've linked, at the bottom, there's this line:
Under Other Linker Flags add -lz


Can you double check you've done this?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 19 guests