[Freeciv-Dev] building libpng on MinGW?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Brandon J. Van Every wrote:
> From: Andreas Kemnade
> > Brandon J. Van Every writes:
> > >
> > > I have:
> > > /mingw/include/_mingw.h
> > > /mingw/include/windows.h
> > > /usr/include/png.h
> > > /usr/include/zlib.h
> > >
> > Then move /usr/include/png.h and /usr/include/zlib.h to
> > /mingw/include
> > Something similar has to be done for the libs.
> >
> I understand that your suggestions may solve the problem.
> But it is not The Right Way to solve the problem.
Trying to figure out The Right Way on MinGW made me tear out more hair.
I tried your way. It wasn't entirely easy: zlib has a configure script
that will take --prefix=/mingw, but libpng requires manual makefile
tweaking. And unfortunately, your way doesn't work either. :-( Still
at the same error:
checking png.h usability... no
checking png.h presence... yes
configure: WARNING: png.h: present but cannot be compiled
configure: WARNING: png.h: check for missing prerequisite headers?
configure: WARNING: png.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@xxxxxxx. ##
configure: WARNING: ## ------------------------------------ ##
checking for png.h... yes
checking for png_read_image in -lpng... no
configure: error: "You have to install libpng"
I'm thinking at this point, I'm finding it ok, but I'm not building it
properly? I used:
libpng 1.2.5
makefile.cygwin
prefix=/usr/local
CC=gcc -mno-cygwin
MINGW=1
MINGW_CCFLAGS=-I/mingw/include
MINGW_LDFLAGS=-L/mingw/lib
ZLIBINC=/usr/local/include
ZLIBLIB=/usr/local/lib
I can build libpng and install it fine, but when I "make test-installed"
I get:
vanevery@VANGOGH ~/libpng-1.2.5
$ make test-installed
gcc -mno-cygwin -I/mingw/include -I/usr/local/include -Wall -O3 -funroll
-loops -fomit-frame-pointer \
`/usr/local/bin/libpng12-config --cflags` pngtest.c \
-L/usr/local/lib \
-o pngtesti.exe `/usr/local/bin/libpng12-config --ldflags`
C:/DOCUME~1/vanevery/LOCALS~1/Temp/cc69aaaa.o(.text+0x20be):pngtest.c:
undefined reference to `png_libpng_ver'
C:/DOCUME~1/vanevery/LOCALS~1/Temp/cc69aaaa.o(.text+0x2809):pngtest.c:
undefined reference to `png_libpng_ver'
make: *** [test-installed] Error 1
Cheers, www.indiegamedesign.com
Brandon Van Every Seattle, WA
Taking risk where others will not.
- [Freeciv-Dev] configure won't find libpng on MinGW, Andreas Kemnade, 2003/11/01
- [Freeciv-Dev] Re: configure won't find libpng on MinGW, Brandon J. Van Every, 2003/11/01
- [Freeciv-Dev] Re: configure won't find libpng on MinGW, Brandon J. Van Every, 2003/11/01
- [Freeciv-Dev] Re: configure won't find libpng on MinGW, Andreas Kemnade, 2003/11/01
- [Freeciv-Dev] canonical MinGW, configure suspicions, Brandon J. Van Every, 2003/11/01
- [Freeciv-Dev] building libpng on MinGW?,
Brandon J. Van Every <=
- [Freeciv-Dev] Re: building libpng on MinGW?, Per I. Mathisen, 2003/11/02
- [Freeciv-Dev] Re: building libpng on MinGW?, Andreas Kemnade, 2003/11/03
- [Freeciv-Dev] Re: building libpng on MinGW?, Per I. Mathisen, 2003/11/03
- [Freeciv-Dev] Re: building libpng on MinGW?, Raimar Falke, 2003/11/02
- [Freeciv-Dev] Re: building libpng on MinGW?, Vasco Alexandre Da Silva Costa, 2003/11/02
- [Freeciv-Dev] Re: building libpng on MinGW?, Per I. Mathisen, 2003/11/02
- [Freeciv-Dev] canonical MinGW, configure suspicions, Andreas Kemnade, 2003/11/03
|
|