missing source code of examples when build qt6 from source on linux
-
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):
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 whyexamples
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/*
- size: