Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112659

How to build qt 6.5.0 on Ubuntu 18.04 ?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.5.0
    • Build System: CMake
    • None
    • Linux/X11

    Description

      Hi there. I try to build Qt 6.5.0 on Ubuntu 18.04. Here is my config options:

      ./configure \
        -ltcg \
        -release \
        -c++std c++17 \
        -optimize-size \
        -openssl-linked \
        -qt-libjpeg \
        -qt-libpng \
        -qt-pcre \
        -qt-harfbuzz \
        -no-icu \
        -no-directfb \
        -no-linuxfb \
        -no-eglfs \
        -no-feature-testlib \
        -no-feature-vnc \
        -feature-optimize_full \
        -nomake examples \
        -nomake tests
      

      But I got this error:

      opt: libjpeg val: qt
      Overriding option 'libjpeg' with 'qt' (was: 'undefined')
      opt: libpng val: qt
      Overriding option 'libpng' with 'qt' (was: 'undefined')
      opt: pcre val: qt
      opt: harfbuzz val: qt
      Overriding option 'harfbuzz' with 'qt' (was: 'undefined')
      '/usr/local/bin/cmake' '-DQT_INTERNAL_FRESH_REQUESTED:BOOL=TRUE' '--fresh' '-DQT_BUILD_EXAMPLES=FALSE' '-DQT_BUILD_TESTS=FALSE' '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE=ON' '-DINPUT_cxx14=yes' '-DINPUT_cxx17=yes' '-DINPUT_cxx20=no' '-DINPUT_cxx2b=no' '-DINPUT_optimize_size=yes' '-DINPUT_openssl=linked' '-DINPUT_libjpeg=qt' '-DINPUT_libpng=qt' '-DINPUT_pcre=qt' '-DINPUT_harfbuzz=qt' '-DINPUT_icu=no' '-DINPUT_directfb=no' '-DINPUT_linuxfb=no' '-DINPUT_eglfs=no' '-DINPUT_testlib=no' '-DINPUT_vnc=no' '-DINPUT_optimize_full=yes' '-G' 'Ninja' '/usr/src/qtbase-6.5.0'
      -- The CXX compiler identification is GNU 8.4.0
      -- The C compiler identification is GNU 8.4.0
      -- The ASM compiler identification is GNU
      -- Found assembler: /usr/bin/cc
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
                  -DCMAKE_C_FLAGS_DEBUG=-g
                  -DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
                  -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
                  -DCMAKE_CXX_FLAGS_DEBUG=-g
                  -DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
                  -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
                  -DCMAKE_OBJCOPY=/usr/bin/objcopy
                  -DCMAKE_C_STANDARD=11
                  -DCMAKE_C_STANDARD_REQUIRED=ON
                  -DCMAKE_CXX_STANDARD=17
                  -DCMAKE_CXX_STANDARD_REQUIRED=ON
                  -DCMAKE_MODULE_PATH:STRING=/usr/src/qtbase-6.5.0/cmake/platforms
      CMake Error at cmake/QtExecutableHelpers.cmake:474 (message):
        Unable to build syncqt: Change Dir:
        /usr/src/qtbase-6.5.0/src/tools/syncqt/configure_time_bins
      
      
      
        Run Build Command(s):/usr/local/bin/ninja -v && [1/1] : && /usr/bin/c++ -s
        -O2 -g -DNDEBUG CMakeFiles/syncqt.dir/main.cpp.o -o
        /usr/src/qtbase-6.5.0/libexec/syncqt && :
      
        FAILED: /usr/src/qtbase-6.5.0/libexec/syncqt
      
        : && /usr/bin/c++ -s -O2 -g -DNDEBUG CMakeFiles/syncqt.dir/main.cpp.o -o
        /usr/src/qtbase-6.5.0/libexec/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.936]':
      
        /usr/include/c++/8/bits/fs_path.h:185: undefined reference to
        `std::filesystem::__cxx11::path::_M_split_cmpts()'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::generateAliasedHeaderFileIfTimestampChanged(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&,
        std::__cxx11::basic_string<char, std::char_traits<char>,
        std::allocator<char> > const&,
        std::chrono::time_point<std::chrono::_V2::system_clock,
        std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)':
      
        /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::generateAliasedHeaderFileIfTimestampChanged(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&,
        std::__cxx11::basic_string<char, std::char_traits<char>,
        std::allocator<char> > const&,
        std::chrono::time_point<std::chrono::_V2::system_clock,
        std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:1525: undefined reference
        to `std::filesystem::last_write_time(std::filesystem::__cxx11::path
        const&)'
      
        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::format) [clone .constprop.953]':
      
        /usr/include/c++/8/bits/fs_path.h:178: undefined reference to
        `std::filesystem::__cxx11::path::_M_split_cmpts()'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::updateOrCopy(std::filesystem::__cxx11::path const&,
        std::filesystem::__cxx11::path const&)':
      
        /usr/include/c++/8/bits/fs_path.h:546: undefined reference to
        `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path
        const&) const'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::updateOrCopy(std::filesystem::__cxx11::path const&,
        std::filesystem::__cxx11::path const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:1474: undefined reference
        to `std::filesystem::copy(std::filesystem::__cxx11::path const&,
        std::filesystem::__cxx11::path const&, std::filesystem::copy_options,
        std::error_code&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:1477: undefined reference
        to `std::filesystem::remove(std::filesystem::__cxx11::path const&,
        std::error_code&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:1486: undefined reference
        to `std::filesystem::copy(std::filesystem::__cxx11::path const&,
        std::filesystem::__cxx11::path const&, std::filesystem::copy_options,
        std::error_code&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::writeIfDifferent(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&,
        std::__cxx11::basic_string<char, std::char_traits<char>,
        std::allocator<char> > const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:1550: undefined reference
        to `std::filesystem::__cxx11::path::parent_path() const'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::writeIfDifferent(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&,
        std::__cxx11::basic_string<char, std::char_traits<char>,
        std::allocator<char> > const&)':
      
        /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::writeIfDifferent(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&,
        std::__cxx11::basic_string<char, std::char_traits<char>,
        std::allocator<char> > const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:1552: undefined reference
        to `std::filesystem::create_directories(std::filesystem::__cxx11::path
        const&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:1561: undefined reference
        to `std::filesystem::file_size(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `utils::normilizedPath(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:113: undefined reference to
        `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `utils::normilizedPath(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&)':
      
        /usr/include/c++/8/bits/fs_path.h:178: undefined reference to
        `std::filesystem::__cxx11::path::_M_split_cmpts()'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::makeHeaderAbsolute(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&) const':
      
        /usr/include/c++/8/bits/fs_path.h:381: undefined reference to
        `std::filesystem::__cxx11::path::has_root_directory() const'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::copyGeneratedHeadersToStagingDirectory(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&, bool)':
      
        /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::copyGeneratedHeadersToStagingDirectory(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&, bool)':
      
        /usr/include/c++/8/bits/fs_path.h:178: undefined reference to
        `std::filesystem::__cxx11::path::_M_split_cmpts()'
      
        /usr/include/c++/8/bits/fs_path.h:178: undefined reference to
        `std::filesystem::__cxx11::path::_M_split_cmpts()'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::copyGeneratedHeadersToStagingDirectory(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&, bool)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:675: undefined reference to
        `std::filesystem::create_directories(std::filesystem::__cxx11::path
        const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::copyGeneratedHeadersToStagingDirectory(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&, bool)':
      
        /usr/include/c++/8/bits/fs_dir.h:441: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::recursive_directory_iterator(std::filesystem::__cxx11::path
        const&, std::filesystem::directory_options, std::error_code*)'
      
        /usr/include/c++/8/bits/fs_dir.h:456: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::copyGeneratedHeadersToStagingDirectory(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&, bool)':
      
        /usr/include/c++/8/bits/shared_ptr_base.h:614: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::copyGeneratedHeadersToStagingDirectory(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> > const&, bool)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::operator*() const'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::operator++()'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:681: undefined reference to
        `std::filesystem::remove(std::filesystem::__cxx11::path const&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:678: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::parseVersionScriptContent(std::__cxx11::basic_string<char,
        std::char_traits<char>, std::allocator<char> >,
        SyncScanner::ParsingResult&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:904: undefined reference to
        `std::filesystem::relative(std::filesystem::__cxx11::path const&,
        std::filesystem::__cxx11::path const&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:902: undefined reference to
        `std::filesystem::relative(std::filesystem::__cxx11::path const&,
        std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::parseHeader(std::filesystem::__cxx11::path const&,
        SyncScanner::ParsingResult&, unsigned int)':
      
        /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::processHeader(std::filesystem::__cxx11::path const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:743: undefined reference to
        `std::filesystem::last_write_time(std::filesystem::__cxx11::path const&,
        std::error_code&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::processHeader(std::filesystem::__cxx11::path const&)':
      
        /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::processHeader(std::filesystem::__cxx11::path const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:768: undefined reference to
        `std::filesystem::weakly_canonical(std::filesystem::__cxx11::path const&,
        std::error_code&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:768: undefined reference to
        `std::filesystem::__cxx11::path::root_name() const'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::processHeader(std::filesystem::__cxx11::path const&)':
      
        /usr/include/c++/8/bits/fs_path.h:546: undefined reference to
        `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path
        const&) const'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function
        `SyncScanner::processHeader(std::filesystem::__cxx11::path const&)':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:763: undefined reference to
        `std::filesystem::create_directories(std::filesystem::__cxx11::path
        const&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:770: undefined reference to
        `std::filesystem::relative(std::filesystem::__cxx11::path const&,
        std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `SyncScanner::sync()':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:614: undefined reference to
        `std::filesystem::last_write_time(std::filesystem::__cxx11::path const&,
        std::error_code&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `SyncScanner::sync()':
      
        /usr/include/c++/8/bits/fs_dir.h:441: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::recursive_directory_iterator(std::filesystem::__cxx11::path
        const&, std::filesystem::directory_options, std::error_code*)'
      
        /usr/include/c++/8/bits/fs_dir.h:456: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `SyncScanner::sync()':
      
        /usr/include/c++/8/bits/shared_ptr_base.h:614: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `SyncScanner::sync()':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::operator*() const'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::operator++()'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `SyncScanner::sync()':
      
        /usr/include/c++/8/bits/fs_dir.h:260: undefined reference to
        `std::filesystem::status(std::filesystem::__cxx11::path const&)'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `SyncScanner::sync()':
      
        /usr/include/c++/8/bits/fs_path.h:1059: undefined reference to
        `std::filesystem::__cxx11::path::_M_find_extension() const'
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `SyncScanner::sync()':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:562: undefined reference to
        `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()'
      
      
        CMakeFiles/syncqt.dir/main.cpp.o: In function `main':
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:536: undefined reference to
        `std::filesystem::weakly_canonical(std::filesystem::__cxx11::path const&)'
      
        /usr/src/qtbase-6.5.0/src/tools/syncqt/main.cpp:537: undefined reference to
        `std::filesystem::__cxx11::path::root_name() const'
      
        collect2: error: ld returned 1 exit status
      
        ninja: build stopped: subcommand failed.
      
      
      
      Call Stack (most recent call first):
        cmake/QtToolHelpers.cmake:667 (qt_internal_add_configure_time_executable)
        src/tools/syncqt/CMakeLists.txt:25 (qt_internal_add_configure_time_tool)
      
      
      -- Configuring incomplete, errors occurred!
      CMake Error at cmake/QtProcessConfigureArgs.cmake:994 (message):
        CMake exited with code 1.
      
      

      But this config options working for Qt 6.4.3. What's going on ? How could I build Qt 6.5.0 ?

      Thanks.

      Attachments

        Activity

          People

            qtbuildsystem Qt Build System Team
            fengyu fengyu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: