AnsweredAssumed Answered

lib-iio and gr-iio instalation error with pybombs

Question asked by julianms on Sep 27, 2017
Latest reply on Oct 4, 2017 by julianms


I'm getting this error trying to install the libiio and gr-iio with pyboms (with command sudo pybombs install gr-iio):


[  4%] Building C object CMakeFiles/iio.dir/serial.c.o
/home/julian/prefix/src/libiio/serial.c: In function ‘serial_read_data’:
/home/julian/prefix/src/libiio/serial.c:204:49: warning: implicit declaration of function ‘sp_blocking_read_next’ [-Wimplicit-function-declaration]
  ssize_t ret = (ssize_t) libserialport_to_errno(sp_blocking_read_next(
/home/julian/prefix/src/libiio/serial.c: In function ‘serial_create_context’:
/home/julian/prefix/src/libiio/serial.c:334:45: error: ‘SP_MODE_READ_WRITE’ undeclared (first use in this function)
  ret = libserialport_to_errno(sp_open(port, SP_MODE_READ_WRITE));
/home/julian/prefix/src/libiio/serial.c:334:45: note: each undeclared identifier is reported only once for each function it appears in
/home/julian/prefix/src/libiio/serial.c:350:9: warning: implicit declaration of function ‘sp_get_port_description’ [-Wimplicit-function-declaration]
  desc = sp_get_port_description(port);
/home/julian/prefix/src/libiio/serial.c:350:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  desc = sp_get_port_description(port);
CMakeFiles/iio.dir/build.make:254: recipe for target 'CMakeFiles/iio.dir/serial.c.o' failed
make[2]: *** [CMakeFiles/iio.dir/serial.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/iio.dir/all' failed
make[1]: *** [CMakeFiles/iio.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
    PyBOMBS.Packager.source - ERROR - Build failed. See output above for error messages.
PyBOMBS.Packager.source - ERROR - Problem occurred while building package libiio:
Build failed.
PyBOMBS.install_manager - ERROR - Error installing package libiio. Aborting.


It seems an error related with serial port but I don't knopw how to solve.