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

Multimedia fails to build: moc: Too many input files specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0
    • 5.3.0
    • Build System
    • None
    • Windows 7 64-bit
      qtbase: 22ec4ed86664ab795d2fa47245645b6a73018039
      qtmultimedia: 422099e8ddeddc0631db3a369e3c52f0ffe2f455
    • bfbc17159f85b99827d93046cf419921b19c120b

    Description

      I get moc errors when building Qt 5 dev as a shadow build with the following configure line:

      -debug -developer-build -opensource -confirm-license -nomake tests -nomake examples -skip qtwebkit
      
      E:\Dev\Qt\qt5-d\qtbase\bin\moc.exe -DUNICODE -DWIN32 -DHAVE_WIDGETS -DQMEDIA_DIRECTSHOW_CAMERA -D_CRT_SECURE_NO_WARNINGS -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -D_MSC_VER=1600 -D_WIN32 -IE:/Dev/Qt/qt5/qtbase/mkspecs/win32-msvc2010 -IE:/Dev/Qt/qt5/qtmultimedia/src/plugins/directshow -IE:\Dev\Qt\qt5\qtmultimedia\src\plugins\directshow\camera -IC:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\include -IE:\Dev\Qt\qt5-d\qtbase\include -IE:\Dev\Qt\qt5-d\qtbase\include\QtMultimediaWidgets -IE:\Dev\Qt\qt5-d\qtbase\include\QtMultimedia -IE:\Dev\Qt\qt5-d\qtbase\include\QtWidgets -IE:\Dev\Qt\qt5-d\qtbase\include\QtNetwork -IE:\Dev\Qt\qt5-d\qtbase\include\QtGui -IE:\Dev\Qt\qt5-d\qtbase\include\QtANGLE -IE:\Dev\Qt\qt5-d\qtbase\include\QtCore -I.moc\debug -I. E:\Dev\Qt\qt5\qtmultimedia\src\plugins\directshow\dsserviceplugin.h -o .moc\debug\moc_dsserviceplugin.cpp
      moc: Too many input files specified: 'Files' '(x86)\Microsoft' 'DirectX' 'SDK' '(June' '2010)\include' 'E:\Dev\Qt\qt5\qtmultimedia\src\plugins\directshow\dsserviceplugin.h'
      Usage: E:\Dev\Qt\qt5-d\qtbase\bin\moc.exe [options] [header-file] [@option-file]
      Qt Meta Object Compiler version 67 (Qt 5.3.0)
      
      Options:
        -?, -h, --help           Displays this help.
        -v, --version            Displays version information.
        -o <file>                Write output to file rather than stdout.
        -I <dir>                 Add dir to the include path for header files.
        -F <framework>           Add Mac framework to the include path for header
                                 files.
        -E                       Preprocess only; do not generate meta object code.
        -D <macro[=def]>         Define macro, with optional definition.
        -U <macro>               Undefine macro.
        -M <key=value>           Add key/value pair to plugin meta data
        -i                       Do not generate an #include statement.
        -p <path>                Path prefix for included file.
        -f <file>                Force #include [optional <file>] (overwrite
                                 default).
        -b <file>                Prepend #include <file> (preserve default include).
        -n <which>               Do not display notes (-nn) or warnings (-nw).
                                 Compatibility option.
        --no-notes               Do not display notes.
        --no-warnings            Do not display warnings (implies --no-notes).
        --ignore-option-clashes  Ignore all options that conflict with compilers,
                                 like -pthread conflicting with moc's -p option.
      
      Arguments:
        [header-file]            Header file to read from, otherwise stdin.
        [@option-file]           Read additional options from option-file.
      NMAKE : fatal error U1077: 'E:\Dev\Qt\qt5-d\qtbase\bin\moc.exe' : return code '0x1'
      Stop.
      NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      

      It seems that it can't deal with the spaces in the file names, judging from a quick Google search.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes