Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibilty w.r.t openwrt toolchains ? #108

Open
GanesanGuru opened this issue Jun 8, 2023 · 0 comments
Open

Compatibilty w.r.t openwrt toolchains ? #108

GanesanGuru opened this issue Jun 8, 2023 · 0 comments

Comments

@GanesanGuru
Copy link

GanesanGuru commented Jun 8, 2023

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 2

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant