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
  Reboot Modem on Pinephone in Mobian eggmatters 5 510 06-17-2021, 02:08 PM
Last Post: eggmatters
  Axolotl on PinePhone / Mobian arno_nuehm 93 22,148 06-11-2021, 07:16 AM
Last Post: ergo owl
  Mobian not updating via Software app FOSSagent0 2 234 06-07-2021, 09:22 PM
Last Post: Zebulon Walton
  mobile data on mobian not working synaption 1 174 06-02-2021, 03:16 PM
Last Post: Aberts10
  How do you copy and paste into mobian terminal? Do you ssh instead? temp0rary 6 309 06-01-2021, 12:16 PM
Last Post: temp0rary
  Turn by Turn alternative GPS app in Mobian livanti21 27 12,405 05-30-2021, 03:17 AM
Last Post: john_doe
  Can't update OS Mobian Phosh Gon 5 496 05-23-2021, 10:52 PM
Last Post: pajux
  Mobian: 2 week as main phone steves 10 1,526 05-18-2021, 11:55 AM
Last Post: vortex
  Printing from Mobian johnd 2 406 05-13-2021, 01:07 PM
Last Post: dukla2000
  Axolotl on Mobian. What am I doing wrong? quixote 3 475 05-11-2021, 06:09 PM
Last Post: quixote

Forum Jump:


Users browsing this thread: 1 Guest(s)