Re: [gnet-devel] [gnet] gnet problem under xmingw



It might be a problem with the path - make sure you either copy the
DLL into the same folder as the executables, or into some system path.
Just one thing to watch out for...

Samuel

On 3/7/07, Tim Müller <t i m zen co uk> wrote:
On Wed, 2007-03-07 at 18:47 +0800, Kuang-Chun Cheng wrote:

Hi,

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

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

> 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.

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

>             --enable-static --enable-shared

tried without those two?


> 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?

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]