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.
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
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 to
qsort_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 2What am doing wrong/missing?! Kindly aid me guys. Thanks in advance