Page 1 of 1

Hints on usig codelite to create a flatpal

Posted: Wed Aug 02, 2023 2:08 am
by coder99

After creating a new app for my Mint machine using C++, wxWidgets & Codelite, I am considering using a Flatpak to possibly share the app with other users and and being a noob to the Linux world, I am hoping someone might be able to point me the 'right' way and making it easier and quicker to get going.
Any pointers, hints or advice will be most welcome.

FWIW, the app (is intended to) look at, edit and write metadata from/to jpg image files.
TIA


Re: Hints on usig codelite to create a flatpal

Posted: Wed Aug 02, 2023 5:20 pm
by DavidGH

(This is not CodeLite-related; CodeLite isn't a flatpak creator.)

FWIW, these are my Notes-to-self from when I briefly tried creating Flatpaks a few years ago:

Needed to install:

Code: Select all

apt install flatpak flatpak-builder gnome-software-plugin-flatpak

Then:

Code: Select all

flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo

which meant that the following worked:

Code: Select all

 flatpak install flathub org.gnome.Sdk//3.38 

(or whichever org/version was needed at the time) (NB that ‘//’ is essential, else you get a ‘Can’t find' message)

Links:
https://ostechnix.com/how-to-install-an ... -in-linux/
https://docs.flatpak.org/en/latest/buil ... ction.html
https://github.com/flatpak/flatpak/wiki


Re: Hints on usig codelite to create a flatpak

Posted: Thu Aug 03, 2023 2:53 am
by coder99

Understood, however when I look through any topic on creating a new flatpak to package an app, there always seems to be an entry 'build system' and one link in particular
https://opensource.com/article/19/10/ho ... -packaging speaks about the requirements for a GUI based app.

Hence I am trying to see if anyone has packaged an app built with Codelite and, if so how or what other options there might be.


Re: Hints on usig codelite to create a flatpak

Posted: Mon Sep 04, 2023 11:13 pm
by coder99

Just bit of an update:
With a bit of more thought and some experience in (re)building another project, also using wxWidgets
https://discourse.flathub.org/t/how-to- ... atpak/4950

I have come back to this, but, as I posted in another topic here, my question now is:
Can I, using Codelite, generate a CMake project to have a build system Flatpak builder understands?
My first attempts failed when I just select CMake as the build generator