Cross-compiling Rust for Pinephone
#5
I successfully cross-compiled the examples  Smile

The way I did it was less than optimal though I think. I read through the errors listed when trying to compile them and searched for those libraries on https://archlinuxarm.org/packages. All the packages I needed were available there so I downloaded each package and extracted them. Some had the extension .tar-1 or something similar after unpacking. I renamed them to .tar and unpacked them again. They all had a folder called usr. I copied the folder /usr/aarch64-linux-gnu to make sure I can revert the changes in case I break something and then copied the content of the usr folder of all the downloaded packages into the folder /usr/aarch64-linux-gnu. Then I tried compiling again. Now different libraries were missing (the dependencies of the newly added libraries) and I repeated the whole process for those missing libraries until none were missing and I successfully compiled the examples.

Its not a very elegant solution and involved a lot of copy and pasting so now I will look into how to add the necessary packages to the AUR so others can get those libraries easier


Messages In This Thread
RE: Cross-compiling Rust for Pinephone - by ElusivePine - 07-16-2020, 01:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone Pro EU no warranty P. Siera 0 120 07-21-2025, 12:08 AM
Last Post: P. Siera
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 14 10,973 07-18-2025, 04:24 PM
Last Post: dchang0
  Pinephone visibly losing power while plugged in Hiraghm 2 837 05-23-2025, 12:30 PM
Last Post: Kevin Kofler
  Pinephone Pro Neural Processing Unit biketool 0 775 03-26-2025, 11:01 AM
Last Post: biketool
  contact sales pinephone janjansen1312 2 1,187 03-17-2025, 07:29 PM
Last Post: tllim
  PinePhone Pro P. Siera 4 2,599 03-14-2025, 07:00 PM
Last Post: Kevin Kofler
  [Article] PR Test Bot for PinePhone (Avaota-A1 SBC / Apache NuttX RTOS) lupyuen 0 763 03-08-2025, 02:43 PM
Last Post: lupyuen
Star Selling my Pinephone Pro Explorer Edition zheyon 0 1,238 01-31-2025, 02:27 PM
Last Post: zheyon
  PinePhone earpiece too quiet Waffelo 3 1,596 01-01-2025, 09:41 PM
Last Post: Kevin Kofler
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 15 22,835 12-27-2024, 03:02 AM
Last Post: biketool

Forum Jump:


Users browsing this thread: 1 Guest(s)