-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello Mirko,
I am trying to build and execute the example application.
I tried :
mkdir _build
meson _build
cd _build
ninja
after these operations I get the _build/src directory containing:
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main/_build/src$ ls -l
total 8
-rwxr-xr-x 1 roberto roberto 1265 Dec 13 11:25 myfirstapplication
-rw-rw-r-- 1 roberto roberto 2416 Dec 13 11:25 myfirstapplication.gresource
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main/_build/src$
If I try to execute the file 'myfirstapplication' I get this result:
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main/_build/src$ ./myfirstapplication
Traceback (most recent call last):
File "/home/roberto/prj/examples-MyFirstApplication-main/_build/src/./myfirstapplication", line 37, in <module>
resource = Gio.Resource.load(os.path.join(pkgdatadir, 'myfirstapplication.gresource'))
gi.repository.GLib.GError: g-file-error-quark: Failed to open file “/usr/local/share/myfirstapplication/myfirstapplication.gresource”: open() failed: No such file or directory (4)
What I need to do to execute the application ?
Here the output of the command executed:
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main$ mkdir _build
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main$ meson _build
The Meson build system
Version: 0.61.2
Source dir: /home/roberto/prj/examples-MyFirstApplication-main
Build dir: /home/roberto/prj/examples-MyFirstApplication-main/_build
Build type: native build
Project name: myfirstapplication
Project version: 0.1.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program python3 found: YES (/usr/bin/python3)
WARNING: Python files installed by Meson might not be found by python interpreter.
This warning can be avoided by setting "python.platlibdir" option.
WARNING: Python files installed by Meson might not be found by python interpreter.
This warning can be avoided by setting "python.purelibdir" option.
Configuring myfirstapplication using configuration
Build targets in project: 6
NOTICE: Future-deprecated features used:
* 0.55.0: {'ExternalProgram.path'}
Found ninja-1.10.1 at /usr/bin/ninja
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main$ cd _build/
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main/_build$ ninja
[3/3] Generating data/com.mirko.MyFirstApplication.desktop with a custom command
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main/_build$ ls
build.ninja compile_commands.json data meson-info meson-logs meson-private po src
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main/_build$ cd src/
roberto@roberto-virtual-machine:~/prj/examples-MyFirstApplication-main/_build/src$ ls
myfirstapplication myfirstapplication.gresource
Metadata
Metadata
Assignees
Labels
No labels