Lora-net / sx1302_hal

SX1302/SX1303 Hardware Abstraction Layer and Tools (packet forwarder...)
Other
219 stars 271 forks source link

Compatibilty w.r.t openwrt toolchains ? #108

Open GanesanGuru opened 1 year ago

GanesanGuru commented 1 year ago

Greetings fellas, We can compile the repo w.r.t linux laptop or w.r.t RPi as mentioned in 4.3. Cross-compile from a PC. Yet, our target is Qualcomm IPQ807x and we are trying to cross-compile the SX1302 HAL w.r.t its toolchains loacted @ /qca-spf-10-0/qsdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-5.2.0_musl-1.1.16/bin.

I've edited the master Makefile as follows, with the reference too this.

Environment constants

export ARCH=aarch64 export CROSS_COMPILE=aarch64-openwrt-linux- export STAGING_DIR = /qca-spf-10-0/qsdk/staging_dir/ export PATH := /qca-spf-10-0/qsdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-5.2.0_musl-1.1.16/bin:$(PATH)

On compilation, I've received the following error : ./libloragw.a(loragw_hal.o): In function lgw_receive': loragw_hal.c:(.text+0x1ba0): undefined reference toqsort_r' collect2: error: ld returned 1 exit status make[1]: [Makefile:136: test_loragw_com] Error 1 make[1]: Leaving directory '/home/vvdn/.local/share/Trash/files/sx1302_hal-master.8/libloragw' make: [Makefile:20: libloragw] Error 2

What am doing wrong/missing?! Kindly aid me guys. Thanks in advance