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. Compilation Error with Qt 6 on GCC 8.4 - Undefined Reference to std::filesystem::__cxx11::path::_M_split_cmpts()
Forum Updated to NodeBB v4.3 + New Features

Compilation Error with Qt 6 on GCC 8.4 - Undefined Reference to std::filesystem::__cxx11::path::_M_split_cmpts()

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.3k Views
  • 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.
  • L Offline
    L Offline
    lafudru
    wrote on 7 Mar 2024, 03:07 last edited by
    #1

    I've recently encountered a compilation issue while trying to build Qt 6 on my system, which is currently using GCC version 8.4. The compilation process was smooth when I worked with Qt 5.15, but with Qt 6, I'm facing the following linker error:

    /usr/bin/ld: src/tools/syncqt/CMakeFiles/syncqt.dir/main.cpp.o: in function std::filesystem::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::filesystem::__cxx11::path>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::filesystem::__cxx11::path::format) [clone .constprop.974]': main.cpp:(.text+0xebc): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()'

    Given that upgrading GCC might introduce significant changes to my current environment, which I'm trying to avoid at the moment, I am seeking advice or workaround solutions that would allow me to compile Qt 6 successfully without upgrading GCC from 8.4.

    C 1 Reply Last reply 7 Mar 2024, 05:15
    0
    • L lafudru
      7 Mar 2024, 03:07

      I've recently encountered a compilation issue while trying to build Qt 6 on my system, which is currently using GCC version 8.4. The compilation process was smooth when I worked with Qt 5.15, but with Qt 6, I'm facing the following linker error:

      /usr/bin/ld: src/tools/syncqt/CMakeFiles/syncqt.dir/main.cpp.o: in function std::filesystem::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::filesystem::__cxx11::path>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::filesystem::__cxx11::path::format) [clone .constprop.974]': main.cpp:(.text+0xebc): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()'

      Given that upgrading GCC might introduce significant changes to my current environment, which I'm trying to avoid at the moment, I am seeking advice or workaround solutions that would allow me to compile Qt 6 successfully without upgrading GCC from 8.4.

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 7 Mar 2024, 05:15 last edited by
      #2

      As you can see here gcc8 is not supported with Qt6 so this might come from there.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      L 1 Reply Last reply 7 Mar 2024, 07:06
      0
      • C Christian Ehrlicher
        7 Mar 2024, 05:15

        As you can see here gcc8 is not supported with Qt6 so this might come from there.

        L Offline
        L Offline
        lafudru
        wrote on 7 Mar 2024, 07:06 last edited by
        #3

        @Christian-Ehrlicher Thank you for your response.

        1 Reply Last reply
        0

        1/3

        7 Mar 2024, 03:07

        • Login

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