Open easilok opened 3 years ago
I do not have a Gnu Guix System installation, but with my Arch Linux install, I got a successful build using the following command. Note that 4) and 6) is done in the same go here.
flatpak-builder build --verbose --force-clean --install-deps-from=flathub --ccache com.st.STM32CubeIDE.yaml
Actually, just for fun we can combine step 4), 5) and 6) for a build with this command (its getting long though).
The install-deps-from
assumes that the flathub repo is added, see #3 here: https://flatpak.org/setup/Ubuntu
flatpak-builder build --verbose --force-clean --install-deps-from=flathub --ccache --from-git=https://github.com/flathub/com.st.STM32CubeIDE.git com.st.STM32CubeIDE.yaml
EDIT: Sorry I misread the title, I missed the "gnome" part. My problem is with a different SDK, so I have opened as new issue #549 instead.
I have the same issue, except I cannot even build the tutorial. I have installed flatpak-builder from Flathub; when I run
flatpak run org.flatpak.Builder --verbose --repo=repo --force-clean build-dir org.flatpak.Hello.yml
I get the following output:
FB: Running: git config --get user.email
FB: Running: git config --get user.name
FB: Running 'flatpak info --arch=x86_64 --show-commit org.freedesktop.Sdk 22.08' on host
Failed to init: Unable to find sdk org.freedesktop.Sdk version 22.08
However, if I run that last command manually, I do get a result:
$ flatpak info --arch=x86_64 --show-commit org.freedesktop.Sdk 22.08
2652112cf6f02f590602d3379a36a0e59d801a120f8ba4bb43170e75e3ab73da
What is going on here? Is it a problem that flatpak-builder is installed from Flathub? The tutorial says that I can install it from Flathub. I am running Void Linux
This sounds entirely like a bug with flatpak-builder inside of flatpak.
Can you run flatpak info --show-location ...
Like this?
$ flatpak info --show-location org.freedesktop.Sdk
/var/lib/flatpak/runtime/org.freedesktop.Sdk/x86_64/22.08/2652112cf6f02f590602d3379a36a0e59d801a120f8ba4bb43170e75e3ab73da
Hmm. Works fine here installed into the same location.
Linux distribution and version
GNU Guix System 1.2.0
Flatpak-builder version
1.0.11 (flatpak install)
Flatpak version
1.10.2
Description of the problem
I don't know if this is the right place, but I didn't found another one. Also, this is my first issue, so I'm sorry in advance for any mistake. I'm trying to build an application package of my own (the Atollic TrueStudio, and I took as an example the flathub package STM32CubeIDE, because they are similar. Whith the focus on building this last one (because the problem is the same on both), whenever I run the build command
flatpak run org.flatpak.Builder build-dir com.st.STM32CubeIDE.yaml
I get the error:The output of my
flatpak list
comand is:Which proves the Sdk is installed. I can build these package on an arch linux install, the same way I'm trying to build on guix, which shows me that there's something missing on my guix configuration for these to work.
Steps to reproduce
flatpak --user install org.flatpak.Builder
flatpak --user install org.gnome.Platform//3.38 org.gnome.Sdk//3.38
flatpak run org.flatpak.Builder build-dir com.st.STM32CubeIDE.yaml
on the cloned repository folder