Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT_LARGEFILE_SUPPORT macro redifinition issue with Qt4.8.5
Forum Updated to NodeBB v4.3 + New Features

QT_LARGEFILE_SUPPORT macro redifinition issue with Qt4.8.5

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 9.3k Views 1 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.
  • N Offline
    N Offline
    neXus_rk
    wrote on last edited by
    #1

    I'm using the Qt libraries 4.8.5 for Windows (VS 2010, 235 MB) package. When I switch from Qt4.8.4 to Qt4.8.5 I get a lot of warnings of type QT_LARGEFILE_SUPPORT macro redifinition, more precisely one for each moc_xyz.cpp file. Any idea?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      neXus_rk
      wrote on last edited by
      #2

      It seems that QT_LARGEFILE_SUPPORT is defined in qconfig.h now:

      @// Compile time features
      #define QT_ARCH_WINDOWS
      #define QT_LARGEFILE_SUPPORT 64
      #if defined(QT_GRAPHICSSYSTEM_RASTER) && defined(QT_NO_GRAPHICSSYSTEM_RASTER)

      undef QT_GRAPHICSSYSTEM_RASTER

      #elif !defined(QT_GRAPHICSSYSTEM_RASTER)

      define QT_GRAPHICSSYSTEM_RASTER

      #endif@

      I've removed QT_LARGEFILE_SUPPORT from the preprocessor settings of each of my generated moc files. Now, the warning disappears. I've also removed it from the ItemDefinitionGroups in the VS project file, so that the macro will not be set again for new moc files.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        FloGe
        wrote on last edited by
        #3

        As the QT_LARGEFILE_SUPPORT preprocessor definition has been and will be automatically added to projects by the current version of Qt VS Addin (1.1.11), it was easier for me to change qconfig.h to

        @#if !defined(QT_LARGEFILE_SUPPORT)

        define QT_LARGEFILE_SUPPORT 64

        #endif@

        I searched the whole qt folder for QT_LARGEFILE_SUPPORT, and it is always being checked with an #ifdef, it doesn't seem to matter whether it's 1 or 64.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          WhiskeyBravo
          wrote on last edited by
          #4

          Solution from FloGe worked great for me. Thanks for the tip.

          1 Reply Last reply
          0

          • Login

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