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

msvc13: midl errors then "-prefix" configure option specifies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.4.0, 5.4.1
    • ActiveX Support
    • None
    • Windows 7 Professional Service Pack 1

      If I configure and build Qt 5.4.0 or 5.4.1 from source, and use the following command lines:
      configure.bat -release -platform win32-msvc2013 -plugin-sql-sqlite -opensource -confirm-license -target xp -mp
      make
      make install

      everything works correctly without errors.
      but if I change configure command line adding "-prefix" parameter, it fails:

      configure.bat -prefix %DIR_BIN% -release -platform win32-msvc2013 -plugin-sql-sqlite -opensource -confirm-license -target xp -mp

      build log has the following errors:

      IDL generation failed trying to run program release\comapp.exe!
      midl : command line error MIDL1003 : error returned by the C preprocessor (2)
      c1 : fatal error C1083: Cannot open source file: '.obj\release\comapp.idl': No such file or directory
      Couldn't open .obj\release\comapp.tlb for read
      Failed to register server!

      I am completely sure that "midl.exe" is in the path in both cases (I can execute it successfully in same cmd.exe instance). so it sounds like configure bug.

      see also attached logs (zipped due to large size).

        1. no-ant.zip
          308 kB
        2. no-prefix.zip
          424 kB
        3. prefix.zip
          416 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            SSE4 Konstantin Ivlev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes