Giter VIP home page Giter VIP logo

Comments (5)

dstahlke avatar dstahlke commented on July 26, 2024 1

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.

snorfalorpagus avatar snorfalorpagus commented on July 26, 2024

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.

dstahlke avatar dstahlke commented on July 26, 2024

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#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/

β€”
Reply to this email directly or view it on GitHub
#3 (comment).

from dans-gdal-scripts.

snorfalorpagus avatar snorfalorpagus commented on July 26, 2024

I had assumed the flag would prevent the warnings. You are correct - the program works correctly despite the warnings persisting.

from dans-gdal-scripts.

dstahlke avatar dstahlke commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.