Hints on usig codelite to create a flatpal

General questions regarding the usage of CodeLite
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Hints on usig codelite to create a flatpal

Post 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

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Hints on usig codelite to create a flatpal

Post 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

coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Hints on usig codelite to create a flatpak

Post 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.

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Hints on usig codelite to create a flatpak

Post 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

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

Post Reply