LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gdkpixbug-.2.42.6 meson setup fails: Dependency glib-2.0 found 2.7.0 but need: '>= 2.56.0' (https://www.linuxquestions.org/questions/linux-software-2/gdkpixbug-2-42-6-meson-setup-fails-dependency-glib-2-0-found-2-7-0-but-need-%3D-2-56-0-a-4175709587/)

cpeognsoelds 03-17-2022 05:48 PM

gdkpixbug-.2.42.6 meson setup fails: Dependency glib-2.0 found 2.7.0 but need: '>= 2.56.0'
 
I am building gdk-pixbuf with the meson system that is packaged in the tarball.

The software environment is a headless, embedded, QNAP-designed Debian-based Gnu/Linux distro based on kernel 4.14.24.

The key constraint in this environment is that there is no package manager, and the dependencies etc needed to build and install programs must be installed by hand using the Entware system. Basically, a parallel environment is created in /opt/Entware.


Please accept that this is the environment I have to work in to get the functionality I need on my NAS. it's just a lot more painful than in other distros.I have installed most of the standard functionality of a standard linux distro, including core-utils, pkg-config, cmake, gawk, gcc, glib2,ldconfig, libacl, and more.

My current issue is building gdk-pixbuf-2.42.6. For this build, glib-2 is a dependency and I have glib-2.7.0 installed.

Meson correctly identifies the version number I have, but still fails with the error:
Code:

Dependency glib-2.0 found: NO found 2.7.0 but need: '>= 2.56.0'
What is it looking for that it is not finding?

Here is the log from the meson.build.
The section in red seems to show that it found glib-2.0 OK.
then at the end, it decides that it can't and goes off to see if it can through CMake.

I don't understand how to fix this.
Expert help would be much appreciated.

Code:

Build started at 2022-03-17T17:32:28.042384
Main binary: /opt/bin/python
Build Options:
Python system: Linux
The Meson build system
Version: 0.61.2
Source dir: /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6
Build dir: /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build
Build type: native build
Project name: gdk-pixbuf
Project version: 2.42.6
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (gcc 7.4.0 "cc (OpenWrt GCC 7.4.0) 7.4.0")
C linker for the host machine: cc ld.bfd 2.37
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (gcc 7.4.0 "cc (OpenWrt GCC 7.4.0) 7.4.0")
C linker for the build machine: cc ld.bfd 2.37
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Pkg-config binary for 1 is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: /opt/bin/pkg-config (0.29.2)
Determining dependency 'glib-2.0' with pkg-config executable '/opt/bin/pkg-config'
env[PKG_CONFIG_PATH]:
Called `/opt/bin/pkg-config --modversion glib-2.0` -> 0
2.7.0
env[PKG_CONFIG_PATH]:
Called `/opt/bin/pkg-config --cflags glib-2.0` -> 0
-I/opt/include/glib-2.0 -I/opt/lib/glib-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]:
Called `/opt/bin/pkg-config --libs glib-2.0` -> 0
-L/opt/lib -lglib-2.0 -lintl -liconv
env[PKG_CONFIG_PATH]:
Called `/opt/bin/pkg-config --libs glib-2.0` -> 0
-L/opt/lib -lglib-2.0 -lintl -liconv

Running compile:
Working directory:  /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/tmp73w58vsw
Command line:  cc /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/tmp73w58vsw/testfile.c -o /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/tmp73w58vsw/output.exe -D_FILE_OFFSET_BITS=64 -O0

Code:
 #include<stdio.h>
       
        int main(void) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        }
Compiler stdout:
 
Compiler stderr:
 
Program stdout:

8

Program stderr:


Running compile:
Working directory:  /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/tmp6ciz2cuc
Command line:  cc /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/tmp6ciz2cuc/testfile.c -o /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/tmp6ciz2cuc/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 --print-search-dirs

Code:
 
Compiler stdout:
 install: /share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/
programs: =/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-linux-gnu/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../x86_64-openwrt-linux-gnu/bin/x86_64-openwrt-linux-gnu/7.4.0/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../x86_64-openwrt-linux-gnu/bin/x86_64-linux-gnu/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../x86_64-openwrt-linux-gnu/bin/

libraries: =/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-linux-gnu/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../x86_64-openwrt-linux-gnu/lib/x86_64-openwrt-linux-gnu/7.4.0/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../x86_64-openwrt-linux-gnu/lib/x86_64-linux-gnu/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../x86_64-openwrt-linux-gnu/lib/../lib64/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../x86_64-openwrt-linux-gnu/7.4.0/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../x86_64-linux-gnu/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../lib64/:/lib/x86_64-openwrt-linux-gnu/7.4.0/:/lib/x86_64-linux-gnu/:/lib/../lib64/:/usr/lib/x86_64-openwrt-linux-gnu/7.4.0/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib64/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../../x86_64-openwrt-linux-gnu/lib/:/share/CACHEDEV1_DATA/.qpkg/Entware/bin/../lib/gcc/x86_64-openwrt-linux-gnu/7.4.0/../../../:/lib/:/usr/lib/

Compiler stderr:
 
Dependency glib-2.0 found: NO found 2.7.0 but need: '>= 2.56.0'
CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Found CMake: /opt/bin/cmake (3.22.1)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['/opt/bin/cmake']) in /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/__CMake_compiler_info__ with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-G"
  - "Ninja"
  - "-DCMAKE_TOOLCHAIN_FILE=/share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
  - "."
Try CMake generator: auto
Calling CMake (['/opt/bin/cmake']) in /share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/cmake_glib-2.0 with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/share/CACHEDEV1_DATA/jmarks/gdk_files/gdk-pixbuf-2.42.6/_build/meson-private/cmake_glib-2.0/CMakeMesonToolchainFile.cmake"
  - "."
  -- Module search paths:    ['/', '/opt', '/share/CACHEDEV1_DATA/.qpkg/Entware', '/usr', '/usr/local']
  -- CMake root:            /share/CACHEDEV1_DATA/.qpkg/Entware/share/cmake-3.22
  -- CMake architectures:    []
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share']
Preliminary CMake check failed. Aborting.
Run-time dependency glib-2.0 found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency glib-2.0

meson.build:61:0: ERROR: Git command failed: ['/opt/bin/git', 'clone', '--depth', '1', '--branch', 'master', 'https://gitlab.gnome.org/GNOME/glib.git', 'glib']


evo2 03-18-2022 01:13 AM

Hi,
Quote:

Originally Posted by cpeognsoelds (Post 6339268)
My current issue is building gdk-pixbuf-2.42.6. For this build, glib-2 is a dependency and I have glib-2.7.0 installed.

Meson correctly identifies the version number I have, but still fails with the error:
Code:

Dependency glib-2.0 found: NO found 2.7.0 but need: '>= 2.56.0'
What is it looking for that it is not finding?

You have 2.7 it needs 2.56 or greater. While the number 2.7 is greater than the number 2.56, the Version 2.7 is lower than version 2.56. There is no explicit zero padding in the minor version number.

Evo2.

cpeognsoelds 03-18-2022 09:20 AM

Quote:


You have 2.7 it needs 2.56 or greater. While the number 2.7 is greater than the number 2.56, the Version 2.7 is lower than version 2.56. There is no explicit zero padding in the minor version number.

Evo2.
Thank you for your help.
This seems quite bizarre. What is the actual version number of the the so-called version 2.7 that is installed and how can I tell that is is actually earlier than 2.56?

I'm having problems installing the current version of glib-2 (2.96), please see my question:

https://www.linuxquestions.org/quest...ls-4175708584/

Any thoughts you might have about this issue would be very much appreciated.

evo2 03-18-2022 07:19 PM

Hi,
Quote:

Originally Posted by cpeognsoelds (Post 6339464)
Thank you for your help.
This seems quite bizarre.

It is the same system used for the vast majority of software. What versioning system do you use for your software?
Quote:

Originally Posted by cpeognsoelds (Post 6339464)
What is the actual version number of the the so-called version 2.7 that is installed

2.7.0
Quote:

Originally Posted by cpeognsoelds (Post 6339464)
and how can I tell that is is actually earlier than 2.56?

See for example https://semver.org/ or perhaps wikipedia.
Quote:

Originally Posted by cpeognsoelds (Post 6339464)
I'm having problems installing the current version of glib-2 (2.96), please see my question:

I suggest you try LFS.

Evo2.


All times are GMT -5. The time now is 09:22 AM.