[gnet-dev] Re: gnet for windows
- From: Andrew J Lanoix <alanoix umich edu>
- To: wroberts1 home com
- Cc: gnet-dev gnetlibrary org
- Subject: [gnet-dev] Re: gnet for windows
- Date: Sun, 29 Apr 2001 23:38:48 -0400 (EDT)
I just answered this question with Anthony Lee. Please see that thread
in the email list archive.
Andy
PS. I'm still on vacation but just had a chance to check email, probably
won't have another chance until I get back.
On Sat, 28 Apr 2001 wroberts1 home com wrote:
>
>
> - Testing gtk+/gnet application in win32 -
> (sure it would be alot easyer to just use linux,
> but it would be nifty to have it portable to win32)
>
>
> symptom:
> gtk freezes when gnet dll is used. for testing purposes:
> I use the most basic hello.c from gtk tutorial. The button works fine
> when gnet is not used. I then do nothing more then add a
> gnet_inetaddr_new() just before the call to gtk_main. Running this
> results in no button prelighting and is not pressable.
>
> why?:
> Maybe the DllMain in gnet-1.0.dll is fouling the glib mainloop used
> by gtk. Possibly gtk+ needs to be rebuilt for this mingw/pthreads
> environment.
>
> working ok:
> gtk+ application without gnet does not have problem.
> The gnet example applications work OK. I built echo client/server and ran
> without trouble.
>
> environment:
> * mingw gcc-2.95.2-1 for msvcrt, with w32api-0.5.1
> * pthreads-2000-29-12 built with this mingw
> as per its FAQ question 6: update mingw libgcc.a
> * glib-dev-20010301, gtk+-dev-20010301
> * gnet-src-20010304 built
> with mingw using Makefile gnet-dev/2001-March/000010.html
>
> (old pthreads from 1999 is not available)
>
>
> On Tue, Apr 24, 2001 at 10:05:02PM -0400, Andrew J. Lanoix wrote:
> >
> > --On Tuesday, April 24, 2001 5:13 PM -0700 wroberts1 home com wrote:
> > >
> > > Today i try to build my gtk/gnet application in windows using gcc-mingw
> > >
> > > First, mingw cannot link to a msvc dll, a '.a' library must be generated
> > > from it, for linking purposes only. This is the procedure:
> > > 1) pexports gnet-1.0.dll > gnet.def
> > > 2) dlltool --def gnet.def --dllname gnet-1.0.dll --output-lib libgnet.a
> >
> > I recommend that you build GNet using gcc-mingw, using the instructions and
> > the makefile I posted on
> > Mon, 12 Mar 2001. The message is accessible in the archive at
> > http://www.gnetlibrary.org/pipermail/gnet-dev/2001-March/000010.html
> > In another message I also said you need to use the -lws2_32 switch when
> > compiling your app too.
> > see:
> > http://www.gnetlibrary.org/pipermail/gnet-dev/2001-March/000005.html
> >
> > > These instructions dont come with gcc-mingw, its from:
> > > http://www.mingw.org/mingw-oldfaq.shtml
> > > pexports is at:
> > > http://www.is.lg.ua/~paul/devel/binutils.html
> > >
> > > However, i'm not sure if mingw supports winsock2.
> > > It only has an incomplete winsock2.h
> > They now support winsock2 but you need to install an update. See the
> > message post for more details.
> >
> >
> > > So if gnet-win32 must be built with msvc, then it would be useful to
> > > include a libgnet.a with the distribution. I maybe the above steps could
> > > be added to the build process?
> > Yes, I'll will include all the instructions and makefiles on using GNet
> > with gcc-mingw in the next snaphot. I will do one shortly after I return in
> > two weeks. When I did the current snapshot, gcc was not supported since
> > they need to do an update to support winsock2.h
> >
> > >
> > > ....and on another note: The application i'm working on also uses GTK.
> > > This gnet-win32 currently requires the glib-20010301, but the current
> > > gtk-win32 is 20001226. gtk+-dev-20001226 dont work so well with
> > > glib-20010301 since gtk wants g_main_loop_destroy().
> > > Maybe a new gtk-win32 release is needed that works with glib-20010301.
> > > I dont know if it would be better to build cvs sources in win32 or get Tor
> > > to release again.
> > Tor actually did a relase on March 1, but he did not update his website.
> > The link to the correct files is in the README.win32. You absolutely need
> > these to get things working correctly.
> >
> > >
> > > Maybe soon there can be a GUI gnet example that builds in all the
> > > platforms.
> > Perhaps David could be pressured to write one...?
> >
> > Andy
> >
> >
> >
>
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]