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

Unknown flag '-' when compiling qtbase on Windows 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.1
    • 5.5.1
    • Build System, Documentation
    • None
    • Windows 7 64-bit
      MSVC 2013
    • 60964b2be9b4a021e8b6d5b7e189b0c38e43434b

    Description

      I configure Qt (ba84e346b8a3eba6686fa18e1ef546def98073fa) with:

      configure -debug -developer-build -opensource -confirm-license -nomake tests -nomake examples
      

      While building, I get the error:

              cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -W0 /Fd..\..\..\lib\qtfreetyped.pdb -DUNICODE -DWIN32
       -DWIN64 -DFT2_BUILD_LIBRARY -DTT_CONFIG_OPTION_SUBPIXEL_HINTING -DQT_NO_DYNAMIC_CAST -DQT_NO_EXCEPT
      IONS -IC:\dev\qtbase\src\3rdparty\freetype -I. -IC:\dev\qtbase\src\3rdparty\freetype\include -IC:\de
      v\qtbase\mkspecs\win32-msvc2013 -Fo.obj\debug\ @C:\Users\Mitch\AppData\Local\Temp\ftsystem.obj.3740.
      1529.jom
      ftsystem.c
      flex: unknown flag '-'.  For usage, try
              flex --help
              (set PATH=C:/dev/gnuwin32/bin;%%PATH:)=^)%%) & flex --noline --nounistd --outfile=Tokenizer.
      cpp C:\dev\qtbase\src\3rdparty\angle\src\compiler\preprocessor\Tokenizer.l
      

      I've tried using flex from the following sources:

      All versions were the same (2.5.4), except the one in 5.5 branch of qt5.git, which is 2.5.37.

      PATH:

      %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\dev\Python34;C:\dev\Perl\c\bin;C:\dev\Perl\perl\site\bin;C:\dev\Perl\perl\bin;C:\dev\Git\cmd;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Redist\D3D\x64;C:\dev\qt5.5\gnuwin32\bin
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes