Hello everyone, I successfully run cmake and also build files written but in while running make it gives following error,
In file included from /home/pi/LTE-Cell-Scanner-CSI/include/capbuf.h:39,
from /home/pi/LTE-Cell-Scanner-CSI/src/capbuf.cpp:25:
/home/pi/LTE-Cell-Scanner-CSI/src/capbuf.cpp: In function ‘int open_bladerf_board(bladerf_device*&, unsigned int, unsigned int)’:
/home/pi/LTE-Cell-Scanner-CSI/src/capbuf.cpp:90:45: error: invalid conversion from ‘bladerf_channel’ {aka ‘int’} to ‘bladerf_channel_layout’ [-fpermissive]
90 | status = bladerf_sync_config(bladerf_dev, BLADERF_MODULE_RX, BLADERF_FORMAT_SC16_Q11, 2, buffer_size, 1, 3500);
| ^~~~~~~~~~~~~~~~~
| |
| bladerf_channel {aka int}
/usr/local/include/libbladeRF.h:2723:58: note: initializing argument 2 of ‘int bladerf_sync_config(bladerf*, bladerf_channel_layout, bladerf_format, unsigned int, unsigned int, unsigned int, unsigned int)’
2723 | bladerf_channel_layout layout,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
make[2]: *** [src/CMakeFiles/LTE_MISC.dir/build.make:82: src/CMakeFiles/LTE_MISC.dir/capbuf.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:220: src/CMakeFiles/LTE_MISC.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
how to resolve this error?