[GRASS-dev] lib/pngdriver Mingw compile error

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Oct 30 15:35:34 EST 2006


I've just been experimenting with compiling GRASS under Mingw32 on 
Windows. Half my time's been spent ripping out Mingw-specific hacks in the 
Makefiles and configure scripts as they make it impossible to see what's 
really going on. Anyway it seems to be compiling and running for the most 
part OK (well as well as can be expected) using shared dlls for the GRASS 
internal libraries, but am having the following problem with lib/pngdriver 
(compiler output reproduced below). I might be able to get to the bottom 
of it but thought perhaps there might be a chance of resolving it much 
more quickly if posting to the list? A few people have done MinGW compiles 
now. I'm using libpng 1.2.12.

Paul


sh-2.04$ cd lib/pngdriver
sh-2.04$ make
gcc -shared -o /c/grass/grass6/dist.i686-pc-mingw32/lib/libgrass_pngdriver.dll -
L/c/grass/grass6/dist.i686-pc-mingw32/lib -Wl,--export-dynamic  -L/c/grass/lib
    OBJ.i686-pc-mingw32/Box.o OBJ.i686-pc-mingw32/Client.o OBJ.i686-pc-mingw32/Co
lor.o OBJ.i686-pc-mingw32/Color_table.o OBJ.i686-pc-mingw32/Draw_bitmap.o OBJ.i6
86-pc-mingw32/Draw_line.o OBJ.i686-pc-mingw32/Draw_point.o OBJ.i686-pc-mingw32/E
rase.o OBJ.i686-pc-mingw32/Graph_close.o OBJ.i686-pc-mingw32/Graph_set.o OBJ.i68
6-pc-mingw32/Line_width.o OBJ.i686-pc-mingw32/Raster_RGB.o OBJ.i686-pc-mingw32/R
aster_int.o OBJ.i686-pc-mingw32/Respond.o OBJ.i686-pc-mingw32/write.o OBJ.i686-p
c-mingw32/write_ppm.o OBJ.i686-pc-mingw32/write_png.o -lgrass_driver -lgrass_gis
  -lgrass_datetime -lxdr -liberty -lws2_32    -lz        -lgrass_gis -lgrass_date
time -lxdr -liberty -lws2_32    -lz     -lpng  -lz
Info: resolving _NCOLORS by linking to __imp__NCOLORS (auto-import)
Info: resolving _standard_colors_rgb by linking to __imp__standard_colors_rgb (a
uto-import)
Info: resolving _cur_y by linking to __imp__cur_y (auto-import)
Info: resolving _cur_x by linking to __imp__cur_x (auto-import)
Info: resolving _screen_left by linking to __imp__screen_left (auto-import)
Info: resolving _screen_right by linking to __imp__screen_right (auto-import)
Info: resolving _screen_top by linking to __imp__screen_top (auto-import)
Info: resolving _screen_bottom by linking to __imp__screen_bottom (auto-import)
OBJ.i686-pc-mingw32/Color_table.o(.text+0x20f): In function `init_color_table':
c:/grass/grass6/lib/pngdriver/Color_table.c:77: variable 'standard_colors_rgb' c
an't be auto-imported. Please read the documentation for ld's --enable-auto-impo
rt for details.
OBJ.i686-pc-mingw32/Color_table.o(.text+0x223):c:/grass/grass6/lib/pngdriver/Col
or_table.c:77: variable 'standard_colors_rgb' can't be auto-imported. Please rea
d the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
make: *** [/c/grass/grass6/dist.i686-pc-mingw32/lib/libgrass_pngdriver.dll] Erro
r 1
sh-2.04$




More information about the grass-dev mailing list