Skip to content
View AlienCCAPI's full-sized avatar

Block or report AlienCCAPI

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
AlienCCAPI/README.md

pinephone-gtk-rs-starter

This repo is a starter for creating a custom styled Gtk UI app in Rust for PinePhone

pinephone rust app pinephone rust app dev

Compilation

Currently I compile this on my desktop for quick iteration and my phone to test out.

  • in debug mode, the app will be about the size of a pinephone
  • in release mode, the app will maximize to take up available space (assumed to be running on phone)

When i compile on the phone, I have to increase my amount of ram by uzing zram

sudo swapoff /dev/zram0 
sudo zramctl --reset /dev/zram0 
sudo zramctl --find --size 2048M
sudo mkswap /dev/zram0 
sudo swapon /dev/zram0

Setup Rust for cross compilation

I haven't figured this stuff out yet, I could use some help on these details.

  1. get gcc setup for aarch64
sudo apt-get install gcc-aarch64-linux-gnu
sudo dnf install gcc-aarch64-linux-gnu
  1. get rust setup for aarch64
rustup install stable-aarch64-unknown-linux-gnu

add to ~/.cargo/config

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
  1. Make sure you have aarch64 dependencies for Gtk

???

  1. Start the compile!
PKG_CONFIG_ALLOW_CROSS=1 cargo build --target aarch64-unknown-linux-gnu --release

Pinned Loading

  1. AlienCCAPI AlienCCAPI Public

    AlienCCAPI/AlienCCAPI is a ✨special ✨ repository

    Rust

  2. journals journals Public

    A repository of abbreviations for references, e.g., for conferences, journals, institutes, etc.

    Lua

  3. newCWP newCWP Public

    Common Web Platform (CWP) features module. We strongly recommend using it for all new CWP projects. Future features will be delivered here.