Git Product home page Git Product logo

Comments (6)

3cky avatar 3cky commented on June 16, 2024

Not sure CMake is much more heavyweight than old Autotools scripts, but I think we could provide something like "bare-bone" Makefile to build mbusd binary only for resource constrained platforms.

from mbusd.

kb0thn avatar kb0thn commented on June 16, 2024

A barebones makefile would be great. On 4 of the last 5 targets I built it for, getting cmake and infrastructure going wasn't possible. Likely m4 and autotools wouldn't have been either. But the bare metal gcc above buildt it fine.

from mbusd.

nickma82 avatar nickma82 commented on June 16, 2024

A barebones makefile would be great.

Do you have a pull request?

Alternatively add a gitlab-ci target and let it compile there, like that

from mbusd.

stale avatar stale commented on June 16, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from mbusd.

vanrein avatar vanrein commented on June 16, 2024

@kb0thn
CMake can also cross-compile, of course, but you would need a suitable toolchain. But a much simpler option should work as well with Debian multiarch:

  1. Have qemu started for foreign binaries
  2. Add your architecture to dpkg
  3. Install gcc:<arch> and binutils:<arch> but keep the cmake for the default platform
  4. cmake and make
  5. Move the software to your target platform

We've been doing these things in a Docker, to avoid removing the platform's own gcc and binutils. Docker may even be able to run your foreign binaries since it has the qemu support builtin, at least on some host platforms.

We did find that some Debian packages are platform-neutral, but then continue to depend a platform-specific form, about which it then got confused. So in reality, your mileage would vary, but this is so simple you should give it a try.

from mbusd.

stale avatar stale commented on June 16, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from mbusd.

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.