[gnet] GNET2 with Mingw
- From: "Stephane Rouleau" <srouleau innobec com>
- To: <gnet lists gnetlibrary org>
- Subject: [gnet] GNET2 with Mingw
- Date: Sun, 29 Feb 2004 23:02:11 -0500
Good day,
I've decided to compile 'Pan' for Win32 using Mingw, as outlined at http://pan.rebelbase.com/pan-windows-port.txt. Here's the
GNET2-relevant information from the file:
2.5 GNET
========
+ Pan needs GNet to run.
* There's better support for mingw building after 2.0.4.
As of this writing 2.0.4 is the latest release, so this means using CVS HEAD for now.
* remove the echoclient-unix and echoserver-unix lines from ./examples/Makefile.am
* remove from configure.ac the lines about adding extra warning flags to CFLAGS if the compiler is gcc.
* ./configure --disable-pthreads --prefix=/opt/gnet2;
* add "-lws2_32" after -liconv in examples/Makefile
* make; make install
* edit /opt/gnet2/lib/pkgconfig/gnet-2.0.pc:
Add " -lws2_32 " to the end of the "Libs:" line.
* Sanity check: "$ examples/dnslookup.exe www.google.com" should work at this point.
* Sanity check: "$ pkg-config --libs gnet-2.0" should work, and should include -lws2_32
As far as I can tell, there's nothing major here. The only problem was that the dnslookup.exe was failing, as well as Pan
naturally. I've traced it to WSAStartup() not being called (even though it's in DllMain in gnet-private.c). I've patched my
version so gnet_init() calls it (which, to me, appears to make more sense in case someone links with GNET2 statically).
I've compiled from the snapshot available at http://www.gnetlibrary.org/snapshot/gnet040217.tar.gz.
I probably did something wrong in my setup, hence the required patch. Any thoughts?
Stephane Rouleau
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]