github.com/RAKWireless/RAK831_LoRaGateway



  • https://github.com/RAKWireless/RAK831_LoRaGateway

    Hello,

    I am trying to follow instructions published on https://github.com/RAKWireless/RAK831_LoRaGateway
    I got sucked on Step #3:
    # [STEP 3] Go to the /libmpsse/src directory and install the library
    sudo ./configure --disable-python

    First at all, there is no /libmpsee/src on raspbian. Maybe author's Readme wanted to mean home/pi/RAK831_LoRaGateway-master/libmpsse/src ?
    If I cd there and I execute sudo ./configure --disable-python, I get:

    pi@RAK831:~/RAK831_LoRaGateway-master/libmpsse/src $ sudo ./configure --disable-python
    configure: WARNING: unrecognized options: --disable-python
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for size_t... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking libftdi1/ftdi.h usability... no
    checking libftdi1/ftdi.h presence... no
    checking for libftdi1/ftdi.h... no
    checking ftdi.h usability... yes
    checking ftdi.h presence... yes
    checking for ftdi.h... yes
    checking for ftdi_init in -lftdi... yes
    configure: creating ./config.status
    config.status: creating Makefile
    configure: WARNING: unrecognized options: --disable-python

    Finally, when I MAKE, I got an error:

    pi@RAK831:~/RAK831_LoRaGateway-master/libmpsse/src $ make
    gcc -Wall -fPIC -fno-strict-aliasing -g -O2 -shared -Wl,-soname,libmpsse.so *.o -o libmpsse.so -lftdi
    fast.o: file not recognized: File format not recognized
    collect2: error: ld returned 1 exit status
    Makefile:18: recipe for target 'mpsse' failed
    make: *** [mpsse] Error 1

    How should I solve it?

    With best regards

    Sebastian



  • @barillaro

    make clean
    make

    they did the magic.

    After that, I was able to continue up to Step $5.
    There, I have an error when I try
    pi@RAK831:~/RAK831_LoRaGateway-master/lora_gateway/libloragw $ sudo ./test_loragw_reg
    ./test_loragw_reg: error while loading shared libraries: libmpsse.so: cannot open shared object file: No such file or directory



Looks like your connection to RAK Support Center was lost, please wait while we try to reconnect.