How to run SimpleChat(2010)

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

Moderators: Lapo, Bax, MBagnati

batigol
Posts: 4
Joined: 08 Apr 2014, 06:41

How to run SimpleChat(2010)

Postby batigol » 08 Apr 2014, 08:50

Hi all, I'm just new with Smartfox
I'm trying to integrate smartfox C++ API to CRYENGINE
At first, I tried to re-build SimpleChat sample.
Here is my process:
- Download C++ API http://smartfoxserver.com/download/sfs2x#p=client (SFS2X_API_Cpp_v1.1.0.zip) then extract to <root>\SFS2X_API_Cpp_v1.1.0
- Download C++ Exmaple packs http://smartfoxserver.com/download/sfs2 ... amples.zip) then extract to <root>\SFS2X_Cpp_Examples
- Open SimpleChat(VS2010) solution
- Set Additional Include Directories in C/C++ and Linker to correct path:
C++
..\..\SFS2X_API_Cpp_v1.1.0\Core\BoostAsio\Windows
Linker
..\..\SFS2X_API_Cpp_v1.1.0\Core\BoostAsio\Windows\stage\lib
..\..\SFS2X_API_Cpp_v1.1.0\Deploy\VisualStudio2010\Debug

Then build it but got error:
Error 1 error LNK1104: cannot open file 'SmartFoxClientApi.lib' F:\Projects\Smartfox\SFS2X_Cpp_Examples\SimpleChat (VS2010)\LINK SimpleChat

Search around in SFS2X_Cpp_Examples, I found a bin folder contains many lib file.
I set Configuration Properties\C/C++ Directories\Library Directories: ..\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\bin, it will get new bug

Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Sfs2X::Requests::RoomSettings::~RoomSettings(void)" (__imp_??1RoomSettings@Requests@Sfs2X@@UAE@XZ) referenced in function "public: virtual void * __thiscall Sfs2X::Requests::RoomSettings::`scalar deleting destructor'(unsigned int)" (??_GRoomSettings@Requests@Sfs2X@@UAEPAXI@Z) F:\Projects\Smartfox\SFS2X_Cpp_Examples\SimpleChat (VS2010)\ChatFrm.obj SimpleChat
Error 2 error LNK1120: 1 unresolved externals F:\Projects\Smartfox\SFS2X_Cpp_Examples\SimpleChat (VS2010)\Debug\SimpleChat.exe 1 1 SimpleChat

Does anyone know how to fix it?
batigol
Posts: 4
Joined: 08 Apr 2014, 06:41

Re: How to run SimpleChat(2010)

Postby batigol » 08 Apr 2014, 09:40

Solved after re-build C++ API project (SFS2X_API_Cpp_v1.1.0.zip)
User avatar
Lapo
Site Admin
Posts: 20437
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to run SimpleChat(2010)

Postby Lapo » 08 Apr 2014, 19:56

Interesting. If you like, let us know how the integration goes :)
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: How to run SimpleChat(2010)

Postby Carl Lydon » 28 Apr 2014, 16:09

So Smartfox is comparable with Cryengine, with some fiddling?
User avatar
Lapo
Site Admin
Posts: 20437
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to run SimpleChat(2010)

Postby Lapo » 28 Apr 2014, 16:28

We provide a C++ library that is fully portable to virtually any platform with a C++ compiler, so yes it can be used in all sorts of contexts from small embedded devices to consoles and it can be integrated with all kinds of game engines including triple-A ones.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 1 guest