pulseview also fails to build in the Arch linux AUR:
$ tar -xf pulseview-git.tar.gz
$ cd pulseview-git/
$ makepkg
==> Making package: pulseview-git 0.3.0.r744.g0adee2d-1 (Sat 13 May 2023 06:38:32 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning pulseview git repo...
Cloning into bare repository '/home/cedric/Downloads/pulseview-git/pulseview'...
remote: Enumerating objects: 18844, done.
remote: Counting objects: 100% (18844/18844), done.
remote: Compressing objects: 100% (7312/7312), done.
remote: Total 18844 (delta 14841), reused 14829 (delta 11457), pack-reused 0
Receiving objects: 100% (18844/18844), 4.56 MiB | 3.63 MiB/s, done.
Resolving deltas: 100% (14841/14841), done.
==> Validating source files with md5sums...
    pulseview ... Skipped
==> Extracting sources...
  -> Creating working copy of pulseview git repo...
Cloning into 'pulseview'...
done.
==> Starting pkgver()...
==> Updated version: pulseview-git 0.3.0.r1149.g3903edbd-1
==> Starting build()...
-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/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/lib/ccache/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Performing Test HAVE_STD_CXX_17
-- Performing Test HAVE_STD_CXX_17 - Success
-- Performing Test HAVE_STD_CXX_14
-- Performing Test HAVE_STD_CXX_14 - Success
-- Performing Test HAVE_STD_CXX_11
-- Performing Test HAVE_STD_CXX_11 - Success
-- Using C++17 for the application build
-- Checking for module 'glibmm-2.4>2.28.0'
--   Found glibmm-2.4, version 2.66.6
-- Checking for module 'libsigrokcxx>=0.5.2'
--   Found libsigrokcxx, version 0.6.0-git
-- Checking for modules 'glib-2.0>=2.28.0;glibmm-2.4>=2.28.0;libsigrokcxx>=0.5.2;libsigrokdecode>=0.5.2'
--   Found glib-2.0, version 2.76.2
--   Found glibmm-2.4, version 2.66.6
--   Found libsigrokcxx, version 0.6.0-git
--   Found libsigrokdecode, version 0.6.0-git-d7da8b9
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
Package python-3.10-embed was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.10-embed.pc'
to the PKG_CONFIG_PATH environment variable
Package 'python-3.10-embed', required by 'libsigrokdecode', not found
-- Qt version: 5.15.9
-- Found Boost: /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.55") found components: filesystem serialization system
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Atomics provided by the C-library - yes
-- Performing Test HAVE_SRD_SESSION_SEND_EOF
-- Performing Test HAVE_SRD_SESSION_SEND_EOF - Failed
-- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS
-- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS - Success
-- PulseView version: 0.5.0-git-3903edb
-- Configuring done (1.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/cedric/Downloads/pulseview-git/src/pulseview
[  1%] Automatic MOC for target pulseview
[  1%] Built target pulseview_autogen
[  5%] Generating l10n/ja_jp.qm
[  5%] Generating l10n/es_MX.qm
[  5%] Generating qrc_pulseview.cpp
[  5%] Generating l10n/de.qm
Updating '/home/cedric/Downloads/pulseview-git/src/pulseview/l10n/es_MX.qm'...
Updating '/home/cedric/Downloads/pulseview-git/src/pulseview/l10n/de.qm'...
    Generated 289 translation(s) (289 finished and 0 unfinished)
    Generated 288 translation(s) (288 finished and 0 unfinished)
Updating '/home/cedric/Downloads/pulseview-git/src/pulseview/l10n/ja_jp.qm'...
    Generated 320 translation(s) (320 finished and 0 unfinished)
    Ignored 79 untranslated source text(s)
[  6%] Generating qrc_translations.cpp
[  7%] Building CXX object CMakeFiles/pulseview.dir/pv/globalsettings.cpp.o
[  9%] Building CXX object CMakeFiles/pulseview.dir/pv/application.cpp.o
[  9%] Building CXX object CMakeFiles/pulseview.dir/pulseview_autogen/mocs_compilation.cpp.o
[ 10%] Building CXX object CMakeFiles/pulseview.dir/main.cpp.o
[ 12%] Building CXX object CMakeFiles/pulseview.dir/pv/devicemanager.cpp.o
[ 12%] Building CXX object CMakeFiles/pulseview.dir/pv/logging.cpp.o
[ 13%] Building CXX object CMakeFiles/pulseview.dir/pv/mainwindow.cpp.o
[ 14%] Building CXX object CMakeFiles/pulseview.dir/pv/metadata_obj.cpp.o
[ 15%] Building CXX object CMakeFiles/pulseview.dir/pv/session.cpp.o
[ 16%] Building CXX object CMakeFiles/pulseview.dir/pv/util.cpp.o
[ 17%] Building CXX object CMakeFiles/pulseview.dir/pv/storesession.cpp.o
In file included from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/mainwindow.cpp:21: /usr/include/libsigrokdecode/libsigrokdecode.h:25:10: fatal error: glib.h: No such file or directory
   25 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
In file included from /home/cedric/Downloads/pulseview-git/src/pulseview/main.cpp:21: /usr/include/libsigrokdecode/libsigrokdecode.h:25:10: fatal error: glib.h: No such file or directory
   25 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pulseview.dir/build.make:294: CMakeFiles/pulseview.dir/pv/mainwindow.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/pulseview.dir/build.make:224: CMakeFiles/pulseview.dir/main.cpp.o] Error 1 In file included from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/logging.hpp:23,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/logging.cpp:20: /home/cedric/Downloads/pulseview-git/src/pulseview/pv/globalsettings.hpp:25:10: fatal error: glib.h: No such file or directory
   25 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pulseview.dir/build.make:280: CMakeFiles/pulseview.dir/pv/logging.cpp.o] Error 1 In file included from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/storesession.cpp:22: /home/cedric/Downloads/pulseview-git/src/pulseview/pv/storesession.hpp:32:10: fatal error: glibmm/variant.h: No such file or directory
   32 | #include <glibmm/variant.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pulseview.dir/build.make:336: CMakeFiles/pulseview.dir/pv/storesession.cpp.o] Error 1
In file included from /usr/include/libsigrokcxx/libsigrokcxx.hpp:73,
                 from /home/cedric/Downloads/pulseview-git/src/pulseview/pulseview_autogen/PLNN4COFE5/../../pv/application.hpp:29,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pulseview_autogen/PLNN4COFE5/moc_application.cpp:10,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/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:210: CMakeFiles/pulseview.dir/pulseview_autogen/mocs_compilation.cpp.o] Error 1 In file included from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/application.cpp:36: /usr/include/libsigrokdecode/libsigrokdecode.h:25:10: fatal error: glib.h: No such file or directory
   25 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pulseview.dir/build.make:238: CMakeFiles/pulseview.dir/pv/application.cpp.o] Error 1 In file included from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/globalsettings.cpp:34: /home/cedric/Downloads/pulseview-git/src/pulseview/pv/globalsettings.hpp:25:10: fatal error: glib.h: No such file or directory
   25 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pulseview.dir/build.make:266: CMakeFiles/pulseview.dir/pv/globalsettings.cpp.o] Error 1
In file included from /usr/include/libsigrokcxx/libsigrokcxx.hpp:73,
                 from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/data/signalbase.hpp:37,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/views/viewbase.hpp:33,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/session.hpp:50,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/mainwindow.hpp:32,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/session.cpp:32: /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:322: CMakeFiles/pulseview.dir/pv/session.cpp.o] Error 1
In file included from /usr/include/libsigrokcxx/libsigrokcxx.hpp:73,
                 from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/data/signalbase.hpp:37,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/views/viewbase.hpp:33,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/session.hpp:50,                  from /home/cedric/Downloads/pulseview-git/src/pulseview/pv/devicemanager.cpp:21: /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:252: CMakeFiles/pulseview.dir/pv/devicemanager.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:103: CMakeFiles/pulseview.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

On 5/11/23 22:55, Joshua Boyd via sigrok-devel wrote:

You could try adding -DCMAKE_INCLUDE_PATH=/usr/include/glib-2.0/ to the cmake command.  I would have thought that cmake should be getting that from pkg-config.

You might also try --trace-expand --log-level=TRACE-DVERBOSE=1.  I believe the first will make the cmake step print more info, and the second will make the make file print more.  You will probably want to direct the results to a file.


<snip>

_________________________________________________________________
________________________________________________________
Your E-Mail. Your Cloud. Your Office. eclipso Mail & Cloud. 
https://www.eclipso.de
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to