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
  Mobian Bulleyes aberrio 0 81 12-16-2024, 08:27 AM
Last Post: aberrio
  Mobian, Suspend, and Audio Playback biketool 0 128 12-11-2024, 12:56 AM
Last Post: biketool
  Upgrade to Mobian (Trixie) Staging biketool 12 707 12-06-2024, 05:46 PM
Last Post: vusra
  how to update mobian over tor vusra 14 9,484 12-04-2024, 07:01 PM
Last Post: vusra
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 41 9,483 11-27-2024, 10:39 AM
Last Post: fernando_c_m
  atinout binaries for mobian/debian? NeutralGrey 4 1,526 10-31-2024, 04:16 AM
Last Post: astylethargic
  Mobian-Kicksecure? 3460p 0 922 05-26-2024, 02:09 PM
Last Post: 3460p
  Mobian repository status henrythemouse 16 12,450 04-10-2024, 10:02 AM
Last Post: diederik
  cant verify mobian image at website gnugpg penguins_rule 0 972 03-18-2024, 08:54 PM
Last Post: penguins_rule
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 4,131 11-22-2023, 11:46 AM
Last Post: aLoop100o

Forum Jump:


Users browsing this thread: 2 Guest(s)