Open mr-jia1994 opened 2 years ago
Please stick to English as common forum language.
We have a documented openwrt build process that is currently successfully building the latest dev version of n2n against the latest openwrt
See: https://github.com/ntop/n2n/blob/dev/packages/openwrt/README.md https://github.com/ntop/n2n/actions/workflows/openwrt.yml
If you are experiencing issues, can you first replicate them using our build process and clearly show all your build steps in any issue.
I used docker to compile for openwrt or alpine, the file that static compiled in alpine can also be used in openwrt.
-----------using openwrt docker sudo docker run --rm -v ~/tmp/:/home/ -it openwrtorg/rootfs:21.02.0 # there is no gcc package in 22 somehow cd n2n opkg update && opkg install autoconf automake gcc bash make ./autogen.sh ./configure CFLAGS='-static' #static building although is not recommended by the author, can be ignored make make install
-----------using alpine docker
sudo docker run --rm -v ~/tmp/:/home/ -it alpine apk add --update autoconf automake gcc bash make linux-headers libc-dev ./autogen.sh ./configure CFLAGS='-static' #if you want to used in openwrt, this option is mandatory make make install
So, is this still an issue?
安装下 opkg install coreutils-install 就可以解决
Compiling 3.0 is ok Compiling version 3.1 reported an error Information is as follows
There is no problem with openwrt compiling 3.0, one pass. Recently, I want to change to 3.1, but the compilation error is as follows (the main directory is omitted)