Google developers -
First thanks for opening the libjingle source for outside use -- for
that I applaud; also, I understand that libjingle is currently in a
beta state (although on its 4th release). With this said, I have to
ask to what extent the library has been tested on Linux (with the
current gcc compiler 4.1)?
****
First, the library will not even compile (with gcc 4.x) without source
code modifications:
The first error is:
../../talk/base/stringutils.h:272: error: extra qualification
'talk_base::Traits<char>::' on member 'empty_str'
This can easily be fixed by making the source change to 'talk/base/
stringutils.h':
From:
inline static const char* Traits<char>::empty_str() { return ""; }
To:
inline static const char* empty_str() { return ""; }
Other errors can be corrected by applying a similar change to:
talk/base/base64.h
talk/xmpp/xmppclient.h
talk/p2p/base/sessionmanager.h
****
Second, the pcp example will not correctly run giving the error (on
the file 'receiver'):
File transfer started.
Get temp failed
File transfer failed
session.cc(377): state_ == STATE_RECEIVEDINITIATE @ ChooseTransport
Aborted (core dumped)
This error is caused because a temporary path is attempting to be
generated, but fails because the function incorrectly does not return
the result code 'true'. The file that must be modified is 'talk/base/
unixfilesystem.cc':
simply add the line:
return true;
to the end of the function UnixFilesystem::GetTemporaryFolderI
resulting in:
bool UnixFilesystem::GetTemporaryFolderI(Pathname &pathname, bool
create,
const std::string *append) {
pathname.SetPathname("/tmp");
if (append) {
pathname.AppendFolder(*append);
if (create)
CreateFolder(pathname);
}
return true;
}
****
Finally, many people may not want to fully install the dependent
libraries, rather compile and install them to a local user directory
(may have to without sudo privileges). In this case it may be helpful
to let people know that they can run the configure command as such:
env CPPFLAGS='-I/home/lfs/projects/expat-2.0.0/install/include -I/home/
lfs/projects/openssl-0.9.8e/install/include' LDFLAGS='-L/home/lfs/
projects/openssl-0.9.8e/install/lib -L/home/lfs/projects/expat-2.0.0/
install/lib -ldl' ./configure --prefix=/home/lfs/projects/
libjingle-0.4.0/install
obviously fill in your own local install locations for the required
libraries.
****
Once I got all of this worked out, the pcp example has worked great;
however, some might drop it before getting through all of this.
Thanks again, just thought that it may be useful for many if these
things were spelled out somewhere easy to access (maybe in the README
or somewhere online) -- it would have helped me!
Brad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-talk-open" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-talk-open?hl=en
-~----------~----~----~----~------~----~------~--~---