Hi,
Thanks for the help in advance.
I have repeated, on my Ubuntu machine (14.04 LTS/ 64bit) with Eclipse, all steps described in chapter Linux/Unix — Eclipse Cygwin of http://docs2x.smartfoxserver.com/GettingStarted/client-api-cpp that are required to build the library .
I have read this page [url]http://smartfoxserver.com/forums/viewtopic.php?f=34&t=16983&p=73445&hilit=Linux%2FUnix+—+Eclipse+Cygwin#p73445[/url], but I still haven't found the solution.
Any help is appreciated. Thanks.
compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
Moderators: Lapo, Bax, MBagnati
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
- Attachments
-
- step01.png
- (66.4 KiB) Not downloaded yet
-
- step02.png
- (79.47 KiB) Not downloaded yet
-
- step03.png
- (68.12 KiB) Not downloaded yet
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
prince_hao wrote:Hi,
Thanks for the help in advance.
I have repeated, on my Ubuntu machine (14.04 LTS/ 64bit) with Eclipse, all steps described in chapter Linux/Unix — Eclipse Cygwin of http://docs2x.smartfoxserver.com/GettingStarted/client-api-cpp that are required to build the library .
I have read this page [url]http://smartfoxserver.com/forums/viewtopic.php?f=34&t=16983&p=73445&hilit=Linux%2FUnix+—+Eclipse+Cygwin#p73445[/url], but I still haven't found the solution.
Any help is appreciated. Thanks.
- Attachments
-
- step04.png
- (54.44 KiB) Not downloaded yet
-
- step05.png
- (22.42 KiB) Not downloaded yet
-
- step06.png
- (97.85 KiB) Not downloaded yet
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
prince_hao wrote:Hi,
Thanks for the help in advance.
I have repeated, on my Ubuntu machine (14.04 LTS/ 64bit) with Eclipse, all steps described in chapter Linux/Unix — Eclipse Cygwin of http://docs2x.smartfoxserver.com/GettingStarted/client-api-cpp that are required to build the library .
I have read this page [url]http://smartfoxserver.com/forums/viewtopic.php?f=34&t=16983&p=73445&hilit=Linux%2FUnix+—+Eclipse+Cygwin#p73445[/url], but I still haven't found the solution.
Any help is appreciated. Thanks.
- Attachments
-
- step07.png
- (91.34 KiB) Not downloaded yet
-
- step08.png
- (94.83 KiB) Not downloaded yet
-
- step09.png
- (23 KiB) Not downloaded yet
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
prince_hao wrote:Hi,
Thanks for the help in advance.
I have repeated, on my Ubuntu machine (14.04 LTS/ 64bit) with Eclipse, all steps described in chapter Linux/Unix — Eclipse Cygwin of http://docs2x.smartfoxserver.com/GettingStarted/client-api-cpp that are required to build the library .
I have read this page [url]http://smartfoxserver.com/forums/viewtopic.php?f=34&t=16983&p=73445&hilit=Linux%2FUnix+—+Eclipse+Cygwin#p73445[/url], but I still haven't found the solution.
Any help is appreciated. Thanks.
- Attachments
-
- step10.png
- (191.98 KiB) Not downloaded yet
Re: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
Hi,
Please open API file SmartFox.cpp and move to line 1618.
Here replace
with
adding a blank between >> chars.
Then move to line 1623
Here replace
with
adding a blank between >> chars.
These changes will fix the error ">> should be > >" showed in your screenshot.
Please check if other errors are also fixed
Please open API file SmartFox.cpp and move to line 1618.
Here replace
Code: Select all
boost::shared_ptr<vector<string>> changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
with
Code: Select all
boost::shared_ptr<vector<string> > changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
adding a blank between >> chars.
Then move to line 1623
Here replace
Code: Select all
boost::shared_ptr<vector<string>> changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
with
Code: Select all
boost::shared_ptr<vector<string> > changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
adding a blank between >> chars.
These changes will fix the error ">> should be > >" showed in your screenshot.
Please check if other errors are also fixed
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
MBagnati wrote:Hi,
Please open API file SmartFox.cpp and move to line 1618.
Here replaceCode: Select all
boost::shared_ptr<vector<string>> changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
withCode: Select all
boost::shared_ptr<vector<string> > changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
adding a blank between >> chars.
Then move to line 1623
Here replaceCode: Select all
boost::shared_ptr<vector<string>> changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
withCode: Select all
boost::shared_ptr<vector<string> > changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
adding a blank between >> chars.
These changes will fix the error ">> should be > >" showed in your screenshot.
Please check if other errors are also fixed
Thanks for your reply!
I have successfully compiled the API! But you need to use vs first compile the download program to generate the Deploy folder to compile!
Now I have some new problems, when I compile libSmartFoxClientApi.so into the android got some mistakes : Unable to recognise the format of the input file `./libs/armeabi/libSmartFoxClientApi.so'.
could you give me some advice? thanks very much!
-
- Posts: 71
- Joined: 30 Oct 2010, 04:35
Re: compile 1.1.6 API in eclipse on Ubuntu(14.04 LTS/ 64bit)
prince_hao wrote:MBagnati wrote:Hi,
Please open API file SmartFox.cpp and move to line 1618.
Here replaceCode: Select all
boost::shared_ptr<vector<string>> changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
withCode: Select all
boost::shared_ptr<vector<string> > changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
adding a blank between >> chars.
Then move to line 1623
Here replaceCode: Select all
boost::shared_ptr<vector<string>> changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
withCode: Select all
boost::shared_ptr<vector<string> > changedVarNames = ((boost::static_pointer_cast<vector <string> >))((*(e->Params()))["changedVars"]);
adding a blank between >> chars.
These changes will fix the error ">> should be > >" showed in your screenshot.
Please check if other errors are also fixed
Thanks for your reply!
I have successfully compiled the API! But you need to use vs first compile the download program to generate the Deploy folder to compile!
Now I have some new problems, when I compile libSmartFoxClientApi.so into the android got some mistakes : Unable to recognise the format of the input file `./libs/armeabi/libSmartFoxClientApi.so'.
could you give me some advice? thanks very much!
i have find the way compile the api into the android,thanks!
Who is online
Users browsing this forum: No registered users and 31 guests