George Brink | 20 Mar 19:25
Favicon

Need libraries for Win32, but not cygwin nor VC2005

Did anyone compile last agar with VC6 or MinGW?
VC2005 libraries requires manifests, cygwin requires it's own dll... I do 
not have neither and would really like to have standalone Win32 dlls and 
libs.
Julien Nadeau | 20 Mar 23:56
Favicon

Re: Need libraries for Win32, but not cygwin nor VC2005

On Thu, Mar 20, 2008 at 02:28:23PM -0400, George Brink wrote:
> Did anyone compile last agar with VC6 or MinGW?
> VC2005 libraries requires manifests, cygwin requires it's own dll... I do 
> not have neither and would really like to have standalone Win32 dlls and 
> libs.

Cygwin does not require its own DLLs if you compile with -mno-cygwin, which
is the case with Agar.
George Brink | 21 Mar 20:13
Favicon

Re: Need libraries for Win32, but not cygwin nor VC2005

Julien,

Thanks for promptly reply, but...

First, let me describe my environment: I use MinGW under Windows XP and 
Windows Vista. I do not use MSYS. I prefer to compile my programs with 
mingw32-make directly from Window's cmd.exe, or run it from .bat file. That 
allows me to compile Win32 program without any additions (like VS2005 
manifests, cygwin.dll or any other kind of extra dlls at all), my programs 
require only msvcrt.dll, kernel32.dll, user32.dll for system level shared 
libraries and able to run even on Win'98 (yes, I still have it too). No 
manifests, no cygwin.dll, not even mingw10.dll.
But without MSYS or Cygwin environment I can not use configure script.
MinGW's gcc can import and use libraries from VC6 or VS2003 for any 
additional libraries (what's how I write for SDL).
But I do not have VC6 myself and therefore can not compile Agar with it.
I have VS Toolkit 2003, but it does not understand .vsproj files. (Makefiles 
for nmake would be useful for me.)

I even downloaded and install cygwin, tried to run configure, and it failed 
with 'no SDL installed', by looking in configure script I see it is looking 
for sdl-config file, but in my environment I have just SDL.dll, SDL.lib and 
SDLmain.lib (from precompiled VC6 package I downloaded from libsdl.org)
For SDL I can even compile without import libraries at all:
  gcc -c -o hello.o -IC:\xlibs\include hello.c
  gcc -o hello.exe -d C:\xlibs\bin\SDL.dll C:\xlibs\lib\winmain.o hello.o
And that is directly from windows' own command line shell cmd.exe.

I hope, now you understand where I am standing and can answer: where should 
I put -mno-cygwin key?
(Continue reading)

Julien Nadeau | 22 Mar 00:48
Favicon

Re: Need libraries for Win32, but not cygwin nor VC2005

On Fri, Mar 21, 2008 at 03:13:14PM -0400, George Brink wrote:
> Julien,
> 
> Thanks for promptly reply, but...
> 
> First, let me describe my environment: I use MinGW under Windows XP and 
> Windows Vista. I do not use MSYS. I prefer to compile my programs with 
> mingw32-make directly from Window's cmd.exe, or run it from .bat file. That 
> allows me to compile Win32 program without any additions (like VS2005 
> manifests, cygwin.dll or any other kind of extra dlls at all), my programs 
> require only msvcrt.dll, kernel32.dll, user32.dll for system level shared 
> libraries and able to run even on Win'98 (yes, I still have it too). No 
> manifests, no cygwin.dll, not even mingw10.dll.
> But without MSYS or Cygwin environment I can not use configure script.
> MinGW's gcc can import and use libraries from VC6 or VS2003 for any 
> additional libraries (what's how I write for SDL).
> But I do not have VC6 myself and therefore can not compile Agar with it.
> I have VS Toolkit 2003, but it does not understand .vsproj files. (Makefiles 
> for nmake would be useful for me.)
> 
> I even downloaded and install cygwin, tried to run configure, and it failed 
> with 'no SDL installed', by looking in configure script I see it is looking 
> for sdl-config file, but in my environment I have just SDL.dll, SDL.lib and 
> SDLmain.lib (from precompiled VC6 package I downloaded from libsdl.org)
> For SDL I can even compile without import libraries at all:
>   gcc -c -o hello.o -IC:\xlibs\include hello.c
>   gcc -o hello.exe -d C:\xlibs\bin\SDL.dll C:\xlibs\lib\winmain.o hello.o
> And that is directly from windows' own command line shell cmd.exe.

What you need to do in this case is to compile SDL from source into your
(Continue reading)

George Brink | 25 Mar 21:48
Favicon

Re: Need libraries for Win32, but not cygwin nor VC2005

> What you need to do in this case is to compile SDL from source into your
> Cygwin environment, Agar's configure script needs to see the "sdl-config"
> script. This is described here:
> http://libagar.org/docs/compile-cygwin.html
well.... I tried to do exactly as it said in that instruction.
SDL was compiled without any problem at all. And I can use it in my 
environment.

But with Agar I still have a lot of troubles.
First of all - what would be lost if I configure agar 
with --enable-threads=no?
And is it at all possible to compile Agar under Windows with threading and 
without cygwin?

but anyway, I tried to do under cygwin:
   ./configure --enable-treads=no
it worked fine. With some workarounds found FreeType library. Failed to find 
OpenGL (I am sure it is installed), but I need SDL right now, so I ignore 
it.

  make depend
no error.

And make failed with error:
==> agar-core-config
make[1]: Entering directory 
`/cygdrive/c/Libs/agar/agar-1.3.2/agar-core-config'
make[2]: Entering directory 
`/cygdrive/c/Libs/agar/agar-1.3.2/agar-core-config'
cc -mno-cygwin -D_AGAR_INTERNAL -D_BSD_SOURCE -I/cygdrive/c/Libs/agar/agar-1.3.2 
(Continue reading)

Julien Nadeau | 26 Mar 03:34
Favicon

Re: Need libraries for Win32, but not cygwin nor VC2005

On Tue, Mar 25, 2008 at 04:48:23PM -0400, George Brink wrote:
> > What you need to do in this case is to compile SDL from source into your
> > Cygwin environment, Agar's configure script needs to see the "sdl-config"
> > script. This is described here:
> > http://libagar.org/docs/compile-cygwin.html
> well.... I tried to do exactly as it said in that instruction.
> SDL was compiled without any problem at all. And I can use it in my 
> environment.
> 
> But with Agar I still have a lot of troubles.
> First of all - what would be lost if I configure agar 
> with --enable-threads=no?

Thread safety. This allows you to issue GUI calls safely from different
threads. It is useful if you want to do things like network queries in the
background, for example.

> And is it at all possible to compile Agar under Windows with threading and 
> without cygwin?

With the Visual Studio build, we have to use a small library called
Pthread-win32 (http://sources.redhat.com/pthreads-win32). I haven't tried
it with mingw32 yet, but it should work fine if you link against
libpthreadGC2.a.

> but anyway, I tried to do under cygwin:
>    ./configure --enable-treads=no
> it worked fine. With some workarounds found FreeType library. Failed to find 
> OpenGL (I am sure it is installed), but I need SDL right now, so I ignore 
> it.
(Continue reading)


Gmane