I've successfully built the recent release of sigrok/lib/decoder/pulseview on WSL Ubuntu on Windows 10.
I tried to build smunaut/libsigrok in the context of our discord chat to get iua working with the iCEBreaker, but I'm seeing a build error during make:
git clone https://github.com/smunaut/libsigrok.git smunaut-libsigrok
cd smunaut-libsigrok
./autogen.sh
./configure
make
CC src/hardware/iua/protocol.lo
src/hardware/iua/protocol.c: In function ‘iua_receive_data’:
src/hardware/iua/protocol.c:123:8: warning: implicit declaration of function ‘serial_read_nonblocking’ [-Wimplicit-function-declaration]
len = serial_read_nonblocking(serial, devc->ser_buf + devc->ser_buflen, IUA_SER_BUFSIZE - devc->ser_buflen);
^~~~~~~~~~~~~~~~~~~~~~~
CC src/hardware/iua/api.lo
src/hardware/iua/api.c: In function ‘scan’:
src/hardware/iua/api.c:65:11: warning: implicit declaration of function ‘sr_serial_dev_inst_new’; did you mean ‘sr_usbtmc_dev_inst_new’? [-Wimplicit-function-declaration]
serial = sr_serial_dev_inst_new(conn, serialcomm);
^~~~~~~~~~~~~~~~~~~~~~
sr_usbtmc_dev_inst_new
src/hardware/iua/api.c:65:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
serial = sr_serial_dev_inst_new(conn, serialcomm);
^
src/hardware/iua/api.c: In function ‘dev_acquisition_start’:
src/hardware/iua/api.c:170:2: warning: implicit declaration of function ‘serial_source_add’; did you mean ‘usb_source_add’? [-Wimplicit-function-declaration]
serial_source_add(sdi->session, serial, G_IO_IN, 100,
^~~~~~~~~~~~~~~~~
usb_source_add
src/hardware/iua/api.c:173:6: warning: implicit declaration of function ‘serial_write_blocking’ [-Wimplicit-function-declaration]
if (serial_write_blocking(serial, "e", 1, SERIAL_WRITE_TIMEOUT_MS) < 0) {
^~~~~~~~~~~~~~~~~~~~~
src/hardware/iua/api.c: In function ‘dev_acquisition_stop’:
src/hardware/iua/api.c:197:13: warning: implicit declaration of function ‘serial_source_remove’; did you mean ‘usb_source_remove’? [-Wimplicit-function-declaration]
if ((ret = serial_source_remove(sdi->session, serial)) < 0) {
^~~~~~~~~~~~~~~~~~~~
usb_source_remove
src/hardware/iua/api.c: At top level:
src/hardware/iua/api.c:217:14: error: ‘std_serial_dev_open’ undeclared here (not in a function); did you mean ‘std_serial_dev_close’?
.dev_open = std_serial_dev_open,
^~~~~~~~~~~~~~~~~~~
std_serial_dev_close
Makefile:3366: recipe for target 'src/hardware/iua/api.lo' failed
make[1]: *** [src/hardware/iua/api.lo] Error 1
Makefile:1734: recipe for target 'all' failed
make: *** [all] Error 2
I have the sigrokproject/libserialport successfully built and installed, so the std_serial_dev_open must be someplace else? Any tips for what I might be doing wrong?
Once operational, are there plans to send your iCEBreaker features back to sigrok as a PR? That would be really quite cool.
I've successfully built the recent release of sigrok/lib/decoder/pulseview on WSL Ubuntu on Windows 10.
I tried to build smunaut/libsigrok in the context of our discord chat to get
iuaworking with the iCEBreaker, but I'm seeing a build error duringmake:I have the sigrokproject/libserialport successfully built and installed, so the
std_serial_dev_openmust be someplace else? Any tips for what I might be doing wrong?Once operational, are there plans to send your iCEBreaker features back to sigrok as a PR? That would be really quite cool.