{"id":17123476,"url":"https://github.com/hasboeuf/cutearm","last_synced_at":"2026-04-15T06:30:55.377Z","repository":{"id":98755605,"uuid":"204071117","full_name":"hasboeuf/cutearm","owner":"hasboeuf","description":"Cross compile Qt for ARM","archived":false,"fork":false,"pushed_at":"2019-08-27T18:50:12.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T17:27:25.250Z","etag":null,"topics":["arm","compilation","qt","raspberry-pi","raspi"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/hasboeuf.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}},"created_at":"2019-08-23T21:17:30.000Z","updated_at":"2022-02-10T18:43:36.000Z","dependencies_parsed_at":"2023-06-25T22:09:38.861Z","dependency_job_id":null,"html_url":"https://github.com/hasboeuf/cutearm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hasboeuf/cutearm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasboeuf%2Fcutearm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasboeuf%2Fcutearm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasboeuf%2Fcutearm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasboeuf%2Fcutearm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasboeuf","download_url":"https://codeload.github.com/hasboeuf/cutearm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasboeuf%2Fcutearm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31829681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"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":["arm","compilation","qt","raspberry-pi","raspi"],"created_at":"2024-10-14T18:26:14.757Z","updated_at":"2026-04-15T06:30:55.360Z","avatar_url":"https://github.com/hasboeuf.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## cutearm\n\nTo compile Qt for Raspberry, there are generally two ways:\n\n1. compile on device\n2. use cross-compilation\n\nFirst solution might be slow: have you ever tried to compile Qt on Raspberry 1? It takes more than 24 hours and you're not really satisfied when compilation breaks 1 hour after you started it while you're in your bed dreaming to get those `.so` files.\n\nSecond solution works well but is not easy to setup and maintained.\n\nHere is a third solution which takes advantage of docker ARM images in order to work directly on Raspbian like on your Raspberry but within a container.\n\n## Overall steps\n\n* Create a Raspbian docker image\n* Build a container based on this image with Qt compilation deps\n* SSH on this container and perform compilation steps of Qt\n\n## Steps\n\n* `./build-raspbian-docker-image`: create a raspbian docker image\n* `./build-raspbian-docker-container`: create the container able to compile Qt\n* `./start-raspbian-docker-container`: start the container with volumes mounted\n\nUser is `worker`, password too.\n\n* `docker inspect` to get the container IP\n* `ssh worker@ip`\n* Then:\n\n```bash\nwget http://download.qt.io/official_releases/qt/5.12/5.12.0/single/qt-everywhere-src-5.12.0.tar.xz\nwget http://download.qt.io/official_releases/qt/5.12/5.12.0/single/md5sums.txt\nmd5sum --check --ignore-missing md5sums.txt\ntar xf qt-everywhere-src-5.12.0.tar.xz\nmkdir build\ncd build\n\nPKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \\\n../qt-everywhere-src-5.12.0/configure \\\n-v \\\n-opengl es2 -eglfs \\\n-no-gtk \\\n-opensource -confirm-license -release \\\n-reduce-exports \\\n-force-pkg-config \\\n-nomake examples -no-compile-examples \\\n-skip qtwayland \\\n-skip qtwebengine \\\n-skip qt3d \\\n-skip qtscript \\\n-no-feature-geoservices_mapboxgl \\\n-qt-pcre \\\n-no-pch \\\n-ssl \\\n-evdev \\\n-system-freetype \\\n-fontconfig \\\n-glib \\\n-prefix /usr/workspace/Qt5.12.0 \\\n-qpa eglfs \\\n-sctp \\\nQMAKE_CFLAGS=\"-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp\" \\\nQMAKE_CXXFLAGS=\"-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp\" \\\nQMAKE_LIBS_EGL=\"-lEGL -lGLESv2\" QMAKE_LIBS_OPENVG=\"-lEGL -lOpenVG -lGLESv2\" \\\nQMAKE_LIBDIR_OPENGL_ES2=/opt/vc/lib QMAKE_INCDIR_OPENGL_ES2=\"/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux\" \\\nQMAKE_LIBDIR_EGL=/opt/vc/lib QMAKE_INCDIR_EGL=\"/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux\" \\\nQMAKE_LIBDIR_OPENVG=/opt/vc/lib QMAKE_INCDIR_OPENVG=\"/opt/vc/include /opt/vc/include/interface/vcos/pthreads /opt/vc/include/interface/vmcs_host/linux\" \\\n-DEGLFS_DEVICE_INTEGRATION=eglfs_brcm\n\nmake\nmake install\n```\n\nThis takes around 10h to compile Qt on an average machine.\n\n## Test\n\n```bash\nmkdir qt-sample-app-build\ncd qt-sample-app-build\n../Qt5.12.0/bin/qmake -recursive ../qt-sample-app/qt-sample-app.pro\nmake\n./qt-sample-app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasboeuf%2Fcutearm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasboeuf%2Fcutearm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasboeuf%2Fcutearm/lists"}