Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Bug with moc parsing of Include directories
Qt 6.11 is out! See what's new in the release blog

Bug with moc parsing of Include directories

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    Trying to build my project after adding QWinWidget, I'm getting a nastygram out of moc which I suspect may be a result of directory names in the include path that contain spaces:

    10>moc qwinwidget.h
    10> moc: Too many input files specified: 'D:\Users\amonra\Documents\GitHub\DSS\DeepSkyStacker\qwinwidget.h' 'Files' '(x86)\Visual' 'Leak' 'Detector\include'

    My VS2017 C++ Additional Include directories is set to:

    .\GeneratedFiles$(ConfigurationName);.\GeneratedFiles;"C:\Program Files (x86)\Visual Leak Detector\include";.;../Libraw;..\ZClass;..\tools;..\LibTIFF;..\CFitsIO;..\Zlib;%(AdditionalIncludeDirectories)

    and the moc settings in VS project properties are set like this:

    a5c6966c-4d69-47d0-9645-ea2420d9d94e-image.png

    It worked OK when I changed the Additional Include directories to read:

    .\GeneratedFiles$(ConfigurationName);.\GeneratedFiles;C:\PROGRA~2\VISUAL~2\include;.;../Libraw;..\ZClass;..\tools;..\LibTIFF;..\CFitsIO;..\Zlib;%(AdditionalIncludeDirectories)

    So that does rather confirm the problem. Sadly though that is not a good fix, because the 8.3 short name for the directory isn't portable to the systems other members of the project team.

    I suppose I could create a symlink for it but I'm not happy with that either.

    PS Yes, I do know VLD is less useful with Qt than it could be because of all the global objects Qt creates but ...

    Any chance of a fix for 5.12.8 release?

    Thanks, David
    David

    PerdrixP 1 Reply Last reply
    0
    • PerdrixP Perdrix

      Trying to build my project after adding QWinWidget, I'm getting a nastygram out of moc which I suspect may be a result of directory names in the include path that contain spaces:

      10>moc qwinwidget.h
      10> moc: Too many input files specified: 'D:\Users\amonra\Documents\GitHub\DSS\DeepSkyStacker\qwinwidget.h' 'Files' '(x86)\Visual' 'Leak' 'Detector\include'

      My VS2017 C++ Additional Include directories is set to:

      .\GeneratedFiles$(ConfigurationName);.\GeneratedFiles;"C:\Program Files (x86)\Visual Leak Detector\include";.;../Libraw;..\ZClass;..\tools;..\LibTIFF;..\CFitsIO;..\Zlib;%(AdditionalIncludeDirectories)

      and the moc settings in VS project properties are set like this:

      a5c6966c-4d69-47d0-9645-ea2420d9d94e-image.png

      It worked OK when I changed the Additional Include directories to read:

      .\GeneratedFiles$(ConfigurationName);.\GeneratedFiles;C:\PROGRA~2\VISUAL~2\include;.;../Libraw;..\ZClass;..\tools;..\LibTIFF;..\CFitsIO;..\Zlib;%(AdditionalIncludeDirectories)

      So that does rather confirm the problem. Sadly though that is not a good fix, because the 8.3 short name for the directory isn't portable to the systems other members of the project team.

      I suppose I could create a symlink for it but I'm not happy with that either.

      PS Yes, I do know VLD is less useful with Qt than it could be because of all the global objects Qt creates but ...

      Any chance of a fix for 5.12.8 release?

      Thanks, David
      David

      PerdrixP Offline
      PerdrixP Offline
      Perdrix
      wrote on last edited by
      #2

      I managed to work around the problem.

      The original string for that directory was quoted in the Addtional Include directories.

      I found that just inserting C:\Program Files (x86)\Visual Leak Detector\include into the setting for that without using quotes worked OK - that is:

      .\GeneratedFiles$(ConfigurationName);.\GeneratedFiles;C:\Program Files (x86)\Visual Leak Detector\include;.;../Libraw;..\ZClass;..\tools;..\LibTIFF;..\CFitsIO;..\Zlib;%(AdditionalIncludeDirectories)

      I still think that there's some sort of bug there (either in moc or in QT VS Tools).

      HtH
      David

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        You might want to check the bug report system to see if there's something related there.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • PerdrixP Offline
          PerdrixP Offline
          Perdrix
          wrote on last edited by Perdrix
          #4

          Bug now reported - QTVSADDINBUG-777

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved