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
  Pure Maps GPS on Pinephone Mobian godzillest 1 101 54 minutes ago
Last Post: bcnaz
  Mobian repository status henrythemouse 4 351 Yesterday, 05:43 AM
Last Post: biketool
  Keyboard stopped working on disk encryption screen on Mobian after update cowsay 0 49 07-28-2021, 05:46 PM
Last Post: cowsay
  Wipe function on mobian? Wahtone 5 348 07-28-2021, 06:18 AM
Last Post: biketool
  What do you use for voice chat on Mobian? ragreenburg 4 212 07-26-2021, 08:36 AM
Last Post: ragreenburg
  Axolotl on PinePhone / Mobian arno_nuehm 105 28,111 07-23-2021, 01:20 PM
Last Post: Zebulon Walton
  Dark theme (on Mobian)? TRS-80 6 344 07-14-2021, 01:35 PM
Last Post: biketool
  (Gnome) Maps won't start on Mobian? TRS-80 3 255 07-11-2021, 12:09 PM
Last Post: TRS-80
  Mobian Constant Vibration tumblingdog 4 832 07-10-2021, 02:40 AM
Last Post: aed
  Mobian not updating via Software app FOSSagent0 5 606 07-08-2021, 07:37 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 1 Guest(s)