Qt Compatibility Build
Automates Qt application builds across diverse platforms, ensuring compatibility and reducing development overhead.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add qt-compatibility-build npx -- -y @trustedskills/qt-compatibility-build
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"qt-compatibility-build": {
"command": "npx",
"args": [
"-y",
"@trustedskills/qt-compatibility-build"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automates builds for Qt applications, specifically designed to handle projects requiring support for both Deepin V25 (Qt6) and V20 (Qt5) versions simultaneously. It simplifies CMake configuration by automatically detecting the active Qt version (either Qt5 or Qt6) and dynamically mapping associated DTK versions, eliminating the need for hard-coded version references within the build system. This reduces development overhead and ensures compatibility across different environments.
When to use it
- Your project uses a CMake build system.
- You need to support both Deepin V25 (Qt6) and V20 (Qt5) versions from the same codebase.
- Your
CMakeLists.txtfiles contain hard-coded references to Qt5:: or Qt6:: in target_link_libraries. - Your project includes hard-coded DTK:: or Dtk6:: dependencies within
find_packagecalls or linking processes. - You require dynamic library linking based on the detected Qt version.
Key capabilities
- Automatic detection of Qt versions (Qt5 or Qt6).
- Dynamic mapping of DTK versions to the installed Qt version.
- Simplifies CMake configuration for dual-version support (V25/V20).
- Supports dynamic linking based on detected Qt version.
- Automates
find_packagecalls for both Qt and DTK.
Example prompts
- "Build the project with Qt6."
- "Configure CMake for V20 support."
- "Detect the current Qt version in my build system."
Tips & gotchas
- This skill is specifically designed for projects using a CMake build system and requiring both Qt5 and Qt6 compatibility.
- It's not suitable for projects without CMake or those that don’t use Qt.
- The
-DQT_DIRparameter in thecmakecommand is optional; CMake can auto-detect if it isn't provided.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.