{"id":29860525,"url":"https://github.com/userdocs/qbt-host-deps","last_synced_at":"2026-02-01T02:12:15.534Z","repository":{"id":305735174,"uuid":"1012982419","full_name":"userdocs/qbt-host-deps","owner":"userdocs","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-25T00:00:34.000Z","size":101,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-25T02:16:19.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/userdocs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-03T07:21:29.000Z","updated_at":"2025-09-13T19:48:42.000Z","dependencies_parsed_at":"2025-08-09T00:16:15.873Z","dependency_job_id":"65728782-eda9-4072-9aac-862a8b50cdbf","html_url":"https://github.com/userdocs/qbt-host-deps","commit_stats":null,"previous_names":["userdocs/qbt-host-deps"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/userdocs/qbt-host-deps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fqbt-host-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fqbt-host-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fqbt-host-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fqbt-host-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/userdocs","download_url":"https://codeload.github.com/userdocs/qbt-host-deps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Fqbt-host-deps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28964826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T01:25:30.373Z","status":"online","status_checked_at":"2026-02-01T02:00:08.102Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-30T03:42:39.819Z","updated_at":"2026-02-01T02:12:15.528Z","avatar_url":"https://github.com/userdocs.png","language":null,"readme":"# QBT Host Dependencies\n\n## Cross-compiling Qt6 with CMake\n\nWhen cross-compiling Qt6 with CMake, you need to meet one of these conditions to successfully build it:\n\n### Option 1: Install QEMU emulation on the host machine (Recommended)\n\n**Note:** This must be done on the host machine, not inside the build container.\n\n#### Debian/Ubuntu-based systems\n\n```bash\nsudo apt install qemu-user-static binfmt-support\n```\n\n#### Alpine Linux\n\n```bash\nsudo apk add qemu qemu-openrc\n```\n\n### Option 2: Use prebuilt Qt6 static libraries\n\nIf you cannot install QEMU on the host (e.g., when using GitHub Actions `container:`), you can install a custom prebuilt Qt6 static library to `/usr/local` and set `-D QT_HOST_PATH` with CMake when building Qt6.\n\n#### Installation commands\n\n```bash\ncurl -sLO https://github.com/userdocs/qbt-qt6/releases/latest/download/x86_64-qt6-iconv.tar.xz\ntar -xf x86_64-qt6-iconv.tar.xz --strip-components=1 -C /usr/local\nldconfig\n```\n\n**Note:** This method works inside Docker containers (like GitHub workflow `container:`) where QEMU cannot be installed on the host.\n\n## Why This Project Exists\n\n### The Problem\n\nCross-compiling Qt6 presents several challenges:\n\n1. **QEMU Requirement**: Qt6 cross-compilation typically requires QEMU emulation to be available during the build process.\n\n2. **GitHub Actions Limitations**: When using `container:` in GitHub workflows, you cannot modify the host runner, so QEMU emulation is unavailable.\n\n3. **Qt6 Configuration Complexity**: Installing system Qt6 often results in linking configurations that differ from desired static builds. Qt6 has numerous auto-toggles and features that make configuration difficult.\n\n4. **Build Time**: Without proper setup, you're forced to build Qt6 twice during the build process, significantly increasing build time.\n\n### The Solution\n\nThis project provides a fallback method that solves these issues:\n\n- **Option 1** (Recommended): Use QEMU emulation for temporary emulation during the build process\n- **Option 2** (Fallback): Use prebuilt static Qt6 libraries when QEMU is not available\n\n### Why Not System Qt6?\n\n- System Qt6 installations are often linked differently than required for static builds\n- Qt6's auto-configuration can override desired settings\n- Dependency management becomes unnecessarily complex\n- Build reproducibility is compromised\n\nThat's why this project exists - to provide a proper solution for cross-compiling Qt6 without the usual complications.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserdocs%2Fqbt-host-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserdocs%2Fqbt-host-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserdocs%2Fqbt-host-deps/lists"}