Building for mingw with configure script
Hi, I downloaded the 2.0.33 hg tag as a tar.bz2 and tried to ./configure and make the library:
../libgd-2.0.33/configure --host=x86_64-w64-mingw32 --with-jpeg=/jpeg --with-zlib=/zlib
The configuring went fine, but suring the make step, a DLL related error pops up: {{{
!sh
x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../libgd-2.0.33/src -I. -I/gnuplotinstall/include/freetype2 -I/gnuplotinstall/include -I/gnuplotinstall/include -I/jpeg/include -g -O2 -MT gdfontg.lo -MD -MP -MF .deps/gdfontg.Tpo -c ../libgd-2.0.33/src/gdfontg.c -DDLL_EXPORT -DPIC -o gdfontg.lo ../libgd-2.0.33/src/gdfontg.c:4380:32: error: variable 'gdFontGiant' definition is marked dllimport ../libgd-2.0.33/src/gdfontg.c:4380:32: warning: 'gdFontGiant' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] make[2]: *** [gdfontg.lo] Error 1 make[2]: Leaving directory `/home/Ruben/libgd' }}}
This may have to do with the libtool deciding on -DDLL_EXPORT and you using NONDLL and the nonstandard WIN32 (should be _WIN32) and BGDWIN32 macros to decide on __declspec things. I tried configuring with --disable-shared and --disable-static, but both (!) popped up the same error. Perhaps the ifdefs need to be modified to also cater for libtool's DLL_EXPORT?
Thanks!
I have attached config.log
Comments (5)
-
-
how do you build the current trunk. We are trying to build it and have noticed everything has changed
-
Were you able to compile this? I'm trying to compile GD from sources for Win7 and have been unable to get it working. Got the same error you reported here.
-
this project is dead. I suggest that we all give up.
-
- changed status to resolved
- Log in to comment
Can you try using current trunk please?