Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-821

moc: Too many input files specified:

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P1: Critical
    • Resolution: Incomplete
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      Windows x64
      Visual Studio 2019
      plugin 2.6.0
    • Platform/s:
      Windows

      Description

      I just started getting a moc error for a project that worked for months.  I don't know the cause or how to fix it.  I uninstalled/reinstalled Qt, Visual Studio and the plugin.  Nothing has worked.

       

       I did not change any configuration before this started happening. 

      The full path to the project does have spaces

      C:\Users\drogers\Documents\Visual Studio 2010\Projects\ImageViewers\Phot

      However, other Qt projects in that folder compile correctly and this has worked before.

      The example project works fine in this directory.

       C:\Users\drogers\Documents\Visual Studio 2010\Projects\ImageViewers\Phot\test\hellovulkanwidget

      I use Perforce and it did not indicate the project was changed when the error started to occur. 

       

      1>------ Build started: Project: Phot, Configuration: Debug x64 ------
      1>moc Phot.h
      1>moc EditorManager.h
      1>moc ..\QtAsync\include\thinkerqt\signalthrottler.h
      1>moc ..\QtAsync\include\thinkerqt\thinkerbase.h
      1>moc ..\QtAsync\include\thinkerqt\thinkermanager.h
      1> moc: Too many input files specified: 'C:\Users\drogers\Documents\Visual Studio 2010\Projects\ImageViewers\Phot\Phot.h' 'Studio' '2010/Projects/ImageViewers/Phot/Debug/x64/obj/Phot/qmake/temp\"'
      1> Usage: C:/Qt/5.15.1/msvc2019_64/bin/moc [options] [header-file] [@option-file] [MOC generated json file]
      1> Qt Meta Object Compiler version 67 (Qt 5.15.1)
      

      It does this for every Qt header file.  I am blocked by this.

       

        Attachments

        1. msbuild.binlog
          8.30 MB
        2. msbuild.binlog
          8.30 MB

          Issue Links

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

            Activity

              People

              Assignee:
              mecfc Miguel Costa
              Reporter:
              doug_rogers Doug Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes