Re: [gnet] gnet problem under xmingw



Hi Tim,



the GNet mailing lists have moved to gnome.org. Please subscribe here:

http://mail.gnome.org/mailman/listinfo/gnet-list

Thanks for the info, I will switch to there ...

> I try to compile gnet-2.0.7 under xmingw (cross MinGW under Linux for
> Win32) using build command as follow:

Cross-compiling for Win32 from Linux isn't really recommended.

Why ? I would love to have 2nd opinion  on this subject.

Most of my jobs are done under Linux and one have one WinXP box
with almost without development tools (such as visual C++).  I will
love to have XMinGW environment around.  I tried Qt as my cross platform
tool before, but since I'm more C programmer, I prefer xmingw+glib/gtk/gnet as
my base toolkit.
 

However, have you tried GNet trunk? [1]
What version of GLib are you trying this with?

>             --enable-static --enable-shared

tried without those two?

I will try this.

> Compiling procedure is OK with some warning message which I think is
> not
> critical.   I then copy the DLL and binary examples to WinXP.
> When I execute "echoserver", "echoclient" ... Nothing happen, it just
> quit !!
> Like this:
>
> C:> echoserver <CR>
> C:>

Intruiging, it should at least show 'Usage: echoserver [PORT]' or
something like that.

> My xmingw can be used to compile ORBit2, and WinSock code without
> problem ... so I think it maybe the Gnet issue.

Might also be a GLib issue. I think there are some GLib bugs for socket
IO on win32 which may be relevant, namely:

http://bugzilla.gnome.org/show_bug.cgi?id=324234
http://bugzilla.gnome.org/show_bug.cgi?id=331214
http://bugzilla.gnome.org/show_bug.cgi?id=357674

> I'm not familiar with WinXP's development, debug environment.  Don't
> know how to debug the above problem (I guess it's run time linker
> issue ??).

I'm afraid neither am I. Maybe someone else can give some more useful
advice. Have you tried putting a print statement right before
gnet_init() to see if your main() function is even called?

Yes I did.  In fact, I wrote a hello.c which only have one
statement: printf("Hello\n");  Rename hello.c to echoserver.c
and use Gnet's build environment to compile this trivial
code ... it does NOT work.
But use "mingw32-gcc hello.c -o hello.exe" works fine.

Anyway, I will check the latest SVN code.  And BTW, I'm using
glib-2.12.7 and I can build ORBit2-2.14.4 without serious problem
been discovered yet.


Thanks
KC

FWIW, I'd try to make things compile and work in a native environment
first where that is easily possible.


> Does anyone try to use Gnet under xmingw environment ?
> Does and utilities such as "strace", "ldd" ... which I can used under
> WinXP
> to debug the problem ?

Cheers
-Tim

[1] svn co http://svn.gnome.org/svn/gnet/trunk gnet



_______________________________________________
gnet mailing list
gnet lists gnetlibrary org
http://lists.gnetlibrary.org/mailman/listinfo/gnet



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]