Comments (5)
Joshua,
Type this:
CPPFLAGS="${CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=1"
and then do "./configure" and "make". Let me know if that works.
I have not been able to reproduce this on my machine since I've been
unable to install GDAL under MinGW. Is there an easy way? The
instructions on the GDAL page are quite lengthy.
- Dan
On 11/15/2013 05:08 AM, Joshua Arnott wrote:
When compiling on Windows 7 (using mingw32) I get several warnings
like this:|gdal_landsat_pansharp.cc:205:65: warning: unknown conversion type character 'z' in format
|Once compiled the programs function normally, except where there
should be numbers in the output strings, eg:|Output size is zd x zd x zd
|β
Reply to this email directly or view it on GitHub
#3.
from dans-gdal-scripts.
Dan,
I didn't need to do anything special to build GDAL, other than using pre-compiled binaries for the Boost library. http://stackoverflow.com/questions/9598416/boost-binaries-for-mingw/9599214#9599214
Using -D__USE_MINGW_ANSI_STDIO=1
doesn't seem to have any effect, even though it looks to be the right thing to do. http://article.gmane.org/gmane.comp.gnu.mingw.user/27539/
from dans-gdal-scripts.
From a small test program (I still haven't compiled GDAL), it seems
that with |-D__USE_MINGW_ANSI_STDIO=1 the warnings persist but the
program works properly. You can add the "-Wno-format|" flag to silence
the warnings if you wish.
Also, from what I read online (haven't tried it), MinGW-w64 fixes the
whole issue. If using the 64-bit compiler is an option then I would
highly recommend it. Large files (over 2GB) will not work properly with
the 32-bit version.
Let me know if these comments still do not solve the problem.
- Dan
On 11/19/2013 04:35 AM, Joshua Arnott wrote:
Dan,
I didn't need to do anything special to build GDAL, other than using
pre-compiled binaries for the Boost library.
http://stackoverflow.com/questions/9598416/boost-binaries-for-mingw/9599214#9599214Using |-D__USE_MINGW_ANSI_STDIO=1| doesn't seem to have any effect,
even though it looks to be the right thing to do.
http://article.gmane.org/gmane.comp.gnu.mingw.user/27539/β
Reply to this email directly or view it on GitHub
#3 (comment).
from dans-gdal-scripts.
I had assumed the flag would prevent the warnings. You are correct - the program works correctly despite the warnings persisting.
from dans-gdal-scripts.
Yeah, one would think. I discovered this only through experimentation.
Regardless of whether it works now, I still recommend MinGW-w64 if you
will be using files over 1GB in size. Unfortunately this would require
also recompiling GDAL and everything else connected to it as 64 bit.
On 11/20/2013 04:44 AM, Joshua Arnott wrote:
Dan,
I had assumed the flag would prevent the warnings. You are correct -
the program works correctly despite the warnings persisting.β
Reply to this email directly or view it on GitHub
#3 (comment).
from dans-gdal-scripts.
Related Issues (16)
- gdal_trace_outline ignores alpha layer HOT 4
- Building the tool to work with GDAL 2.1.3 HOT 1
- calculate alpha channel directly in gdal_trace_outline HOT 1
- A bug of destructor of BboxBinarySpacePartition classοΌ HOT 1
- Parameter --quiet HOT 1
- Error during installation HOT 2
- GDAL v3 breaking changes HOT 2
- gdal_trace_outline producing incorrect results HOT 1
- Some extra steps to install scripts on MacOS HOT 1
- Smooth edges on gdal_trace_outline HOT 1
- Report invalid options in gdal_landsat_pansharp
- How to install it on a Linux instance of Amazon EC2? HOT 1
- Usage info for gdal_contrast_stretch HOT 1
- Serious bug in gdal_trace_outline (produces broken geometry) HOT 7
- request for gdal_trace_outline.cc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dans-gdal-scripts.