[OTR-dev] OTR + Second Life Client
Ian Goldberg
ian at cypherpunks.ca
Thu Jun 25 11:59:55 EDT 2009
On Wed, Jun 24, 2009 at 01:19:44PM -0700, chris-tuchs at hushmail.com wrote:
> Sorry for the spam, but I am reposting to the devs list since that
> seems to be a better place than the users list.
>
> I am working on integrating OTR into the second life client to
> encrypt IMs between users. Is there some stuff I can read about
> getting a windows program to happily talk with libotr? In
> particular the client is compiled with a Microsoft Visual C++
> compiler, and not Cygwin's mingw + GNU C/C++. Is there sample code
> of a Microsoft windows program communicating with libotr that I can
> look at? Alternatively, has someone ported libotr to compile with
> the MS compiler? Thanks for your time.
>
> To get really technical, I was able to use cygwin to naively do
> "./configure; make" but the result was a ".a" file which I don't
> think the microsoft compiler is going to be happy with. When I
> compile the second life client using the microsoft compiler, these
> are the sorts of compile time errors I get when including proto.h
> (from the libotr src directory.)
I don't think cygwin and mingw are the same thing
(http://www.mingw.org/node/21); we compile libotr and
pidgin-otr for Windows using mingw. The Makefile.mingw for that
suggests that building a DLL is:
$(CC) -g -shared file1.o file2.o file3.o -o output.dll -lwhatever
where $(CC) is the mingw compiler.
So you could either get libotr to build under Visual C++ (which I think
the Trillian plugin author did:
http://trillianotr.kittyfox.net/downloads.php ), or build a libotr.dll
under mingw, and link to it with Visual C++ (perhaps less likely to
work). Also see the Miranda OTR plugin:
http://addons.miranda-im.org/details.php?action=viewfile&id=2644
All of the above come with source, so there should be good info in there
somewhere. Certainly "sample code of a Microsoft windows program
communicating with libotr", at least.
Of course, if the authors of either plugin want to weigh in themselves
on this thread, even better. :-)
- Ian
More information about the OTR-dev
mailing list