WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Python cross compilation for Picore  (Read 1851 times)

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Python cross compilation for Picore
« on: June 09, 2020, 10:43:09 AM »
hello all,

anyone help me for this :

Im using PiCore beta 10 with Rpi 3b+

Now i want compilation will generate an executable from my python program to transfer it to my rpi

Thus, the machine language used on a Raspberry Pi, which is based on ARM architecture, is different from the one used on a desktop computer, which uses the X86 architecture (32 or 64 bits).

I found just cross compilation c/c++ not for python

How can I make it ?


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Python cross compilation for Picore
« Reply #1 on: June 09, 2020, 10:55:28 AM »
It would be easier to compile natively on the RPi - it would also probably be better to use piCore-11.x rather than piCore-10.x, which is not actively maintained.

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Re: Python cross compilation for Picore
« Reply #2 on: June 09, 2020, 10:58:21 AM »
It would be easier to compile natively on the RPi - it would also probably be better to use piCore-11.x rather than piCore-10.x, which is not actively maintained.

How to compile natively on the RPI

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Python cross compilation for Picore
« Reply #3 on: June 09, 2020, 11:18:04 AM »
Use the compiletc extension.

If you look under http://repo.tinycorelinux.net/11.x/armv7/tcz/src there are many examples.