Page 1 of 1

How to run SimpleChat(2010)

Posted: 08 Apr 2014, 08:50
by batigol
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?

Re: How to run SimpleChat(2010)

Posted: 08 Apr 2014, 09:40
by batigol
Solved after re-build C++ API project (SFS2X_API_Cpp_v1.1.0.zip)

Re: How to run SimpleChat(2010)

Posted: 08 Apr 2014, 19:56
by Lapo
Interesting. If you like, let us know how the integration goes :)

Re: How to run SimpleChat(2010)

Posted: 28 Apr 2014, 16:09
by Carl Lydon
So Smartfox is comparable with Cryengine, with some fiddling?

Re: How to run SimpleChat(2010)

Posted: 28 Apr 2014, 16:28
by Lapo
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.