How to run SimpleChat(2010)
Posted: 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?
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?