Skip to content

Add flatpak build manifest - #405

Open
RomanKharin wants to merge 1 commit into
Denvi:masterfrom
RomanKharin:master
Open

RomanKharin wants to merge 1 commit into
Denvi:masterfrom
RomanKharin:master

Conversation

@RomanKharin

@RomanKharin RomanKharin commented Jul 18, 2020 •

Copy link
Copy Markdown

SImple manifest for Flatpak.
Notes:

  • Tested on org.Kde.Platform 5.14
  • Uses --device=all, due lack of serial/device portal in flatpak
  • No desktop files

Prepare

  • install flatpak-builder
  • download sdk (flatpak install org.Kde.Platform//5.14 org.Kde.Sdk//5.14)

Build

flatpak-builder build-dir src/com.github.Denvi.Candle.yaml

Test

flatpak-builder --run build-dir src/com.github.Denvi.Candle.yaml Candle

@RomanKharin
RomanKharin marked this pull request as ready for review July 18, 2020 09:16
@bieli

bieli commented Dec 21, 2022

Copy link
Copy Markdown

Great tip ;-)

On Ubuntu Linux 20.04.5 LTS you need additional steps:

sudo apt install flatpak-builder # + 5MB
flatpak install flathub org.kde.Sdk/x86_64/5.14 # + 1 GB
flatpak install flathub org.kde.Platform/x86_64/5.14 # + 1GB
mkdir build-dir
flatpak-builder build-dir src/com.github.Denvi.Candle.yaml

but I can see warnings/errors here like this:

$ flatpak-builder build-dir src/com.github.Denvi.Candle.yaml
Downloading sources
Starting build of com.github.Denvi.Candle
Cache miss, checking out last cache hit
========================================================================
Building module candle in /home/USER/tmp/Candle/.flatpak-builder/build/candle-2
========================================================================
Running: cmake .
CMake Error: The current CMakeCache.txt directory /run/build/candle/CMakeCache.txt is different than the directory /home/USER/tmp/Candle/src where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
Error: module candle: Proces child exited with code 1

After rm build-dir/ -rf I can't see success.

@RomanKharin Maybe you have a solution for this?

@mar0x

mar0x commented Dec 22, 2022

Copy link
Copy Markdown

Hello,
Please try the version with cmake file fixes here: https://github.com/mar0x/Candle/tree/fixes .
The binary flatpak package uploaded here: https://github.com/mar0x/Candle/releases/tag/v1.1.9

@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale due to inactivity.

@github-actions github-actions Bot added the Stale label Aug 22, 2025
@github-actions github-actions Bot removed the Stale label Sep 16, 2025
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown

This PR has been automatically marked as stale due to inactivity.

@github-actions github-actions Bot added the Stale label Nov 4, 2025
@nnutter

nnutter commented Jun 24, 2026

Copy link
Copy Markdown

I've never worked with flatpak, etc. and I'll update again if I get more info but this manifest built and ran for me,

app-id: com.github.Denvi.Candle
runtime: org.kde.Platform
runtime-version: "5.15-25.08"
sdk: org.kde.Sdk
command: candle
finish-args:
  - --share=ipc
  - --socket=wayland
  - --filesystem=host
  - --device=all
modules:
  - name: candle
    buildsystem: cmake
    config-opts:
      - -DCMAKE_BUILD_TYPE=Release
    post-install:
      - install -D /app/candle /app/bin/candle
    sources:
      - type: git
        url: https://github.com/Denvi/Candle.git
        tag: v11.2
flatpak-builder --force-clean --user --install-deps-from=flathub --install build-dir com.github.Denvi.Candle.yaml
flatpak run com.github.Denvi.Candle

Now to try to connect to my GRBL CNC which I also have no experience with...

@github-actions github-actions Bot removed the Stale label Jun 24, 2026
@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale due to inactivity.

@github-actions github-actions Bot added the Stale label Jul 25, 2026
@github-actions github-actions Bot removed the Stale label Aug 17, 2026
@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale due to inactivity.

@github-actions github-actions Bot added the Stale label Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants