Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compiler for desktop platforms #263

Closed
ivankravets opened this issue Jul 31, 2015 · 4 comments
Closed

Cross compiler for desktop platforms #263

ivankravets opened this issue Jul 31, 2015 · 4 comments
Assignees
Milestone

Comments

@ivankravets
Copy link
Member

This isn't a secret that PlatformIO initially was intended to be cross compiling tool for multiple development platforms, not just embedded.

According to the latest issues #258 and #262 I understand that this feature for desktop platforms could be interested for the developers.

native development platform

Create new native development platform which will use host OS's gcc compiler. If it doesn't exist (like on Windows), PlatformIO will install own pre-built package with gcc for Windows. For Mac OS X, Linux - need to show "HELP NOTICE" how gcc can be installed using OS's packages manager (brew, apt, yum, etc.)

Desktop cross-compiling

Create new desktop based platforms:

  • windows_x86
  • windows_amd64
  • linux_i686
  • linux_x86_64
  • darwin_i386
  • darwin_x86_64
  • linux_arm

These platforms could be used for cross compiling between desktop platforms. For example, host is Mac OS, then this platformio.ini should prepare binaries (executable files) for targets:

[env:win32]
platform = windows_x86

[env:mac64]
platform = darwin_x86_64

[env:lin32]
platform = linux_i686

What do you think about it?

@ghost
Copy link

ghost commented Aug 6, 2015

I've been thinking about it myself, seems like a great idea. +1!

@ivankravets
Copy link
Member Author

@WillemMali which is your host OS?

@ghost
Copy link

ghost commented Aug 10, 2015

I'm on Windows (8.1 x64, for entertainment) and Linux (Debian stable x64, for work). I also regularly work with Raspberry Pi's.

@ivankravets
Copy link
Member Author

@WillemMali you can try the latest build. It has support for cross-compiling to windows x86 from Mac OS X, Linux 32/64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant