LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2022, 05:48 PM   #1
cpeognsoelds
LQ Newbie
 
Registered: Feb 2022
Posts: 11

Rep: Reputation: Disabled
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']
 
Old 03-18-2022, 01:13 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by cpeognsoelds View Post
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.
 
Old 03-18-2022, 09:20 AM   #3
cpeognsoelds
LQ Newbie
 
Registered: Feb 2022
Posts: 11

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-18-2022, 07:19 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by cpeognsoelds View Post
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 View Post
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 View Post
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 View Post
I'm having problems installing the current version of glib-2 (2.96), please see my question:
I suggest you try LFS.

Evo2.

Last edited by evo2; 03-18-2022 at 08:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] current - gtk3+ build package fails, missing 'meson' lazardo Slackware 0 01-31-2022 05:44 AM
lfs-11 glib meson fail DIEmicrosoft Linux From Scratch 1 01-23-2022 07:28 AM
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Meson install fails. LFS 8.2 rabidlinux Linux From Scratch 3 04-30-2018 06:21 PM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration