Building a snap


#1

So currently I’m attempting to craft a snap for my project visualboyadvance-m

making use of wxwidgets gtk3 sdk stage snap, but in our code we also make use of polling gtk directly regarding wayland support so we include in our cmake the requirement for libgtk-3-dev.

trying to build what I have, cmake doesn’t seem to quite find gtk and I was wondering if someone could point me in the right direction.

name: visualboyadvance-m
version: 2.1.4
summary: Nintendo Game Boy Advance Emulator
description: |
  An open-source Nintendo Game Boy, Super Game Boy, Game Boy Advance Emulators.

confinement: strict
base: core18

plugs:

  desktop:
  desktop-legacy:

  home:
  removable-media:

  network:

parts:
  wxwidgets-sdk:
    plugin: nil
    stage-snaps:
    - wxwidgets-sdk-gtk3
    stage-packages:
    # Crash dialog support
    - binutils
    filesets:
      crash-dialog-support:
      - usr/bin/*addr2line
      library-shared:
      - '**/lib/**/*.so*'
    prime:
    - $crash-dialog-support
    - $library-shared
  vbam:
    after:
    - wxwidgets-sdk

    source: https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v2.1.4.tar.gz
    plugin: cmake
    build-packages:
      - g++
      - gcc
      - make
      - cmake
      - pkg-config
      - git
      - libsdl2-dev
      - libsfml-dev
      - libgtk-3-dev
      - libopenal-dev
    configflags:
      - -DENABLE_OPENAL=ON
      - -DENABLE_SDL=OFF

apps:
  visualboyadvance-m:
    command: bin/visualboyadvance-m

I know there’s a lot more I need to get before it’s complete, but for now I just want to at least the building stage started.


#2

Bump, it’s been 12 days now and I’m still no where near any clue of what I’m doing wrong.


#3

if you could put a complete build log with the failure on https://paste.ubuntu.com/ and link it here, potential helpers would have some more thing to look at :wink:

guessing the error by staring your snapcraft.yaml isnt really possible …


#4

Well personally I’d rather use hastebin :wink: As for the error, that will have to wait. Seems I’m having a snapd issue currently and snapcraft is throwing me

cannot change profile for the next exec call: No such file or directory


#5

https://hasteb.in/wafayilu.lua

Seems even though I have gtk3 devel included into the yaml file, it isn’t picking up the fact it’s installed