I've tried building an older version of pulseview, and it fails in the same way. This is interesting, as the exact same git revision did build correctly a few months ago:
https://aur.archlinux.org/packages/pulseview-git

It seems the problem is not in he source of pulseview, but in my installation of arch linux.
$ rm -rf pulseview/
$ git clone git://sigrok.org/pulseview
$ cd pulseview/
$ git checkout 292b6ebc37281a28982e5d9e43471d9b3eab1d8f
HEAD is now at 292b6ebc StoreSession: Use Glib::DateTime
[cedric@cedric pulseview]$ cmake .
-- 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/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.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-292b6eb
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /home/cedric/sigrok-qt/pulseview
[cedric@cedric pulseview]$ make
[  1%] Automatic MOC for target pulseview
[  1%] Built target pulseview_autogen
[  2%] Generating l10n/de.qm
Updating '/home/cedric/sigrok-qt/pulseview/l10n/de.qm'...
    Generated 288 translation(s) (288 finished and 0 unfinished)
[  3%] Generating l10n/es_MX.qm
Updating '/home/cedric/sigrok-qt/pulseview/l10n/es_MX.qm'...
    Generated 289 translation(s) (289 finished and 0 unfinished)
[  4%] Generating l10n/ja_jp.qm
Updating '/home/cedric/sigrok-qt/pulseview/l10n/ja_jp.qm'...
    Generated 320 translation(s) (320 finished and 0 unfinished)
    Ignored 79 untranslated source text(s)
[  5%] Generating qrc_translations.cpp
[  6%] Generating qrc_pulseview.cpp
[  7%] Building CXX object CMakeFiles/pulseview.dir/pulseview_autogen/mocs_compilation.cpp.o
In file included from /usr/include/libsigrokcxx/libsigrokcxx.hpp:73,
                 from /home/cedric/sigrok-qt/pulseview/pulseview_autogen/PLNN4COFE5/../../pv/application.hpp:29,                  from /home/cedric/sigrok-qt/pulseview/pulseview_autogen/PLNN4COFE5/moc_application.cpp:10,                  from /home/cedric/sigrok-qt/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 make[1]: *** [CMakeFiles/Makefile2:103: CMakeFiles/pulseview.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

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