chat server compile error

*nix specific usage questions

chat server compile error

Postby rsuse1 » Wed May 13, 2015 8:38 am

Hi,
When trying to compile using the instructions here https://wiki.cavebeat.org/index.php/BuildChatserver i get
Code: Select all
pqi/p3peermgr.cc:763:35: error: ‘RS_SERVICE_PERM_NONE’ was not declared in this scope

any ideas?
rsuse1
 
Posts: 2
Joined: Wed May 13, 2015 8:24 am

Re: chat server compile error

Postby cave » Fri May 15, 2015 4:51 am

hi,

this compile instruction is for v05 chatservers.

the permission matrix in v06 allows us to set this without hardcoded changes.
I didn't used it when i built chatsevers the last time.
cave
 
Posts: 109
Joined: Tue Nov 13, 2012 10:27 pm

Re: chat server compile error

Postby rsuse1 » Fri May 15, 2015 4:52 pm

Cool, thanks.
when i try and compile with V0.6(successfully compiled, no changes) i get
Code: Select all
g++ -c -m64 -pipe -std=c++0x -O0 -g -D_FILE_OFFSET_BITS=64 -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../../lib/sqlcipher/src -I../../../lib/sqlcipher/tsrc -I. -I../../libretroshare/src -I. -o temp/linux-g++-64/obj/chatserver.o chatserver.cpp
chatserver.cpp: In member function ‘void Chatserver::createOrRejoinLobby(std::string, std::string, std::string, const std::vector<VisibleChatLobbyRecord>&)’:
chatserver.cpp:224:93: error: no matching function for call to ‘RsMsgs::createChatLobby(const string&, const RsGxsId&, const string&, const std::list<t_RsGenericIdType<16u, false, 1u>, std::allocator<t_RsGenericIdType<16u, false, 1u> > >&, const ChatLobbyFlags&)’
  rsMsgs->createChatLobby(lobbyName, ownId, lobbyTopic, emptyList, RS_CHAT_LOBBY_FLAGS_PUBLIC);
                                                                                             ^
chatserver.cpp:224:93: note: candidate is:
In file included from chatserver.h:17:0,
                 from chatserver.cpp:1:
../../libretroshare/src/retroshare/rsmsgs.h:477:21: note: virtual ChatLobbyId RsMsgs::createChatLobby(const string&, const RsGxsId&, const string&, const std::set<t_RsGenericIdType<16u, false, 1u>, std::less<t_RsGenericIdType<16u, false, 1u> >, std::allocator<t_RsGenericIdType<16u, false, 1u> > >&, ChatLobbyFlags)
 virtual ChatLobbyId createChatLobby(const std::string& lobby_name,const RsGxsId& lobby_identity,const std::string& lobby_topic,const std::set<RsPeerId>& invited_friends,ChatLobbyFlags lobby_privacy_type) = 0 ;
                     ^
../../libretroshare/src/retroshare/rsmsgs.h:477:21: note:   no known conversion for argument 4 from ‘const std::list<t_RsGenericIdType<16u, false, 1u>, std::allocator<t_RsGenericIdType<16u, false, 1u> > >’ to ‘const std::set<t_RsGenericIdType<16u, false, 1u>, std::less<t_RsGenericIdType<16u, false, 1u> >, std::allocator<t_RsGenericIdType<16u, false, 1u> > >&’
make: *** [temp/linux-g++-64/obj/chatserver.o] Error 1


i am using https://github.com/cavebeat/retroshare-chatserver is this the correct version?
rsuse1
 
Posts: 2
Joined: Wed May 13, 2015 8:24 am

Re: chat server compile error

Postby cave » Wed May 20, 2015 9:18 am

updated, r8138 rsmsg list->set
cave
 
Posts: 109
Joined: Tue Nov 13, 2012 10:27 pm


Return to RetroShare for Linux and friends

Who is online

Users browsing this forum: No registered users and 1 guest