Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to init: Unable to find sdk io.elementary.Sdk version 6 #126

Open
aral opened this issue Aug 21, 2021 · 5 comments
Open

Failed to init: Unable to find sdk io.elementary.Sdk version 6 #126

aral opened this issue Aug 21, 2021 · 5 comments

Comments

@aral
Copy link
Contributor

aral commented Aug 21, 2021

When I run flatpak-builder build org.small-tech.hello-world.yml --user --install --force-clean, I get the following error:

error: io.elementary.Sdk/x86_64/6 not installed
Failed to init: Unable to find sdk io.elementary.Sdk version 6

apt search elementary-sdk gives me:

elementary-sdk/focal,now 1.508+r576~ubuntu6.1 amd64 [installed]
  elementary Developer Kit

My org.small-tech.hello-world.yml file contents are:

app-id: org.small-tech.hello-world

runtime: io.elementary.Platform
runtime-version: '6'
sdk: io.elementary.Sdk

command: org.small-tech.hello-world

finish-args:
  - '--share=ipc'
  - '--socket=fallback-x11'
  - '--socket=wayland'

modules:
  - name: hello-world
    buildsystem: meson
    sources:
      - type: dir
        path: .
@cassidyjames
Copy link
Contributor

cassidyjames commented Aug 21, 2021

Ah so you'll need to install the Flatpak SDK as a user. We need to include this in the instructions:

flatpak install --user io.elementary.Sdk//6

@aral
Copy link
Contributor Author

aral commented Aug 21, 2021

Ah, cool, that worked, thanks :)

(After I “fixed” my reverse-domain name from small-tech to small_tech because Flatpak chokes on dashes on anything but the last fragment for some reason.)

(It did remain a long time on Updating runtime/io.elementary.Platform.Locale/x86_64/6 the first time I ran flatpak-builder, in case that matters. Subsequent builds did not wait at that step.)

@iancleary
Copy link
Contributor

@aral @cassidyjames

Hello,

I encountered the same issue.

Ah so you'll need to install the Flatpak SDK as a user. We need to include this in the instructions:

flatpak install --user io.elementary.Sdk//6

I've created #133 to update the docs. Feel free to look at the wording and merge when you have the time.

Thanks!

@aral
Copy link
Contributor Author

aral commented Sep 12, 2021

@icancclearynow Thank you :)

@iancleary
Copy link
Contributor

@icancclearynow Thank you :)

You're welcome!

Thanks for the reporting the issue as it helped me when I followed the tutorial 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants