Opened 12 years ago

Closed 9 years ago

Last modified 9 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

Description

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.

Thanks.

James C. Tilton

Attachments (1)

64bitCleanBuildNotes.txt (24.6 KB ) - added by JamesCTilton 9 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, 12 years ago

Cc: Ari Jolma added

CC'ing Ari in case he has some clues

comment:2 by Jukka Rahkonen, 9 years ago

Anything new to say about this compile error?

comment:3 by Ari Jolma, 9 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)?

Ari

comment:4 by JamesCTilton, 9 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, 9 years ago

Attachment: 64bitCleanBuildNotes.txt added

Notes on GDAL 1.9.1 build under MinGW/msys

comment:5 by JamesCTilton, 9 years ago

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

comment:6 by Jukka Rahkonen, 9 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, 9 years ago

James,

Could you put the notes here: http://trac.osgeo.org/gdal/wiki/BuildingWithMinGW and maybe delete the old notes from there.

Ari

Note: See TracTickets for help on using tickets.