Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PulseView Build fails with error: cannot convert 'Glib::DateTime' to 'Glib::TimeVal' #83

Open
Detzi88 opened this issue Dec 13, 2024 · 0 comments

Comments

@Detzi88
Copy link

Detzi88 commented Dec 13, 2024

I tried to build PulseView in a debian12 docker. I followed these guides:
Wiki
AUR
Build Guide
which resulted in attached docker file
Dockerfile.md
When now running

docker build -t sigrok ./sigrok

the container builds fine and i can run it with

docker run -it sigrok

but when i now enter the sigrok git repo and invoke make i get:

[ 17%] Building CXX object CMakeFiles/pulseview.dir/pv/storesession.cpp.o
/pulseview/pv/storesession.cpp: In member function 'bool pv::StoreSession::start()':
/pulseview/pv/storesession.cpp:188:96: error: cannot convert 'Glib::DateTime' to 'Glib::TimeVal'
  188 |                 auto header = context->create_header_packet(session_.get_acquisition_start_time());
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                                                                |
      |                                                                                                Glib::DateTime
In file included from /pulseview/pv/data/signalbase.hpp:37,
                 from /pulseview/pv/storesession.cpp:30:

A comment in the AUR mentioned that this is related to a bug in boost and that "env LC_ALL=c sigrok" should fix it, but when i try to adapt my locales it makes no difference. I checked the env of the docker

root@1932b240cba2:/# env
HOSTNAME=1932b240cba2
PWD=/
HOME=/root
TERM=xterm
SHLVL=1
LC_ALL=c
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/usr/bin/env

and the LC_ALL is set how I'd expected it. How can i fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant