paragui-users
[Top][All Lists]
Advanced

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

Re: [paragui-users] Paragui 1.0.4 and MinGW


From: Keith Turner
Subject: Re: [paragui-users] Paragui 1.0.4 and MinGW
Date: Thu, 20 Nov 2003 08:03:40 -0800 (PST)

For win32.c it was failing to compile and I made the following changes.
 I removed the #ifndef/#endif so that the #define would always be
processed by the pre-processor.  It seems that something else had
already defined INVALID_SET_FILE_POINTER to be DWORD(-1) and this was
causing the compile to fail.  When the compile failed I reran the gcc
command using the -E option to get the output of the preproccessor so I
could see what was going on and that is when I saw the DWORD(-1) and I
then compiler error complaining about a parse error before "-" made
sense.  

--- win32.c.orig        Wed Nov 19 15:14:22 2003
+++ win32.c     Wed Nov 19 15:14:36 2003
@@ -60,14 +60,10 @@
  *  for SetFilePointer() just said to compare with 0xFFFFFFFF, so this
should
  *  work as desired
  */
-#ifndef INVALID_SET_FILE_POINTER
 #  define INVALID_SET_FILE_POINTER  0xFFFFFFFF
-#endif
 
 /* just in case... */
-#ifndef INVALID_FILE_ATTRIBUTES
 #  define INVALID_FILE_ATTRIBUTES   0xFFFFFFFF
-#endif


For src/phsyfs/configure I added something to the shell script to make
it use the external version of zlib.h.  For some reason it was not
finding the zlib.h I have in /mingw/include.  However I have no problem
compiling a program like the following 

   #include <zlib.h>

   int main(){}

When it did not find the zlib.h it would resort to trying to use an
internal version of zlib, however this internal version would not
compile.  So I added the "have_zlib_hdr=yes" line below to make it
compile.  This is obviously a hack but it made everything compile.

--- configure.orig      Thu Nov 20 10:56:07 2003
+++ configure   Wed Nov 19 18:33:35 2003
@@ -6177,6 +6177,7 @@
   have_zlib_hdr=yes
 else
   echo "$ac_t""no" 1>&6
+  have_zlib_hdr=yes
 fi
 
     echo $ac_n "checking for zlibVersion in -lz""... $ac_c" 1>&6


I suspect this zlib problem might be the cause of my problem.  When I
first ran my paragui application it was looking for zlib-1.dll so I
copied zlib.dll to zlib-1.dll.   If I move zlib.dll to zlib-1.dll then
it complains that it cannot find zlib.dll.  So I am wondering if
loading duplicate copies of a dll with different names is causing the
problem that I am seeing. I have no idea why the app is looking for
zlib-1.dll.  I am not familiar enough with libtool and the configure
process to resolve this, but I will keep digging.

Thanks,

Keith

--- Antony Shaleynikov <address@hidden> wrote:
> ÷ þÔ×, 20.11.2003, × 03:49, Keith Turner ÐÉÛÅÔ:
> > Has anyone successfully compiled paragui using MinGW and MSYS?
> > 
> > I want to produce a windows version of my game.  I was finally able
> to
> > make paragui compile after changing the following files :
> > 
> > src/physfs/platform/win32.c
> > src/physfs/configure
> > 
> > Now I am able to compile my application on windows, but when I run
> it
> > fails with the following message showing in a dialog popup :
> > 
> >      The application failed to initialize properly (0xc0000005).
> > 
> > Has anyone seen this?  
> > 
> Could you send your changes to me, please?
> I'll try to solve this problem.
> 
> 
> > Thanks
> > 
> > Keith
> 
> -- 
> Software Developer
> SW Department, Minsk
> Antony Shaleynikov address@hidden
> 
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/paragui-users


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree




reply via email to

[Prev in Thread] Current Thread [Next in Thread]