Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10235

configure.exe does not search all compiler (g++) search dirs when looking for feature required headers (like dshow.h, uxtheme.h)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 4.8.0
    • 4.7.0, 4.7.1
    • Build System
    • None
    • cmd.exe with mingw(-w32/w64)
    • e2e48651d4ab5941a5358d213579fbe7490b1f2a

      When using another gcc toolchain than mingw.org's, not all compiler search dirs are searched for headers.

      For example, mingw-w64/w32 from sourceforge (mingw-w64.sourceforge.net) has dshow.h and uxtheme.h, but the features do not get enabled automatically by configure.exe.

      Ideally, configure should search:
      <mingw compiler dir>\include
      <mingw compiler dir>\<triplet>\include
      <mingw compiler dir>\mingw\include

      MinGW.org uses the latter, mingw-w64/w32 uses the second one for now. There is no consensus on where the standard search path is, but there is a way to find the search dirs for the used compiler by running g++ with special options:
      echo | g++ -v -x c -E -
      The output will include the search path for #include "..." and #include <...>
      If configure uses these dirs to search for the required headers, it will find what the compiler finds.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            rubenvb Ruben Van Boxem
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes