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

Meson Dependency "gobject-introspection-1.0" not found #3276

Closed
firefly2442 opened this issue Jan 14, 2023 · 3 comments
Closed

Meson Dependency "gobject-introspection-1.0" not found #3276

firefly2442 opened this issue Jan 14, 2023 · 3 comments
Labels

Comments

@firefly2442
Copy link

Bug report

Describe the bug

I ran into an issue where the environment I had was missing a package. I found this page on Stackoverflow that solved the problem.

#9 2.859 The Meson build system
#9 2.859 Version: 0.56.2
#9 2.859 Source dir: /libvips-8.14.1
#9 2.859 Build dir: /libvips-8.14.1/build
#9 2.859 Build type: native build
#9 2.859 Project name: vips
#9 2.859 Project version: 8.14.1
#9 2.859 C compiler for the host machine: cc (gcc 10.2.1 "cc (Debian 10.2.1-6) 10.2.1 20210110")
#9 2.859 C linker for the host machine: cc ld.bfd 2.35.2
#9 2.859 C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Debian 10.2.1-6) 10.2.1 20210110")
#9 2.859 C++ linker for the host machine: c++ ld.bfd 2.35.2
#9 2.859 Host machine cpu family: x86_64
#9 2.859 Host machine cpu: x86_64
#9 2.859 Found pkg-config: /usr/bin/pkg-config (0.29.2)
#9 2.859 Run-time dependency glib-2.0 found: YES 2.66.8
#9 2.859 Run-time dependency gio-2.0 found: YES 2.66.8
#9 2.859 Run-time dependency gobject-2.0 found: YES 2.66.8
#9 2.859 Run-time dependency gmodule-no-export-2.0 found: YES 2.66.8
#9 2.859 Run-time dependency expat found: YES 2.2.10
#9 2.859 Run-time dependency threads found: YES
#9 2.859 Library m found: YES
#9 2.859 Compiler for C supports link arguments -Wl,-z,nodelete: YES 
#9 2.859 Compiler for C supports function attribute visibility:hidden: YES 
#9 2.859 Checking if "Has vector arithmetic" with dependency -lm compiles: YES 
#9 2.859 Checking if "Has signed constants in vector templates" with dependency -lm compiles: YES 
#9 2.859 Checking for function "vsnprintf" with dependency -lm: YES 
#9 2.859 Checking for function "_aligned_malloc" with dependency -lm: NO 
#9 2.859 Checking for function "posix_memalign" with dependency -lm: YES 
#9 2.859 Checking for function "memalign" with dependency -lm: YES 
#9 2.859 Checking for function "cbrt" with dependency -lm: YES 
#9 2.859 Checking for function "hypot" with dependency -lm: YES 
#9 2.859 Checking for function "atan2" with dependency -lm: YES 
#9 2.859 Checking for function "asinh" with dependency -lm: YES 
#9 2.859 Checking for function "pthread_setattr_default_np" with dependency threads: YES 
#9 2.859 Run-time dependency zlib found: YES 1.2.11
#9 2.859 Did not find CMake 'cmake'
#9 2.859 Found CMake: NO
#9 2.859 Run-time dependency libgsf-1 found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency fftw3 found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency magickcore found: YES 6.9.11
#9 2.859 Checking whether type "struct _ImageInfo" has member "number_scenes" with dependency MagickCore: YES 
#9 2.859 Checking for function "InheritException" with dependency MagickCore: YES 
#9 2.859 Checking for function "AcquireExceptionInfo" with dependency MagickCore: YES 
#9 2.859 Checking for function "SetImageProperty" with dependency MagickCore: YES 
#9 2.859 Checking for function "SetImageExtent" with dependency MagickCore: YES 
#9 2.859 Checking for function "AcquireImage" with dependency MagickCore: YES 
#9 2.859 Checking for function "GetVirtualPixels" with dependency MagickCore: YES 
#9 2.859 Checking for function "ResetImageProfileIterator" with dependency MagickCore: YES 
#9 2.859 Checking for function "ResetImageAttributeIterator" with dependency MagickCore: YES 
#9 2.859 Checking for function "ResetImagePropertyIterator" with dependency MagickCore: YES 
#9 2.859 Checking for function "MagickCoreGenesis" with dependency MagickCore: YES 
#9 2.859 Checking for function "SetImageOption" with dependency MagickCore: YES 
#9 2.859 Checking for function "BlobToStringInfo" with dependency MagickCore: YES 
#9 2.859 Checking for function "OptimizePlusImageLayers" with dependency MagickCore: YES 
#9 2.859 Checking for function "OptimizeImageTransparency" with dependency MagickCore: YES 
#9 2.859 Checking if "Has CMYColorspace" with dependency MagickCore compiles: YES 
#9 2.859 Checking if "Has HCLpColorspace" with dependency MagickCore compiles: YES 
#9 2.859 Checking if "GetImageMagick takes three arguments" with dependency MagickCore compiles: YES 
#9 2.859 Checking for function "ImportImagePixels" with dependency MagickCore: YES 
#9 2.859 Checking for function "ImagesToBlob" with dependency MagickCore: YES 
#9 2.859 Run-time dependency cfitsio found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency imagequant found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency quantizr found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency libexif found: YES 0.6.22
#9 2.859 Has header "exif-data.h" with dependency libexif: NO 
#9 2.859 Run-time dependency libjpeg found: YES 2.0.6
#9 2.859 Checking for function "jpeg_c_bool_param_supported" with dependency libjpeg: NO 
#9 2.859 Run-time dependency spng found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency libspng found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency libpng found: YES 1.6.37
#9 2.859 Checking for function "png_set_chunk_malloc_max" with dependency libpng: YES 
#9 2.859 Run-time dependency libwebp found: YES 0.6.1
#9 2.859 Run-time dependency libwebpmux found: YES 0.6.1
#9 2.859 Run-time dependency libwebpdemux found: YES 0.6.1
#9 2.859 Run-time dependency pangocairo found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency pangoft2 found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency fontconfig found: YES 2.13.1
#9 2.859 Run-time dependency libtiff-4 found: YES 4.2.0
#9 2.859 Fetching value of define "COMPRESSION_WEBP" with dependency libtiff-4: 50001 
#9 2.859 Run-time dependency librsvg-2.0 found: YES 2.50.3
#9 2.859 Run-time dependency cairo found: YES 1.16.0
#9 2.859 Run-time dependency openslide found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency matio found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency lcms2 found: YES 2.12
#9 2.859 Run-time dependency openexr found: YES 2.5.4
#9 2.859 Run-time dependency libopenjp2 found: YES 2.4.0
#9 2.859 Run-time dependency orc-0.4 found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency pdfium found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency libheif found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency libjxl found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency libjxl_threads found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency poppler-glib found: NO (tried pkgconfig and cmake)
#9 2.859 Run-time dependency niftiio found: NO (tried pkgconfig)
#9 2.859 Run-time dependency nifti found: NO (tried cmake)
#9 2.859 Has header "sys/file.h" : YES 
#9 2.859 Has header "sys/param.h" : YES 
#9 2.859 Has header "sys/mman.h" : YES 
#9 2.859 Has header "unistd.h" : YES 
#9 2.859 Has header "io.h" : NO 
#9 2.859 Has header "direct.h" : NO 
#9 2.859 Checking for function "ngettext" : YES 
#9 2.859 Checking for function "bind_textdomain_codeset" : YES 
#9 2.859 Configuring config.h using configuration
#9 2.859 Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
#9 2.859 Configuring version.h using configuration
#9 2.859 Found pkg-config: /usr/bin/pkg-config (0.29.2)
#9 2.859 Program glib-genmarshal found: YES (/usr/bin/glib-genmarshal)
#9 2.859 Did not find CMake 'cmake'
#9 2.859 Found CMake: NO
#9 2.859 Build-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig)
#9 2.859 
#9 2.859 libvips/meson.build:45:4: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig

The solution was to apt install libgirepository1.0-dev. Perhaps this should be added to the README.md as a required package?

To Reproduce

Expected behavior
It should build using the new Meson system

Environment

  • node:latest (Docker)
  • Vips: 8.14.1
@jcupitt
Copy link
Member

jcupitt commented Jan 14, 2023

Hi @firefly2442,

Yes, you need libgirepository1.0-dev to build with introspection. You can disable it with:

meson setup build -Dintrospection=false

so it's not a required dependency, but you're right it is enabled by default and not autodetected. I'll add a note. Thanks!

jcupitt added a commit that referenced this issue Jan 14, 2023
@jcupitt jcupitt closed this as completed Jan 14, 2023
@stubkan
Copy link

stubkan commented Mar 27, 2023

I recommend adding this note, I had this blocker and it wasn't until I dug through these closed tickets and found this that I could finally build libvips on my system

@stubkan
Copy link

stubkan commented Mar 27, 2023

@jcupitt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants