Opened 11 years ago

Closed 8 years ago

Last modified 8 years ago

#4624 closed defect (fixed)

Compile Error in MinGW/msys build: 'VSILFILE' undeclared

Reported by: JamesCTilton Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.9.0
Severity: normal Keywords: MinGW/msys build
Cc: Ari Jolma


I apologize if this not the right venue for this question.

Even after following the GDAL wiki hints in building GDAL with MinGW, I encountered the following compile error:

libtool: compile: gcc -c -I../../port -g -O2 -Wall -Wdeclaration-after-statement -DOGR_ENABLED -I/usr/local/include -I/home/jtilton/Downloads/gdal-1.9.0/port -DPIXARLOG_SUPPORT -DZIP_SUPPORT -DJPEG_SUPPORT -DOJPEG_SUPPORT -I../../jpeg/libjpeg -DJPEG_DUAL_MODE_8_12 tif_vsi.c -DDLL_EXPORT -DPIC -o ../../o/.libs/tif_vsi.o

tif_vsi.c: In function '_tiffReadProc':

tif_vsi.c:41:38: error: 'VSILFILE' undeclared (first use in this function)

... and several other similar errors

(This error occurred while building in the directory `/home/jtilton/Downloads/gdal-1.9.0/frmts/gtiff/libtiff')

I am looking for advice on how to resolve this compile error.


James C. Tilton

Attachments (1)

64bitCleanBuildNotes.txt (24.6 KB ) - added by JamesCTilton 8 years ago.
Notes on GDAL 1.9.1 build under MinGW/msys

Download all attachments as: .zip

Change History (8)

comment:1 by Even Rouault, 11 years ago

Cc: Ari Jolma added

CC'ing Ari in case he has some clues

comment:2 by Jukka Rahkonen, 8 years ago

Anything new to say about this compile error?

comment:3 by Ari Jolma, 8 years ago

I'm not building on MinGW any more nowadays. I don't know who does. Maybe ask on the list (also for future issues)?


comment:4 by JamesCTilton, 8 years ago

I more recently successfully built GDAL 1.9.1 under MinGW/msys. I don't have a specific resolution of this particular reported error. However, if anyone wants a set of notes on how I went about building GDAL 1.9.1, they can send me a request via email to James.C.Tilton@….

by JamesCTilton, 8 years ago

Attachment: 64bitCleanBuildNotes.txt added

Notes on GDAL 1.9.1 build under MinGW/msys

comment:5 by JamesCTilton, 8 years ago

No need to send me an email request - I've attached my notes here.

comment:6 by Jukka Rahkonen, 8 years ago

Resolution: fixed
Status: newclosed

Excellent notes. The title of this ticket is Compile Error in MinGW/msys build and it is about GDAL 1.9.0. The CleanBuildNotes are for GDAL 1.9.1 and end result is success. I am closing the ticket as fixed.

comment:7 by Ari Jolma, 8 years ago


Could you put the notes here: and maybe delete the old notes from there.


Note: See TracTickets for help on using tickets.