Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt gives "MIME database is zstd but no support compiled in!"
QtWS25 Last Chance

Building Qt gives "MIME database is zstd but no support compiled in!"

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
libzstdmime
2 Posts 2 Posters 550 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.
  • T Offline
    T Offline
    TGRSM
    wrote on 18 Nov 2022, 18:11 last edited by TGRSM
    #1

    The system is Ubuntu 22.04
    I downloaded Qt 5.15 and ran the following:

    ./configure -prefix /opt/qt/5.15.7 -debug -opensource -nomake examples -nomake tests
    qmake
    make

    After a while I get the following error::

    g++ -c -include .pch/Qt5Core -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-format-overflow -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQFLOAT16_INCLUDE_FAST -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -Iglobal -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty -I../3rdparty/double-conversion/include -I../3rdparty/harfbuzz/src -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I.rcc -I../../include -I../../include/QtCore -I../../include/QtCore/5.15.7 -I../../include/QtCore/5.15.7/QtCore -I.moc -I.tracegen -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../../mkspecs/linux-g++ -o .obj/qmimeprovider.o mimetypes/qmimeprovider.cpp

    mimetypes/qmimeprovider.cpp:71:8: error: #error "MIME database is zstd but no support compiled in!" 71 | # error "MIME database is zstd but no support compiled in!" | ^~~~~

    make[3]: *** [Makefile:55615: .obj/qmimeprovider.o] Error 1 make[3]: Leaving directory '/opt/qt/qt-everywhere-src-5.15.7/qtbase/src/corelib' make[2]: *** [Makefile:173: sub-corelib-make_first] Error 2 make[2]: Leaving directory '/opt/qt/qt-everywhere-src-5.15.7/qtbase/src' make[1]: *** [Makefile:51: sub-src-make_first] Error 2 make[1]: Leaving directory '/opt/qt/qt-everywhere-src-5.15.7/qtbase' make: *** [Makefile:88: module-qtbase-make_first] Error 2

    I tried with

    ./configure -prefix /opt/qt/5.15.7 -debug -opensource -nomake examples -nomake tests -no-zstd

    But got the same error.

    libzstd-dev and libarchive-dev are both installed.

    J 1 Reply Last reply 18 Nov 2022, 19:10
    0
    • T TGRSM
      18 Nov 2022, 18:11

      The system is Ubuntu 22.04
      I downloaded Qt 5.15 and ran the following:

      ./configure -prefix /opt/qt/5.15.7 -debug -opensource -nomake examples -nomake tests
      qmake
      make

      After a while I get the following error::

      g++ -c -include .pch/Qt5Core -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-format-overflow -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQFLOAT16_INCLUDE_FAST -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -Iglobal -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty -I../3rdparty/double-conversion/include -I../3rdparty/harfbuzz/src -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I.rcc -I../../include -I../../include/QtCore -I../../include/QtCore/5.15.7 -I../../include/QtCore/5.15.7/QtCore -I.moc -I.tracegen -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../../mkspecs/linux-g++ -o .obj/qmimeprovider.o mimetypes/qmimeprovider.cpp

      mimetypes/qmimeprovider.cpp:71:8: error: #error "MIME database is zstd but no support compiled in!" 71 | # error "MIME database is zstd but no support compiled in!" | ^~~~~

      make[3]: *** [Makefile:55615: .obj/qmimeprovider.o] Error 1 make[3]: Leaving directory '/opt/qt/qt-everywhere-src-5.15.7/qtbase/src/corelib' make[2]: *** [Makefile:173: sub-corelib-make_first] Error 2 make[2]: Leaving directory '/opt/qt/qt-everywhere-src-5.15.7/qtbase/src' make[1]: *** [Makefile:51: sub-src-make_first] Error 2 make[1]: Leaving directory '/opt/qt/qt-everywhere-src-5.15.7/qtbase' make: *** [Makefile:88: module-qtbase-make_first] Error 2

      I tried with

      ./configure -prefix /opt/qt/5.15.7 -debug -opensource -nomake examples -nomake tests -no-zstd

      But got the same error.

      libzstd-dev and libarchive-dev are both installed.

      J Offline
      J Offline
      JonB
      wrote on 18 Nov 2022, 19:10 last edited by
      #2

      @TGRSM
      Just checking you are aware a pre-built of Qt 5.15.x (3?) is available via apt-get for Ubuntu 22.04?

      1 Reply Last reply
      0

      1/2

      18 Nov 2022, 18:11

      • Login

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