# PhysFS

Hi,

I know this is a bit off topic, and I apologise, but I noticed some
discussion about physfs in the archives.

Anyway, i’m attempting to build physFS (www.icculus.org/physfs) using
MinGW on Windows. It’s not working at the moment, mainly because it
uses an autoconf type build system which is difficult to get working
under the MinGW sh on windows. I just wondered if anyone else had had
any success with this.

Thanks,

• Tom

Use Msys. It’s also on the mingw page and works with mingw using a sh
shell to run some standard commands and compile libraries. This is how
I compiled physfs and SDL_gfx.

-TomT64

Tom Wilson wrote:> Hi,

I know this is a bit off topic, and I apologise, but I noticed some
discussion about physfs in the archives.

Anyway, i’m attempting to build physFS (www.icculus.org/physfs) using
MinGW on Windows. It’s not working at the moment, mainly because it
uses an autoconf type build system which is difficult to get working
under the MinGW sh on windows. I just wondered if anyone else had had
any success with this.

Thanks,

• Tom

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

TomT64 wrote:

Use Msys. It’s also on the mingw page and works with mingw using a sh
shell to run some standard commands and compile libraries. This is how
I compiled physfs and SDL_gfx.

I have that installed, and I tried that course of action first. But
some of the tools crash when you run configure. Also, configure didn’t
seem to recognose my system type.

In the end I just wrote a makefile for physFS MinGW which worked
straight away.

I don’t know why we have to have all of this automake stuff, it hardly
ever works when you don’t have the correct version of the tools.

-TomT64

Tom Wilson wrote:

Hi,

I know this is a bit off topic, and I apologise, but I noticed some
discussion about physfs in the archives.

Anyway, i’m attempting to build physFS (www.icculus.org/physfs) using
MinGW on Windows. It’s not working at the moment, mainly because it
uses an autoconf type build system which is difficult to get working
under the MinGW sh on windows. I just wondered if anyone else had had
any success with this.

Thanks,

• Tom

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: Makefile_MinGW_Windows
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20041117/c9b0ef47/attachment.asc

OK, I tried again with MSys and got a bit further.

Before, I had folders with spaces in the names. This does not work.

Now without spaces in folder names I get this far:--------------------------------------------------------

gcc -Wl,–base-file,.libs/libphysfs-1-0-0.dll-base
-Wl,-e,_DllMainCRTStartup at 12
-o .libs/libphysfs-1-0-0.dll physfs.lo physfs_byteorder.lo
archivers/.libs
/libarchivers.al platform/.libs/libplatform.al zlib121/.libs/libz.al
c:\MinGw\bin…\lib\gcc-lib\mingw32\3.2.3…\mingw32\bin\ld.exe:
warnin
g: cannot find entry symbol _DllMainCRTStartup at 12; defaulting to 00401000
c:/MinGw/bin/…/lib/gcc-lib/mingw32/3.2.3/…/…/…/libmingw32.a(main.o)(.text+0x
97):main.c: undefined reference to `WinMain at 16' make[2]: *** [libphysfs.la] Error 1 make[2]: Leaving directory`/g/LIB/physfs-1.0.0’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/g/LIB/physfs-1.0.0’
make: *** [all] Error 2
sh-2.04\$

To fix this I had to do:

make LDFLAGS=-lmingw32

And it seemed to work. So forget about my makefile

• Tom

Use Msys. It’s also on the mingw page and works with mingw using a sh
shell to run some standard commands and compile libraries. This is how
I compiled physfs and SDL_gfx.

-TomT64

Tom Wilson wrote:

Hi,

I know this is a bit off topic, and I apologise, but I noticed some
discussion about physfs in the archives.

Anyway, i’m attempting to build physFS (www.icculus.org/physfs) using
MinGW on Windows. It’s not working at the moment, mainly because it
uses an autoconf type build system which is difficult to get working
under the MinGW sh on windows. I just wondered if anyone else had had
any success with this.

Thanks,

• Tom

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl