Opened 6 years ago

Closed 6 years ago

#4459 closed defect (fixed)

gdalsrsinfo doesn't build when OGR is disabled

Reported by: cgodkin Owned by: warmerdam
Priority: normal Milestone: 1.9.1
Component: ConfigBuild Version: 1.9.0
Severity: normal Keywords: build INCLUDE_OGR_FRMTS
Cc:

Description

I had been using gdal 1.8.1 with INCLUDE_OGR_FRMTS = YES commented out in nmake.opt but when I upgraded to 1.9.0, commenting out this variable causes the link of gdalsrsinfo to fail. I notice that this application is not in 1.8.1 which probably explains why I didn't have this problem before.

Thanks!

Change History (3)

comment:1 Changed 6 years ago by cgodkin

Perhaps gdalsrsinfo.exe just belongs in the OGR_PROGRAMS group in apps/makefile.vc instead of on the "default" group. I moved it there in my sandbox and the build finishes quietly now.

comment:2 Changed 6 years ago by cgodkin

Version: unspecified1.9.0

comment:3 Changed 6 years ago by Even Rouault

Component: defaultConfigBuild
Milestone: 1.9.1
Resolution: fixed
Status: newclosed
Summary: 1.9.0 Win64 build fails without INCLUDE_OGR_FRMTS = YESgdalsrsinfo doesn't build when OGR is disabled

r23775 /trunk/gdal/apps/gdalsrsinfo.cpp: Fix build of gdalsrsinfo when OGR support is disabled (#4459)

r23776 /branches/1.9/gdal/apps/gdalsrsinfo.cpp: Fix build of gdalsrsinfo when OGR support is disabled (#4459)

Note: See TracTickets for help on using tickets.