Compilation Error with Qt 6 on GCC 8.4 - Undefined Reference to std::filesystem::__cxx11::path::_M_split_cmpts()
-
wrote on 7 Mar 2024, 03:07 last edited by
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.
-
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.
As you can see here gcc8 is not supported with Qt6 so this might come from there.
-
As you can see here gcc8 is not supported with Qt6 so this might come from there.
wrote on 7 Mar 2024, 07:06 last edited by@Christian-Ehrlicher Thank you for your response.
1/3