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

Makefile: fix cannot find libucode and libubox when running ucode #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bacnh85
Copy link

@bacnh85 bacnh85 commented Nov 18, 2023

Env: wlan-ap

When install ufp package, host execute ucode:

ucode ./scripts/convert-devices.uc $(1)/usr/share/ufp/devices.bin ./data/*.json

however, it through several errors:

  1. Can't find libucode
ucode ./scripts/convert-devices.uc /opt/tip-wlan-ap/openwrt/build_dir/target-mips_24kc_musl/ufp-1/.pkgdir/ufp/usr/share/ufp/devices.bin ./data/*.json
ucode: error while loading shared libraries: libucode.so.20220812: cannot open shared object file: No such file or directory

libucode is installed in staging_dir/hostpkg/lib or $(STAGING_DIR_HOSTPKG)/lib

  1. Can't find libubox if not provide path for code
Runtime error: Unable to dlopen file '/opt/tip-wlan-ap/openwrt/staging_dir/hostpkg/lib/ucode/uht.so': libubox.so: cannot open shared object file: No such file or directory
In ./scripts/convert-devices.uc, line 4, byte 23:

 `let uht = require("uht");`
  Near here -------------^

libubox host is installed in staging_dir/host/lib/ or $(STAGING_DIR_HOST)/lib/

Signed-off-by: HaiBac <mail@bacnh.com>
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

Successfully merging this pull request may close these issues.

1 participant