Re: glib compilation problem on windows

----- Original Message -----
From: "Tor Lillqvist" <tml iki fi>
To: "chatiman" <chatiman free fr>
Cc: <gtk-app-devel-list gnome org>
Sent: Monday, April 12, 2004 12:58 AM
Subject: Re: glib compilation problem on windows

 > Do I need to edit all the makefiles to add the -mno-cygwin flag ?

No, you supply it in the CC environment variable to the configure

CC='gcc -mno-cygwin' ./configure ...

ok, because I had tried CFLAGS=-mno-cygwin ./configure but it dont appeared
to work

 > >  > I have use the --enable-static option with configure.

 > > Why?

 > I want to build standalone win32 application like gimp, xchat, ...

By standalone, do you mean "not depending on any nonsystem DLLs"? That
is a futile attempt...
This was a bit stupid I agree.

 > The problem is that the programs works under cygwin but
 > can't find the libgtk-win32-2.0-0.dll for example under
 > win32. Building a static binary will probably prevent this error

It's a very hard solution to a trivial problem. Surely it is much
easier just to make sure an executable will find its DLLs. What's
wrong with setting PATH? (You could even set it in a .bat file that is
used to start the executable, instead of globally.)
This is true the solution was trivial : just copy the dlls founds in the
bin directory to the directory containing the exe

Thanks, you've been really helpfull

gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

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