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

Running the build without installing it #45

Closed
kousu opened this issue Mar 22, 2021 · 1 comment
Closed

Running the build without installing it #45

kousu opened this issue Mar 22, 2021 · 1 comment
Labels
question Further information is requested

Comments

@kousu
Copy link
Contributor

kousu commented Mar 22, 2021

Maybe this is just because I'm new to vala, but when I tried to install a dev version I got:

Settings schema 'com.github.louis77.tuner' is not installed

I had to ninja install before I could work on the app. Is there a way to work on the app without installing it? Or, am I supposed to install it but to a different -Dprefix=?

thanks!

[kousu@requiem tuner]$ meson build
The Meson build system
Version: 0.57.1
Source dir: /home/kousu/src/radio/tuner
Build dir: /home/kousu/src/radio/tuner/build
Build type: native build
Project name: com.github.louis77.tuner
Project version: 1.3.1
C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the host machine: cc ld.bfd 2.36.1
Vala compiler for the host machine: valac (valac 0.52.0)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency glib-2.0 found: YES 2.68.0
Run-time dependency gtk+-3.0 found: YES 3.24.27
Run-time dependency gee-0.8 found: YES 0.20.4
Run-time dependency gio-2.0 found: YES 2.68.0
Run-time dependency granite found: YES 5.5.0
Run-time dependency gstreamer-1.0 found: YES 1.18.4
Run-time dependency gstreamer-player-1.0 found: YES 1.18.4
Run-time dependency libsoup-2.4 found: YES 2.72.0
Run-time dependency json-glib-1.0 found: YES 1.6.2
Run-time dependency libgeoclue-2.0 found: YES 2.5.7
Run-time dependency geocode-glib-1.0 found: YES 3.26.2
Program meson/post_install.py found: YES (/usr/bin/python /home/kousu/src/radio/tuner/meson/post_install.py)
Build targets in project: 11

Found ninja-1.10.2 at /usr/bin/ninja
[kousu@requiem tuner]$ cd build/
[kousu@requiem build]$ meson configure -Dprefix=/usr
[kousu@requiem build]$ ninja
[0/1] Regenerating build files.
The Meson build system
Version: 0.57.1
Source dir: /home/kousu/src/radio/tuner
Build dir: /home/kousu/src/radio/tuner/build
Build type: native build
Project name: com.github.louis77.tuner
Project version: 1.3.1
C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the host machine: cc ld.bfd 2.36.1
Vala compiler for the host machine: valac (valac 0.52.0)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Dependency glib-2.0 found: YES 2.68.0 (cached)
Dependency gtk+-3.0 found: YES 3.24.27 (cached)
Dependency gee-0.8 found: YES 0.20.4 (cached)
Dependency gio-2.0 found: YES 2.68.0 (cached)
Dependency granite found: YES 5.5.0 (cached)
Dependency gstreamer-1.0 found: YES 1.18.4 (cached)
Dependency gstreamer-player-1.0 found: YES 1.18.4 (cached)
Dependency libsoup-2.4 found: YES 2.72.0 (cached)
Dependency json-glib-1.0 found: YES 1.6.2 (cached)
Dependency libgeoclue-2.0 found: YES 2.5.7 (cached)
Dependency geocode-glib-1.0 found: YES 3.26.2 (cached)
Program meson/post_install.py found: YES (/usr/bin/python /home/kousu/src/radio/tuner/meson/post_install.py)
Build targets in project: 11

Found ninja-1.10.2 at /usr/bin/ninja
[6/32] Compiling Vala source ../src/Controllers/DirectoryController.vala ../src/Controllers/Pla...dgets/StationList.vala ../src/Widgets/RevealLabel.vala ../src/Application.vala ../src/Main.vala
gstreamer-player-1.0.vapi:250.3-250.32: warning: Instance methods are not supported in error domains yet
		public unowned string get_name ();
		^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation succeeded - 1 warning(s)
[32/32] Linking target com.github.louis77.tuner
[kousu@requiem build]$ ls
as-resources.c	as-resources.h	build.ninja  com.github.louis77.tuner  com.github.louis77.tuner.p  compile_commands.json  data	meson-info  meson-logs	meson-private  po  src

[kousu@requiem build]$ # This crashes:
[kousu@requiem build]$ ./com.github.louis77.tuner

(com.github.louis77.tuner:55787): GLib-GIO-ERROR **: 11:52:56.170: Settings schema 'com.github.louis77.tuner' is not installed
Trace/breakpoint trap (core dumped)
[kousu@requiem build]$ sudo ninja install
[sudo] password for kousu: 
[0/1] Installing files.
Installing com.github.louis77.tuner to /usr/bin
Installing data/com.github.louis77.tuner.desktop to /usr/share/applications
Installing data/com.github.louis77.tuner.appdata.xml to /usr/share/metainfo
Installing /home/kousu/src/radio/tuner/data/icons/16/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/16x16/apps
Installing /home/kousu/src/radio/tuner/data/icons/16/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/16x16@2/apps
Installing /home/kousu/src/radio/tuner/data/icons/24/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/24x24/apps
Installing /home/kousu/src/radio/tuner/data/icons/24/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/24x24@2/apps
Installing /home/kousu/src/radio/tuner/data/icons/32/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/32x32/apps
Installing /home/kousu/src/radio/tuner/data/icons/32/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/32x32@2/apps
Installing /home/kousu/src/radio/tuner/data/icons/48/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/48x48/apps
Installing /home/kousu/src/radio/tuner/data/icons/48/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/48x48@2/apps
Installing /home/kousu/src/radio/tuner/data/icons/64/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/64x64/apps
Installing /home/kousu/src/radio/tuner/data/icons/64/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/64x64@2/apps
Installing /home/kousu/src/radio/tuner/data/icons/128/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/128x128/apps
Installing /home/kousu/src/radio/tuner/data/icons/128/com.github.louis77.tuner.svg to /usr/share/icons/hicolor/128x128@2/apps
Installing /home/kousu/src/radio/tuner/data/com.github.louis77.tuner.gschema.xml to /usr/share/glib-2.0/schemas
Running custom install script '/usr/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=com.github.louis77.tuner'
Running custom install script '/usr/bin/python /home/kousu/src/radio/tuner/meson/post_install.py'

[kousu@requiem build]$ # Now it works:
[kousu@requiem build]$ ./com.github.louis77.tuner

** (com.github.louis77.tuner:55848): WARNING **: 11:53:17.939: Window.vala:81: Theme settings: false

(com.github.louis77.tuner:55848): Json-CRITICAL **: 11:53:17.954: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed

(com.github.louis77.tuner:55848): Json-CRITICAL **: 11:53:17.954: json_array_foreach_element: assertion 'array != NULL' failed

** (com.github.louis77.tuner:55848): WARNING **: 11:53:17.971: LocationDiscovery.vala:25: Starting Geo Location service...
^C
@louis77 louis77 added the question Further information is requested label May 5, 2021
@louis77
Copy link
Owner

louis77 commented Aug 13, 2021

AFAIK you have to install it so the Gtk schema get copied into the proper places.
Maybe there is a better way but I didn't find any yet.

@louis77 louis77 closed this as completed Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants