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. missing source code of examples when build qt6 from source on linux

missing source code of examples when build qt6 from source on linux

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qdocexamplesqt6.5.0qtcreator 10.0cross compile
1 Posts 1 Posters 740 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.
  • Q Offline
    Q Offline
    qqtang
    wrote on last edited by qqtang
    #1

    Introduction

    I've try to build qt6 from source on an aarch64 linux desktop device, which is not provided by qt-online-installer. So I try to build it on an x86_64 linux in advanced for experimental purpose. However, I found some this wired things on ubuntu20.04, that is, the examples are not shown on the Welcome page on qt creator(10.0.0):
    9efddf21-44bd-42d6-82f6-0efa93bb7127-image.png

    Reproduction

    System Information

    • linux: ubuntu 20.04
    • arch: x86_64
    • qt source code: 6.5.0
    • qt creator: 10.0.0
    • hardware: VM, 32cores CPU@2.4GHz

    Qt libs and tools

    The dependencies are resolved according to official posts.

    build commands:

    # configure
    cd ~
    tar -xf qt-everywhere-src-6.5.0.tar.xz && mv qt-everywhere-src-6.5.0 qt6src
    mkdir qt6build && cd qt6build
    rm CMakeCache.txt && ../qt6src/configure \
    -prefix /opt/qt/6.5.0 \
    -make examples \
    -skip qtwebengine,qtwayland \
    -xcb -xcb-xlib -bundled-xcb-xinput -qpa xcb \
    -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz # and some sql-drivers configurations are ignored as I think it won't affect this phenomenons  :)
    # build
    cmake --build . --parallel
    # install
    cmake --install .
    

    Qt docs

    The dependencies are resolved according to official posts.

    build commands:

    # build
    cmake --build . --target docs --parallel
    # install
    cmake --build . --target install_docs --parallel
    

    Results

    du -sh /opt/qt/6.5.0/:

    947M	/opt/qt/6.5.0/
    

    du -sh /opt/qt/6.5.0/*

    35M	/opt/qt/6.5.0/bin
    443M	/opt/qt/6.5.0/doc
    105M	/opt/qt/6.5.0/examples
    52M	/opt/qt/6.5.0/include
    213M	/opt/qt/6.5.0/lib
    15M	/opt/qt/6.5.0/libexec
    12M	/opt/qt/6.5.0/metatypes
    3.5M	/opt/qt/6.5.0/mkspecs
    556K	/opt/qt/6.5.0/modules
    320K	/opt/qt/6.5.0/phrasebooks
    22M	/opt/qt/6.5.0/plugins
    36M	/opt/qt/6.5.0/qml
    14M	/opt/qt/6.5.0/translations
    

    tree /opt/qt/6.5.0/examples/

    tree /opt/qt/6.5.0/examples/
    /opt/qt/6.5.0/examples/
    ├── assistant
    │   ├── remotecontrol
    │   │   └── remotecontrol
    │   └── simpletextviewer
    │       └── simpletextviewer
     <collapsed>
    └── xml
        ├── dombookmarks
        │   └── dombookmarks
        ├── rsslisting
        │   └── rsslisting
        └── streambookmarks
            └── streambookmarks
    
    742 directories, 599 files
    

    Question

    Examples that can be open in Qt Creator are critical important for Qt beginners and currently the qt(community version) I built is not perfect :(
    I wonder that if there is any hero can point out why examples folders has no project files but compiled binary executable file instead.

    Regards

    Thx and looking forward for professional opinons :)

    Appendix

    • build-log.tar.xz: for more compile details.
      • size:
        • compressed: 2MB
        • extracted: 184MB
      • files:
        • build.ninja
        • config.summary
        • CMakeFiles/*
    1 Reply Last reply
    0

    • Login

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