Hi,
Can you give some steps to compile libopen62541 library for openwrt?
I tested the available libopen62541 version 1.3.6 package :
https://openwrt.pkgs.org/24.10/openwrt-packages-aarch64_cortex-a72/libopen62541_1.3.6-r1_aarch64_cortex-a72.ipk.html
But this does not work, i get this error when compiling an example from open62541:
/usr/bin/ld: /usr/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../lib64/libopen62541.so: error adding symbols: file in wrong format
frollic
2
that's the target package, not the one you need for compiling.
what's the platform used for building ?
since you already found the pre-built lib, why are you building it "again" ?
i want to build it again because i want use the functions of the newest library on: https://github.com/open62541/open62541
frollic
4
well, you're doing it wrong, but since you're not answering all the questions, the help will most likely end here.
Sorry i was to quick
The platform is bcm2711. OpenWRT is installed on a RPI CM4.
frollic
6
well, you can't (with some exceptions) compile openwrt on openwrt, you'll most likely need a separate build host.
Okay, you mean i can’t compile a library intented for openwrt on openwrt operating system?
slh
9
Correct, OpenWrt is not self-hosting.
Is there a manual for compiling on a platform which can compile packages intended for OpenWrt?
frollic
11
note the "Building OpenWrt ON OpenWrt" link, if you still want to try it.
since the package already exists, you can probably just update the existing make file, to use the release you require.
1 Like
system
Closed
12
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.