Hallo, ich habe dieses kleine Programm mithilfe von PyQt5 geschrieben. Es ist zwar nicht besonders groß, macht aber was es soll. Das möchte ich jetzt gerne als Snap packen. Ich habe dazu folgende snapcraft.yaml benutzt:
name: jdlangtranslator
version: 1.0
summary: jdLangTranslator
description: |
A translator for .lang files.
base: core18
confinement: strict
grade: stable
parts:
jdlangtranslator:
plugin: qmake
qt-version: qt5
source: .
after: [desktop-qt5]
apps:
jdlangtranslator:
command: jdLangTranslator.py
plugs:
- x11
- home
- browser-support
- desktop-legacy
- desktop
- media-hub
- removable-mediaDieses snapcraft.yaml habe ich auf dieser Seite gefunden. Allerdings bekomme ich folgende Fehlermeldung:
Hit http://repo.steampowered.com/steam precise InRelease
Ign http://repo.vivaldi.com/stable/deb stable InRelease
Hit http://archive.ubuntu.com/ubuntu xenial InRelease
Hit http://archive.canonical.com/ubuntu xenial InRelease
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit http://repo.vivaldi.com/stable/deb stable Release
Hit http://ppa.launchpad.net/morphis/anbox-support/ubuntu xenial InRelease
Hit http://ppa.launchpad.net/bartbes/love-stable/ubuntu xenial InRelease
Hit http://de.archive.ubuntu.com/ubuntu xenial InRelease
Hit http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit http://ppa.launchpad.net/webupd8team/indicator-kdeconnect/ubuntu xenial InRelease
Hit http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit http://deb.playonlinux.com xenial InRelease
Fetched 109 kB in 6s (0 B/s)
Pulling jdlangtranslator
Building jdlangtranslator
qmake LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/lib" LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/usr/lib" LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/lib/x86_64-linux-gnu" LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/usr/lib/x86_64-linux-gnu" INCLUDEPATH+="/tmp/jdLangTranslator/parts/jdlangtranslator/install/usr/include"
Usage: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake [mode] [options] [files]
QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project
Mode:
-project Put qmake into project file generation mode
In this mode qmake interprets files as files to
be built,
defaults to *; *; *; *.ts; *.xlf; *.qrc
Note: The created .pro file probably will
need to be edited. For example add the QT variable to
specify what modules are required.
-makefile Put qmake into makefile generation mode (default)
In this mode qmake interprets files as project files to
be processed, if skipped qmake will try to find a project
file in your current working directory
Warnings Options:
-Wnone Turn off all warnings; specific ones may be re-enabled by
later -W options
-Wall Turn on all warnings
-Wparser Turn on parser warnings
-Wlogic Turn on logic warnings (on by default)
-Wdeprecated Turn on deprecation warnings (on by default)
Options:
* You can place any variable assignment in options and it will be *
* processed as if it was in [files]. These assignments will be parsed *
* before [files]. *
-o file Write output to file
-d Increase debug level
-t templ Overrides TEMPLATE as templ
-tp prefix Overrides TEMPLATE so that prefix is prefixed into the value
-help This help
-v Version information
-after All variable assignments after this will be
parsed after [files]
-norecursive Don't do a recursive search
-recursive Do a recursive search
-set <prop> <value> Set persistent property
-unset <prop> Unset persistent property
-query <prop> Query persistent property. Show all if <prop> is empty.
-cache file Use file as cache [makefile mode only]
-spec spec Use spec as QMAKESPEC [makefile mode only]
-nocache Don't use a cache file [makefile mode only]
-nodepend Don't generate dependencies [makefile mode only]
-nomoc Don't generate moc targets [makefile mode only]
-nopwd Don't look for files in pwd [project mode only]
Failed to run 'qmake LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/lib" LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/usr/lib" LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/lib/x86_64-linux-gnu" LIBS+="-L/tmp/jdLangTranslator/parts/jdlangtranslator/install/usr/lib/x86_64-linux-gnu" INCLUDEPATH+="/tmp/jdLangTranslator/parts/jdlangtranslator/install/usr/include"' for 'jdlangtranslator': Exited with code 1.
Verify that the part is using the correct parameters and try again.Dieser fehler kommt bei beiden im Post beschrieben Methoden. Auch das verlinkte Tutorial hilft nicht wirklich weiter. Kann da wer helfen? Ich habe leider kaum Ahnung von Snap.