Coder Social home page Coder Social logo

Comments (2)

kornelski avatar kornelski commented on July 23, 2024

Unfortunately, cargo is not smart like zig, and does not support cross-compilation of executables out of the box. You have to manually configure a C cross-linker and create and configure a sysroot with Linux's glibc and other C libraries. This is a general design issue with cargo build, not cargo deb.

This is very fiddly and annoying to do on macOS, so I suggest compiling Linux executables in Docker instead.

from cargo-deb.

ximon18 avatar ximon18 commented on July 23, 2024

FYI I've been successfully using the cross tool for our projects for a few years now, and I roughly noted my reasons for doing so here.

from cargo-deb.

Related Issues (20)

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.