#1 Cant build opensuse

Atvērta
gavr123456789 atvēra 5 gadi atpakaļ · 9 komentāri
▒▓      ~/dev/Vala/effector  meson build                                                                                                 1 ↵ ▓▒░
The Meson build system
Version: 0.51.2
Source dir: /home/gavr/dev/Vala/effector
Build dir: /home/gavr/dev/Vala/effector/build
Build type: native build
Project name: effector
Project version: undefined
C compiler for the host machine: ccache cc (gcc 9.2.1 "cc (SUSE Linux) 9.2.1 20190903 [gcc-9-branch revision 275330]")
Vala compiler for the host machine: valac (valac 0.46.5)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.6.3)
Run-time dependency glib-2.0 found: YES 2.62.3
Run-time dependency gtk+-3.0 found: YES 3.24.12
Run-time dependency gegl-0.4 found: YES 0.4.18
Run-time dependency gflow-0.2 found: YES 0.2
Run-time dependency gtkflow-0.2 found: YES 0.2
Found pkg-config: /usr/bin/pkg-config (1.6.3)
Build targets in project: 6
Found ninja-1.9.0 at /usr/bin/ninja
░▒▓      ~/dev/Vala/effector  sudo ninja -C build                                                                                           ✔ ▓▒░
ninja: Entering directory `build'
[3/13] Compiling Vala source ../src/thumbs.vala.
FAILED: thumbs@exe/src/thumbs.c 
valac -C --debug --debug --pkg gegl-0.4 --color=always --directory thumbs@exe --basedir ../ ../src/thumbs.vala
gegl-0.4.vapi:56.71-56.74: error: The symbol `Babl' could not be found
        public void set_color_from_pixel (Gegl.Rectangle rect, void* pixel, Babl.Object pixel_format);
                                                                            ^^^^
gegl-0.4.vapi:111.18-111.21: error: The symbol `Babl' could not be found
        public unowned Babl.Object? get_format ();
                       ^^^^
gegl-0.4.vapi:951.24-951.27: error: The symbol `Babl' could not be found
    public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant);
                          ^^^^
gegl-0.4.vapi:951.51-951.54: error: The symbol `Babl' could not be found
    public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant);
                                                     ^^^^
Compilation failed: 4 error(s), 0 warning(s)
[4/13] Compiling Vala source ../src/effector.vala.
FAILED: effector@sha/src/effector.c effector.h effector.vapi 
valac -C --debug --debug --pkg gtkflow-0.2 --pkg gflow-0.2 --pkg gegl-0.4 --pkg gtk+-3.0 --pkg glib-2.0 --color=always --directory effector@sha --basedir ../ --library effector --header effector.h --vapi ../effector.vapi --gresources=/home/gavr/dev/Vala/effector/data/de.grindhold.effector.gresource.xml --target-glib=2.38 --vapidir=/home/gavr/dev/Vala/effector/vapi ../src/effector.vala
gegl-0.4.vapi:56.71-56.74: error: The symbol `Babl' could not be found
        public void set_color_from_pixel (Gegl.Rectangle rect, void* pixel, Babl.Object pixel_format);
                                                                            ^^^^
gegl-0.4.vapi:111.18-111.21: error: The symbol `Babl' could not be found
        public unowned Babl.Object? get_format ();
                       ^^^^
gegl-0.4.vapi:951.24-951.27: error: The symbol `Babl' could not be found
    public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant);
                          ^^^^
