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 boot. Richy_T 4 138 05-06-2024, 08:32 AM
Last Post: Richy_T
  PinePhone - boot from microSD laserpyramid 9 912 05-03-2024, 10:09 AM
Last Post: laserpyramid
  pinephone virtual keyboard aular 4 453 04-10-2024, 03:45 PM
Last Post: aular
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 305 04-02-2024, 11:50 AM
Last Post: Kevin Kofler
  Are you using the Pinephone as your daily driver? jro 157 111,170 02-18-2024, 11:33 PM
Last Post: aular
  2020 PinePhone Manjaro CE EU for sale, name your price astrojuanlu 7 1,961 02-14-2024, 04:51 PM
Last Post: astrojuanlu
  pinephone is not bootble for the box. ijij 1 689 01-19-2024, 01:29 PM
Last Post: fxc
  Multiple issues with the Pinephone MTXP 12 2,606 12-28-2023, 07:55 AM
Last Post: MTXP
  pinephone repair shop shengchieh 0 561 12-26-2023, 02:42 PM
Last Post: shengchieh
  sudo nano file saving pinephone beta edition CharlesGnarley 4 1,815 12-22-2023, 03:44 PM
Last Post: Kevin Kofler

Forum Jump:


Users browsing this thread: 1 Guest(s)