{"id":31641986,"url":"https://github.com/gechandesu/v-cross-compilation-example","last_synced_at":"2026-02-27T09:11:13.086Z","repository":{"id":317604322,"uuid":"1060405109","full_name":"gechandesu/v-cross-compilation-example","owner":"gechandesu","description":"A simple way to build static binaries for different architectures and OSes without a real hardware or virtual machines.","archived":false,"fork":false,"pushed_at":"2025-10-01T21:32:26.000Z","size":8,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T20:14:59.462Z","etag":null,"topics":["build-system","cross-compilation","vlang","vlang-example"],"latest_commit_sha":null,"homepage":"https://github.com/gechandesu/v-cross-compilation-example/releases/tag/v1.0.0","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gechandesu.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-09-19T21:22:33.000Z","updated_at":"2025-10-01T21:32:30.000Z","dependencies_parsed_at":"2025-10-01T23:27:53.361Z","dependency_job_id":"41b56c0e-eb3e-4448-9dc1-55a298e78fa1","html_url":"https://github.com/gechandesu/v-cross-compilation-example","commit_stats":null,"previous_names":["gechandesu/v-cross-compilation-example"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gechandesu/v-cross-compilation-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fv-cross-compilation-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fv-cross-compilation-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fv-cross-compilation-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fv-cross-compilation-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gechandesu","download_url":"https://codeload.github.com/gechandesu/v-cross-compilation-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fv-cross-compilation-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280706841,"owners_count":26376990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"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":["build-system","cross-compilation","vlang","vlang-example"],"created_at":"2025-10-07T03:27:36.142Z","updated_at":"2026-02-27T09:11:13.074Z","avatar_url":"https://github.com/gechandesu.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# V Cross-compilation Example\n\nThis example shows how to build statically linked binaries for different OS\nand platforms for [V](https://vlang.io) programs.\n\nThe build is performed by the make.vsh script in V. I think it could be\nsimplified further, but the current version LGTM. Please read the comments\ninside make.vsh for details.\n\nThe build is done inside a docker container with Debian 13 Trixie. Host is\n`x86_64` Linux.\n\nProduced binaries:\n\n* Linux: `amd64`, `arm64`, `arm32` (`armhf`), `ppc64le`, `s390x`, `riscv64`\n* Windows: `amd64`\n* ~~FreeBSD: `amd64`~~ (disabled for now)\n\nThe example programm is just `Hello World!`. For complex programs you may need\nto add more dependencies in build container.\n\nI relied on Debian's excellent cross-compilation support (see the Dockerfile),\nbut with some elbow grease, you can compile the program for other architectures\nand operating systems.\n\n**Build**\n\nRun:\n\n```\n./make.vsh\n```\n\nmake.vsh script will build the Docker image and run crosscompile.vsh inside\na container.\n\nThe container image is large (almost 3GiB) due to the number of libraries\nrequired for cross-compilation. The size could actually be reduced, but that's\nwhat Debian provides by default in the `crossbuild-essential-*` packages. For\nthe same reason, building the image isn't very fast (up to ~3 minutes for me).\n\nYou may need change `docker_command` in `make.vsh` to `sudo docker` if your\nhost user does not have access to Docker daemon.\n\nLook inside `release/` dir after compilation (:\n\n## See Also\n\n* [MANUAL.md](MANUAL.md) in this repository.\n* `v help build`\n* `v help build-c`\n* https://docs.vlang.io/cross-compilation.html\n* https://wiki.debian.org/CrossCompiling\n* https://en.wikipedia.org/wiki/Cross_compiler#GCC_and_cross_compilation\n* https://clang.llvm.org/docs/CrossCompilation.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgechandesu%2Fv-cross-compilation-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgechandesu%2Fv-cross-compilation-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgechandesu%2Fv-cross-compilation-example/lists"}