gegl-0.4.vapi:951.51-951.54: error: The symbol `Babl' could not be found
    public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant);
                                                     ^^^^
Compilation failed: 4 error(s), 0 warning(s)
ninja: build stopped: subcommand failed.
``` ▒▓   ~/dev/Vala/effector  meson build  1 ↵ ▓▒░ The Meson build system Version: 0.51.2 Source dir: /home/gavr/dev/Vala/effector Build dir: /home/gavr/dev/Vala/effector/build Build type: native build Project name: effector Project version: undefined C compiler for the host machine: ccache cc (gcc 9.2.1 "cc (SUSE Linux) 9.2.1 20190903 [gcc-9-branch revision 275330]") Vala compiler for the host machine: valac (valac 0.46.5) Build machine cpu family: x86_64 Build machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (1.6.3) Run-time dependency glib-2.0 found: YES 2.62.3 Run-time dependency gtk+-3.0 found: YES 3.24.12 Run-time dependency gegl-0.4 found: YES 0.4.18 Run-time dependency gflow-0.2 found: YES 0.2 Run-time dependency gtkflow-0.2 found: YES 0.2 Found pkg-config: /usr/bin/pkg-config (1.6.3) Build targets in project: 6 Found ninja-1.9.0 at /usr/bin/ninja ░▒▓   ~/dev/Vala/effector  sudo ninja -C build  ✔ ▓▒░ ninja: Entering directory `build' [3/13] Compiling Vala source ../src/thumbs.vala. FAILED: thumbs@exe/src/thumbs.c valac -C --debug --debug --pkg gegl-0.4 --color=always --directory thumbs@exe --basedir ../ ../src/thumbs.vala gegl-0.4.vapi:56.71-56.74: error: The symbol `Babl' could not be found public void set_color_from_pixel (Gegl.Rectangle rect, void* pixel, Babl.Object pixel_format); ^^^^ gegl-0.4.vapi:111.18-111.21: error: The symbol `Babl' could not be found public unowned Babl.Object? get_format (); ^^^^ gegl-0.4.vapi:951.24-951.27: error: The symbol `Babl' could not be found public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant); ^^^^ gegl-0.4.vapi:951.51-951.54: error: The symbol `Babl' could not be found public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant); ^^^^ Compilation failed: 4 error(s), 0 warning(s) [4/13] Compiling Vala source ../src/effector.vala. FAILED: effector@sha/src/effector.c effector.h effector.vapi valac -C --debug --debug --pkg gtkflow-0.2 --pkg gflow-0.2 --pkg gegl-0.4 --pkg gtk+-3.0 --pkg glib-2.0 --color=always --directory effector@sha --basedir ../ --library effector --header effector.h --vapi ../effector.vapi --gresources=/home/gavr/dev/Vala/effector/data/de.grindhold.effector.gresource.xml --target-glib=2.38 --vapidir=/home/gavr/dev/Vala/effector/vapi ../src/effector.vala gegl-0.4.vapi:56.71-56.74: error: The symbol `Babl' could not be found public void set_color_from_pixel (Gegl.Rectangle rect, void* pixel, Babl.Object pixel_format); ^^^^ gegl-0.4.vapi:111.18-111.21: error: The symbol `Babl' could not be found public unowned Babl.Object? get_format (); ^^^^ gegl-0.4.vapi:951.24-951.27: error: The symbol `Babl' could not be found public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant); ^^^^ gegl-0.4.vapi:951.51-951.54: error: The symbol `Babl' could not be found public static unowned Babl.Object? babl_variant (Babl.Object format, Gegl.BablVariant variant); ^^^^ Compilation failed: 4 error(s), 0 warning(s) ninja: build stopped: subcommand failed. ```
gavr123456789 komentēja 5 gadi atpakaļ
Autors

But i can build it from Elementary, and even from Windows!

gavr@nout-elementary:~/Dev/effector/build$ vala --version Vala 0.46.5

But i can build it from Elementary, and even from Windows! gavr@nout-elementary:~/Dev/effector/build$ vala --version Vala 0.46.5
gavr123456789 komentēja 5 gadi atpakaļ
Autors

MINGW64 ~ $ vala --version Vala 0.46.4

MINGW64 ~ $ vala --version Vala 0.46.4
gavr123456789 komentēja 5 gadi atpakaļ
Autors

Sounds like magic, but now i cant build it from windows too. With the same error.

Sounds like magic, but now i cant build it from windows too. With the same error.
grindhold komentēja 5 gadi atpakaļ
Īpašnieks

can you try to use gegl-0.3 instead of gegl-0.4? this is a bit hacky, but i remember that doing the trick for me, when i had the same problem.

can you try to use gegl-0.3 instead of gegl-0.4? this is a bit hacky, but i remember that doing the trick for me, when i had the same problem.
gavr123456789 komentēja 5 gadi atpakaļ
Autors

There no more gegl-0.3 in the repos.

There no more gegl-0.3 in the repos.
grindhold komentēja 5 gadi atpakaļ
Īpašnieks

wat. linking against gegl-0.4 went perfectly fine for me. no complaints about a Babl dependency. do you maybe miss stuff from libbabl? its a dependency of libgegl. i am on debian buster here.

wat. linking against gegl-0.4 went perfectly fine for me. no complaints about a Babl dependency. do you maybe miss stuff from libbabl? its a dependency of libgegl. i am on debian buster here.
gavr123456789 komentēja 5 gadi atpakaļ
Autors

nope, libbabl installed, here paths if it means some


libbabl-0_1-0 - Dynamic Pixel Format Translation Library

/usr/lib64/babl-0.1
/usr/lib64/babl-0.1/CIE.so
/usr/lib64/babl-0.1/HCY.so
/usr/lib64/babl-0.1/HSL.so
/usr/lib64/babl-0.1/HSV.so
/usr/lib64/babl-0.1/avx2-int8.so
/usr/lib64/babl-0.1/cairo.so
/usr/lib64/babl-0.1/double.so
/usr/lib64/babl-0.1/fast-float.so
/usr/lib64/babl-0.1/float.so
/usr/lib64/babl-0.1/gegl-fixups.so
/usr/lib64/babl-0.1/gggl-lies.so
/usr/lib64/babl-0.1/gggl-table-lies.so
/usr/lib64/babl-0.1/gggl-table.so
/usr/lib64/babl-0.1/gggl.so
/usr/lib64/babl-0.1/gimp-8bit.so
/usr/lib64/babl-0.1/grey.so
/usr/lib64/babl-0.1/half.so
/usr/lib64/babl-0.1/naive-CMYK.so
/usr/lib64/babl-0.1/simple.so
/usr/lib64/babl-0.1/sse-half.so
/usr/lib64/babl-0.1/sse2-float.so
/usr/lib64/babl-0.1/sse2-int16.so
/usr/lib64/babl-0.1/sse2-int8.so
/usr/lib64/babl-0.1/sse4-int8.so
/usr/lib64/babl-0.1/two-table.so
/usr/lib64/babl-0.1/u16.so
/usr/lib64/babl-0.1/u32.so
/usr/lib64/babl-0.1/ycbcr.so
/usr/lib64/libbabl-0.1.so.0
/usr/lib64/libbabl-0.1.so.0.171.1
/usr/share/doc/packages/libbabl-0_1-0
/usr/share/doc/packages/libbabl-0_1-0/NEWS
/usr/share/licenses/libbabl-0_1-0
/usr/share/licenses/libbabl-0_1-0/COPYING
nope, libbabl installed, here paths if it means some ``` libbabl-0_1-0 - Dynamic Pixel Format Translation Library /usr/lib64/babl-0.1 /usr/lib64/babl-0.1/CIE.so /usr/lib64/babl-0.1/HCY.so /usr/lib64/babl-0.1/HSL.so /usr/lib64/babl-0.1/HSV.so /usr/lib64/babl-0.1/avx2-int8.so /usr/lib64/babl-0.1/cairo.so /usr/lib64/babl-0.1/double.so /usr/lib64/babl-0.1/fast-float.so /usr/lib64/babl-0.1/float.so /usr/lib64/babl-0.1/gegl-fixups.so /usr/lib64/babl-0.1/gggl-lies.so /usr/lib64/babl-0.1/gggl-table-lies.so /usr/lib64/babl-0.1/gggl-table.so /usr/lib64/babl-0.1/gggl.so /usr/lib64/babl-0.1/gimp-8bit.so /usr/lib64/babl-0.1/grey.so /usr/lib64/babl-0.1/half.so /usr/lib64/babl-0.1/naive-CMYK.so /usr/lib64/babl-0.1/simple.so /usr/lib64/babl-0.1/sse-half.so /usr/lib64/babl-0.1/sse2-float.so /usr/lib64/babl-0.1/sse2-int16.so /usr/lib64/babl-0.1/sse2-int8.so /usr/lib64/babl-0.1/sse4-int8.so /usr/lib64/babl-0.1/two-table.so /usr/lib64/babl-0.1/u16.so /usr/lib64/babl-0.1/u32.so /usr/lib64/babl-0.1/ycbcr.so /usr/lib64/libbabl-0.1.so.0 /usr/lib64/libbabl-0.1.so.0.171.1 /usr/share/doc/packages/libbabl-0_1-0 /usr/share/doc/packages/libbabl-0_1-0/NEWS /usr/share/licenses/libbabl-0_1-0 /usr/share/licenses/libbabl-0_1-0/COPYING ```
gavr123456789 komentēja 5 gadi atpakaļ
Autors

Oh wait, may be its because of gegl-0.3.vapi there.
Nope, It and so used 0.4 vapi judging by errors.

Also, how to compile GFlow with valadoc generation? I have to rely on source browsing and autocompletion from language server. (I'm not very familiar with meson)

Oh wait, may be its because of gegl-0.3.vapi there. Nope, It and so used 0.4 vapi judging by errors. Also, how to compile GFlow with valadoc generation? I have to rely on source browsing and autocompletion from language server. (I'm not very familiar with meson)
grindhold komentēja 5 gadi atpakaļ
Īpašnieks

interesting as my gegl-0.4.vapi does not contain a single reference to classes assigned to the namespace Babl. it also doesnt have babl-related stuff in gegl-0.4.deps.

compiling with docs should be enabled by default. explicitly turned on would be:

$ meson -Denable_valadoc=true <buildfolder>

but it doesn't work for me right now. no idea why after quick research. will file this as a bug.

interesting as my `gegl-0.4.vapi` does not contain a single reference to classes assigned to the namespace `Babl`. it also doesnt have babl-related stuff in `gegl-0.4.deps`. compiling with docs should be enabled by default. explicitly turned on would be: ``` $ meson -Denable_valadoc=true <buildfolder> ``` but it doesn't work for me right now. no idea why after quick research. will file this as a bug.
Pierakstieties, lai pievienotos šai sarunai.
Nav etiķešu
Nav atskaites punktu
Nav atbildīgā
2 dalībnieki
Notiek ielāde...
Atcelt
Saglabāt
Vēl nav satura.