How do I cross compile programs that depend on C libraries (like GUI libraries, etc.) targeting x86_64-apple-darwin from Ubuntu 20.04?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • SonarCloud - Analyze your C and C++ projects with just one click.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • macos-virtualbox

    Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox on x86 CPUs for Windows, Linux, and macOS

    Some workarounds/hacks that might be of interest: 1. Set up Github Actions to do your MacOS builds using one of there runners 2. Install MacOS in a VirtualBox instance (guide)

  • osxcross

    Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)

    I use osxcross routinely for this

  • SonarCloud

    Analyze your C and C++ projects with just one click.. SonarCloud, a cloud-based static analysis tool for your CI/CD workflows, offers a one-click automatic analysis of C and C++ projects hosted on GitHub. Zero configuration and free for open-source projects! Analyze free.

  • fltk-rs

    Rust bindings for the FLTK GUI library.

    Sorry I just saw this, here is a guide to crosscompiling fltk apps:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts