GithubHelp home page GithubHelp logo

cure-dev / osxcross-toolchains-on-linux Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ktorx/osxcross-toolchains-on-linux

0.0 0.0 0.0 21 KB

Cross Compiler for MacOS

License: GNU General Public License v2.0

osxcross-toolchains-on-linux's Introduction

crossmac

Cross Compiler for MacOS

Problem

  • MacOS is worthy Release Target for a Software since many people use it.
  • MacOS is required officially to develop for MacOS(also because of SDKs) and not everyone owns Mac Devices. Thus, Cross Compiling to MacOS is necessary.
  • For cross-compiling to MacOS , you require Apple SDK and osxcross (wrapper to Clang).
  • Compiling osxcross takes time. Also , Size of osxcross after compilation is >500MB thus making osxcross unfit to compile during CI/CD.

Introduction

  • crossmac is Pre-Built osxcross (MacOS cross compiler) with SDK taken from phracker/MacOSX-SDKs.
  • Github Actions is used to build crossmac.
  • It is heavily compressed(from ~550MB to ~50MB) using zstd.
  • It is ideal to use for CI/CD or if you don't want to compile osxcross.
  • It's built on Void Linux and works properly on not-old Linux glibc Distributions.

Usage

  • Download crossmac and extract it.

  • Add lib/ folder of crossmac to LD_LIBRARY_PATH

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:CROSSMAC/lib/

  • Add bin/ folder of crossmac to PATH

    export PATH=$PATH:CROSSMAC/bin/

  • Make sure that you have clang or gcc installed (clang is preferred).

  • You can use o64-clang / o64-clang++ to target for Intel Mac Devices . You can use oa64-clang / oa64-clang++ to target for Apple Silicon Mac Devices (arm64 devices).

  • Refer osxcross for More Information.

License

GPL-2.0

osxcross-toolchains-on-linux's People

Contributors

lyon1994 avatar varbhat avatar cure-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.