Comments (2)
The docs generation depends, in part, on being able to find the file qtcore.index
, which is how GammaRay discovers the documentation directory (for linking to system docs). If your Qt6 install doesn't have HTML copies of the documentation qdocindex files for the installed documentation (like Fedora's doesn't), you may not have a qtcore.index
file in your Qt6 docdir.
You can enable documentation generation in Qt6-without-qtcore.index by explicitly setting QDOC_INDEX_DIR
when configuring, e.g.:
cmake -B _build -S . -DQT_VERSION_MAJOR=6 \
-DQDOC_INDEX_DIR=/usr/share/doc/qt6
(That's the correct value on Fedora, YMMV as to where the docdir actually is. It's the dir that corresponds to /usr/share/doc/qt5/
, if Qt5's qtcore.index
is at /usr/share/doc/qt5/qtcore/qtcore.index
.)
...GammaRay probably should use some other method of discovering the docdir. Perhaps there's a target in Qt6ToolsTools or the like.
from gammaray.
So, the issue here is that GammaRay's documentation build uses the QDOC_INDEX_DIR
to pass an --indexdir
argument to the qdoc
command, which is "required" when using depends
to link to system docs (as docs/manual/gammaray-manual.qdocconf
does).
(Required in the sense that it'll warn if it's not provided with an indexdir to look up the index files.)
But if the index files aren't in that dir, providing a QDOC_INDEX_DIR
path is pointless anyway, since the information that qdoc will want isn't actually found there. (Some distros, like Fedora, don't ship documentation packages for their system Qt6 builds, so the information simply doesn't exist anywhere, to be provided.)
And since it is possible to build the GammaRay docs without those indexes (at the cost of all links to Qt classes/types/etc. being broken), perhaps what makes the most sense is to just make QDOC_INDEX_DIR
optional, and only pass the --indexdir
argument to qdoc
if it's set because a qtcore.index
file is actually discovered.
Even installs without documentation will typically have a global/qt-html-templates-offline.qdocconf
file, as that's part of the qtbase
install, not the documentation. So, that discovery can probably still be kept as a prereq for building the docs.
from gammaray.
Related Issues (20)
- Should GAMMARAY_BUILD_UI be turned off by default in probe only builds?
- Object/Widget inspector Search Bar doesn't Select anything in Large Applications HOT 3
- Wrong logic when looking for Qt HOT 12
- GammaRayConfig.cmake always looks for Qt5 HOT 2
- Crash while inspecting plasma-systemmonitor HOT 5
- "Possibly dangling reference" warning building clienttoolmodel.cpp HOT 3
- Crash when scrolling through xdg-desktop-portal-kde Application Chooser
- Crash in probe
- QSG_VISUALIZE overdraw not working
- QSS debugger? HOT 2
- Build: Picking up Qt modules "from other prefixes" can mix versions, break builds HOT 3
- New qml_lint picks up Qt 5 version, fails the build HOT 2
- Creating a Deployment of Gamma Ray on Windows HOT 4
- Quick Scenes Not Responding HOT 3
- Building against Qt 6.7 fails HOT 5
- Why GAMMARAY_PROBE_ONLY_BUILD implies skipping install? HOT 2
- Quick Scenes: always pan view with <modifier>+click
- Need Help in building GammaRay HOT 3
- Cannot launch GammaRay on Windows 10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gammaray.