How to Set Up For Mobian Development?
#1
I've got the Aarch64 toolchain installed on my desktop Linux Mint computer, and have even compiled "hello world" that runs on my phone.
I've tried setting up development on the phone itself using Code::Blocks.

But in order to develop my own software, and also to port existing software to the phone, I'm going to need some way to link libraries such as GTK and libGL.

Has anybody set up a cross-development system for Mobian on the pine phone, and/or gotten a useful development system working ON the pine phone?

If so, could you share some information on how you managed it? Undecided

Thanks.
#2
Cross-development can be a bit tricky, so the best I can suggest it you create a debian VM (or a debian-based docker container) and enable the arm64 architecture, so you can get the proper development libraries.

An alternative way of setting up a docker container can be found on the gitlab wiki (it's primarily intended for helping cross-packaging rather than merely cross-compiling, but that's a start)
#3
(08-03-2020, 06:06 PM)a-wai Wrote: Cross-development can be a bit tricky, so the best I can suggest it you create a debian VM (or a debian-based docker container) and enable the arm64 architecture, so you can get the proper development libraries.

An alternative way of setting up a docker container can be found on the gitlab wiki (it's primarily intended for helping cross-packaging rather than merely cross-compiling, but that's a start)
Well, my desktop runs Mint, which is Debian (sort of...) but I can't compile on it for the Aarch64... So I guess I'll need to install an Aarch64 debian distro (Mobian even?) in Qemu?

Has anybody done that yet?
#4
Mint D.E. ?
#5
(08-03-2020, 07:24 PM)bcnaz Wrote: Mint D.E.  ?
Until now I didn't know such a creature existed.

Boy I'm tempted to switch. If I could do so w/o losing all my data.. sigh.
#6
It is probably not for everyone, but I kinda like it on one of my laptops....
It is a fairly new offering, based on Debian directly, rather than Ubuntu.
So many choices, looking at Zorin Education 15.2 for one of my Grandsons.
#7
(08-03-2020, 06:31 PM)Hiraghm Wrote: Well, my desktop runs Mint, which is Debian (sort of...) but I can't compile on it for the Aarch64... So I guess I'll need to install an Aarch64 debian distro (Mobian even?) in Qemu?

I'd suggest you rather install and amd64 debian in qemu (it will be much faster, assuming your host machine is also amd64), and then:

Code:
sudo dpkg --add-architecture arm64
sudo apt update

This will enable the arm64 repos. You can then install arm64 dev packages using <package>:arm64, for instance to install gtk3 dev package, it would be something like:

Code:
sudo apt install libgtk-3-dev:arm64

And then cross-compile your software the "usual" way.
#8
(08-04-2020, 07:45 AM)a-wai Wrote:
(08-03-2020, 06:31 PM)Hiraghm Wrote: Well, my desktop runs Mint, which is Debian (sort of...) but I can't compile on it for the Aarch64... So I guess I'll need to install an Aarch64 debian distro (Mobian even?) in Qemu?

I'd suggest you rather install and amd64 debian in qemu (it will be much faster, assuming your host machine is also amd64), and then:

Code:
sudo dpkg --add-architecture arm64
sudo apt update

This will enable the arm64 repos. You can then install arm64 dev packages using <package>:arm64, for instance to install gtk3 dev package, it would be something like:

Code:
sudo apt install libgtk-3-dev:arm64

And then cross-compile your software the "usual" way.

Thanks!
I got Qemu up, running MintDE, and I got arm64 added... So now I need to get codeblocks to use the arm64 libraries.


Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 15 1,515 03-25-2024, 09:07 AM
Last Post: anonymous
  cant verify mobian image at website gnugpg penguins_rule 0 70 03-18-2024, 08:54 PM
Last Post: penguins_rule
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 1,715 11-22-2023, 11:46 AM
Last Post: aLoop100o
  What actions needed to keep on mobian testing user641 3 1,688 09-05-2023, 06:44 AM
Last Post: Zebulon Walton
  Mobian boot failed with zstd message after upgrade. Mahgue 0 581 09-01-2023, 11:29 AM
Last Post: Mahgue
  how to update mobian over tor vusra 13 6,540 07-09-2023, 08:57 PM
Last Post: vusra
  opensnitch outbound firewall now works on mobian vusra 2 1,799 07-09-2023, 01:37 AM
Last Post: vusra
  Using Nativefier on PP64 with Mobian paulcarton 0 577 07-05-2023, 03:57 AM
Last Post: paulcarton
  Has anyone got briar-desktop running on mobian? vusra 5 2,863 06-19-2023, 03:02 PM
Last Post: vusra
  Axolotl on PinePhone / Mobian arno_nuehm 219 160,392 03-26-2023, 01:49 AM
Last Post: shulamy

Forum Jump:


Users browsing this thread: 1 Guest(s)