WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Python cross compilation for Picore
« on: June 09, 2020, 01:43:09 PM »
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: 14849
Re: Python cross compilation for Picore
« Reply #1 on: June 09, 2020, 01:55:28 PM »
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, 01:58:21 PM »
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: 14849
Re: Python cross compilation for Picore
« Reply #3 on: June 09, 2020, 02:18:04 PM »
Use the compiletc extension.

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