Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Config after 6.3.1. installation

Config after 6.3.1. installation

Scheduled Pinned Locked Moved Unsolved Qt 6
6 Posts 3 Posters 1.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.
  • B Offline
    B Offline
    britsfp
    wrote on last edited by britsfp
    #1

    Hello everyone,
    After Qt6.3.1. got installed by openSUSE Leap 15.4 upgrade, I get this error when trying to compile and run a project::
    ====================
    /prog/Qt6.3/6.3.1/gcc_64/include/QtCore/qfile.h:49: error: filesystem: No such file or directory
    In file included from ../../../../Qt6.3/6.3.1/gcc_64/include/QtCore/qdir.h:44:0,
    from ../../../../Qt6.3/6.3.1/gcc_64/include/QtCore/QtCore:75,
    from ../Maxbet/mainwindow.h:5,
    from ../Maxbet/main.cpp:1:
    ../../../../Qt6.3/6.3.1/gcc_64/include/QtCore/qfile.h:49:10: fatal error: filesystem: No such file or directory
    #include <filesystem>
    ^~~~~~~~~~~~
    ======================
    Does anyone know what causes this??
    That gfile.h file is a header file installed when Qt is installed, and I do not think one should modify it. So the "filesystem" file seem to be missing ??

    Regards
    Frik Brits

    jsulmJ 1 Reply Last reply
    0
    • B britsfp

      Hello everyone,
      After Qt6.3.1. got installed by openSUSE Leap 15.4 upgrade, I get this error when trying to compile and run a project::
      ====================
      /prog/Qt6.3/6.3.1/gcc_64/include/QtCore/qfile.h:49: error: filesystem: No such file or directory
      In file included from ../../../../Qt6.3/6.3.1/gcc_64/include/QtCore/qdir.h:44:0,
      from ../../../../Qt6.3/6.3.1/gcc_64/include/QtCore/QtCore:75,
      from ../Maxbet/mainwindow.h:5,
      from ../Maxbet/main.cpp:1:
      ../../../../Qt6.3/6.3.1/gcc_64/include/QtCore/qfile.h:49:10: fatal error: filesystem: No such file or directory
      #include <filesystem>
      ^~~~~~~~~~~~
      ======================
      Does anyone know what causes this??
      That gfile.h file is a header file installed when Qt is installed, and I do not think one should modify it. So the "filesystem" file seem to be missing ??

      Regards
      Frik Brits

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @britsfp said in Config after 6.3.1. installation:

      #include <filesystem>

      filesystem is a C++17 feature - did you enable C++17 in your project?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      1
      • jsulmJ jsulm

        @britsfp said in Config after 6.3.1. installation:

        #include <filesystem>

        filesystem is a C++17 feature - did you enable C++17 in your project?

        B Offline
        B Offline
        britsfp
        wrote on last edited by
        #3

        @jsulm Hello,
        I looked around in the IDE and do not see a place where I can enable this.
        Can you please tell me where to go in the IDE for this.

        Regards
        Frik Brits

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

          Hi,

          It's not at the IDE level but your project file.

          Are you using qmake or cmake ?

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

          B 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            It's not at the IDE level but your project file.

            Are you using qmake or cmake ?

            B Offline
            B Offline
            britsfp
            wrote on last edited by
            #5

            @SGaist , Hello,
            I am using qmake because I had huge problems with cmake.

            Regards
            Frik Brits

            jsulmJ 1 Reply Last reply
            0
            • B britsfp

              @SGaist , Hello,
              I am using qmake because I had huge problems with cmake.

              Regards
              Frik Brits

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @britsfp Add

              CONFIG += c++17
              

              to your pro file.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2

              • Login

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