Wireshark-dev: Re: [Wireshark-dev] Unable to cmake Wireshark on Red Hat 7 due to GLIB2 version
From: Pascal Quantin <[email protected]>
Date: Thu, 30 Apr 2020 17:18:31 +0200
Hi Mark,

Le jeu. 30 avr. 2020 à 17:16, Brodie, Mark (Refinitiv) <[email protected]> a écrit :

Hi there,

 

My wireshark build attempt fails during cmake when it checks the version of GLIB2.

 

-- Checking for one of the modules 'glib-2.0'

CMake Error at /opt/cmake-3.17.2-Linux-x86_64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):

  Could NOT find GLIB2: Found unsuitable version "", but required is at least

  "2.32.0" (found GLIB2_LIBRARY-NOTFOUND)

Call Stack (most recent call first):

  /opt/cmake-3.17.2-Linux-x86_64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:443 (_FPHSA_FAILURE_MESSAGE)

  cmake/modules/FindGLIB2.cmake:106 (find_package_handle_standard_args)

  CMakeLists.txt:1023 (find_package)

 

 

 

GLIB2 is installed with version 2.56.1:

 

sudo yum info glib2

Loaded plugins: rhnplugin

This system is receiving updates from RHN Classic or Red Hat Satellite.

Installed Packages

Name        : glib2

Arch        : x86_64

Version     : 2.56.1

Release     : 5.el7

Size        : 12 M

Repo        : installed

From repo   : fxspw-7-2002

Summary     : A library of handy utility functions

URL         : http://www.gtk.org

License     : LGPLv2+

Description : GLib is the low-level core library that forms the basis for projects

            : such as GTK+ and GNOME. It provides data structure handling for C,

            : portability wrappers, and interfaces for such runtime functionality

            : as an event loop, threads, dynamic loading, and an object system.


You need the develpoment headers: install glib2-devel package.

Best regards,
Pascal.