You are not logged in.

#1 2020-12-25 11:23:14

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 559

[Solved] glib.h not found error.

System fully updated (25/12/2020).

Today I tried to run pulsevie but got an error fof python 3.8 missing.

pulseview: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

I know python was updated recently to 3.9 so, I tried to recompile pulseview my self. I grabbed the abs PKGBUILD file with yay.

Trying to compile I receive the following error:

/usr/include/libsigrok/libsigrok.h:27:10: fatal error: glib.h: No such file or directory
   27 | #include <glib.h>

The file is there.

yaourt -Ql glib2|grep glib.h

glib2 /usr/include/glib-2.0/glib.h

All the build proccess:

makepkg
==> Making package: pulseview 0.4.2-4 (Fri Dec 25 13:16:48 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading pulseview-0.4.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1366k  100 1366k    0     0   920k      0  0:00:01  0:00:01 --:--:--  921k
  -> Downloading qt5.15.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5178  100  5178    0     0   9862      0 --:--:-- --:--:-- --:--:--  9844
==> Validating source files with sha512sums...
    pulseview-0.4.2.tar.gz ... Passed
    qt5.15.patch ... Passed
==> Extracting sources...
  -> Extracting pulseview-0.4.2.tar.gz with bsdtar
==> Starting prepare()...
patching file pv/subwindows/decoder_selector/subwindow.cpp
patching file pv/util.cpp
Hunk #1 succeeded at 137 (offset -6 lines).
Hunk #2 succeeded at 175 (offset 6 lines).
Hunk #3 succeeded at 285 (offset 6 lines).
patching file pv/util.hpp
Hunk #2 succeeded at 139 (offset -5 lines).
patching file pv/views/trace/decodetrace.cpp
Hunk #1 succeeded at 164 (offset 3 lines).
patching file pv/views/trace/ruler.cpp
patching file pv/widgets/timestampspinbox.cpp
==> Starting build()...
CMake Warning (dev) at /usr/share/cmake-3.19/Modules/GNUInstallDirs.cmake:223 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  CMakeLists.txt:24 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 
-- Checking for module 'libsigrokcxx>=0.5.1'
--   Found libsigrokcxx, version 0.5.2
-- Checking for modules 'glib-2.0>=2.28.0;glibmm-2.4>=2.28.0;libsigrokcxx>=0.5.1;libsigrokdecode>=0.5.2'
--   Found glib-2.0, version 2.66.4
--   Found glibmm-2.4, version 2.64.5
--   Found libsigrokcxx, version 0.5.2
--   Found libsigrokdecode, version 0.6.0-git-3f77dc2
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
Package python-3.8-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.8-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.8-embed', required by 'libsigrokdecode', not found
-- Qt version: 5.15.2
-- Found Boost: /usr/lib64/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.55") found components: filesystem serialization system 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Atomics provided by the C-library - yes
-- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS
-- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS - Success
-- PulseView version: 0.4.2
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pulseview/src/pulseview-0.4.2
Scanning dependencies of target pulseview_autogen
[  1%] Automatic MOC for target pulseview
[  1%] Built target pulseview_autogen
[  2%] Generating l10n/de.ts
Updating 'l10n/de.ts'...
    Found 271 source text(s) (0 new and 271 already existing)
[  3%] Generating l10n/de.qm
Updating '/tmp/pulseview/src/pulseview-0.4.2/l10n/de.qm'...
    Generated 271 translation(s) (271 finished and 0 unfinished)
[  4%] Generating qrc_translations.cpp
[  5%] Generating qrc_pulseview.cpp
Scanning dependencies of target pulseview
[  6%] Building CXX object CMakeFiles/pulseview.dir/pulseview_autogen/mocs_compilation.cpp.o
In file included from /usr/include/libsigrokcxx/libsigrokcxx.hpp:73,
                 from /tmp/pulseview/src/pulseview-0.4.2/pulseview_autogen/PLNN4COFE5/../../pv/application.hpp:29,
                 from /tmp/pulseview/src/pulseview-0.4.2/pulseview_autogen/PLNN4COFE5/moc_application.cpp:10,
                 from /tmp/pulseview/src/pulseview-0.4.2/pulseview_autogen/mocs_compilation.cpp:2:
/usr/include/libsigrok/libsigrok.h:27:10: fatal error: glib.h: No such file or directory
   27 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pulseview.dir/build.make:296: CMakeFiles/pulseview.dir/pulseview_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:118: CMakeFiles/pulseview.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by firewalker (2020-12-25 12:49:26)


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#2 2020-12-25 12:43:00

seth
Member
Registered: 2012-09-03
Posts: 63,171

Re: [Solved] glib.h not found error.

Your problem is a sigrok from the AUR, rebuild that (or replace it w/ the repo versions)

-   Found libsigrokdecode, version 0.6.0-git-3f77dc2

Also don't use yay or yourt - it's the reason why this happens and you don't know what they shoveled onto your disk.
And yaourt is bitrot since some years now.

Offline

#3 2020-12-25 12:49:05

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 559

Re: [Solved] glib.h not found error.

Thanks you!


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

Board footer

Powered by FluxBB