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
Forum Updated to NodeBB v4.3 + New Features

Bug with moc parsing of Include directories

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 915 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.
  • P Offline
    P Offline
    Perdrix
    wrote on 12 May 2020, 13:26 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

    P 1 Reply Last reply 13 May 2020, 08:29
    0
    • P Perdrix
      12 May 2020, 13:26

      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

      P Offline
      P Offline
      Perdrix
      wrote on 13 May 2020, 08:29 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
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 13 May 2020, 17:54 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
        • P Offline
          P Offline
          Perdrix
          wrote on 15 May 2020, 10:45 last edited by Perdrix
          #4

          Bug now reported - QTVSADDINBUG-777

          1 Reply Last reply
          1

          1/4

          12 May 2020, 13:26

          • Login

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