Coder Social home page Coder Social logo

openwrt-cloudflared's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openwrt-cloudflared's Issues

Error while compiling IPK for OpenWrt 21.02.1

Hi,
Thanks for creating it!
I am a newbie on this topics but i would like to try.
I am trying to compile the cloudflare tunnel package in Ubuntu 20.04.4 LTS

my target: TP-Link TL-WR902AC v1 v21.02.1 (installed version)

I have download the Openwrt source follow the steps below:

Download the Openwrt

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git pull

Select a specific code revision

git branch -a
git tag
git checkout v21.02.1 # i am using this version

Update the feeds

./scripts/feeds update -a
./scripts/feeds install -a

Download the project clouflare tunnel

git clone https://github.com/BH4EHN/openwrt-cloudflared.git

Configure the firmware image and the kernel

make menuconfig
#choosing the target TP-Link TL-WR902AC v1
#saving the .config file
#editing the file by adding CONFIG_PACKAGE_cloudflared=y

Error

make ./package/bh4ehn/cloudflared/compile
make[1] package/bh4ehn/cloudflared/compile
make -r package/bh4ehn/cloudflared/compile: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/serveradmin/openwrt/include/toplevel.mk:230: package/bh4ehn/cloudflared/compile] Error 1

or

make -j1 V=sc ./package/bh4ehn/cloudflared/compile
make[1]: Entering directory '/home/serveradmin/openwrt'
make[1]: *** No rule to make target 'package/bh4ehn/cloudflared/compile'. Stop.
make[1]: Leaving directory '/home/serveradmin/openwrt'

Could you guide me how to continue ?

Br,

keecy

Error 2 toplevel.mk:220 while compiling using SDK

With the help from README.md and #1 I'm trying to compile openwrt-cloudflared, my first binary ever, but I'm stuck with the following error. Despite using -j1 V=sc it doesn't give me a clue how to fix this (as I was able to with several other errors).

So, executing make -j1 V=sc ./package/openwrt-cloudflared/compile ends with:

go: finding github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0
go: finding github.com/francoispqt/gojay v1.2.13
go: finding github.com/cloudflare/golibs v0.0.0-20170913112048-333127dbecfc

Building targets
golang.org/x/net/http2
github.com/coredns/coredns/plugin/pkg/log
# github.com/coredns/coredns/plugin/pkg/log
pkg/mod/github.com/coredns/[email protected]/plugin/pkg/log/log.go:105:34: undefined: io.Discard
note: module requires Go 1.16
# golang.org/x/net/http2
pkg/mod/golang.org/x/[email protected]/http2/transport.go:417:45: undefined: os.ErrDeadlineExceeded
note: module requires Go 1.17
github.com/coredns/coredns/plugin/pkg/doh
# github.com/coredns/coredns/plugin/pkg/doh
pkg/mod/github.com/coredns/[email protected]/plugin/pkg/doh/doh.go:95:14: undefined: io.ReadAll
note: module requires Go 1.16
github.com/lucas-clemente/quic-go/internal/qtls
go build github.com/lucas-clemente/quic-go/internal/qtls: build constraints exclude all Go files in /home/debian/openwrt-sdk/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/cloudflared-2022.5.1/.go_work/build/pkg/mod/github.com/chungthuang/[email protected]/internal/qtls
github.com/go-logr/logr/funcr
# github.com/go-logr/logr/funcr
pkg/mod/github.com/go-logr/[email protected]/funcr/funcr.go:398:16: undefined: strconv.FormatComplex
pkg/mod/github.com/go-logr/[email protected]/funcr/funcr.go:400:16: undefined: strconv.FormatComplex
pkg/mod/github.com/go-logr/[email protected]/funcr/funcr.go:443:16: undefined: strconv.FormatComplex
pkg/mod/github.com/go-logr/[email protected]/funcr/funcr.go:445:16: undefined: strconv.FormatComplex
note: module requires Go 1.16

Cleaning module download cache (golang/go#27455)

make[2]: *** [Makefile:59: /home/debian/openwrt-sdk/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/cloudflared-2022.5.1/.built] Error 2
make[2]: Leaving directory '/home/debian/openwrt-sdk/package/openwrt-cloudflared'
time: package/openwrt-cloudflared/compile#26.56#7.46#30.60
make[1]: *** [package/Makefile:113: package/openwrt-cloudflared/compile] Error 2
make[1]: Leaving directory '/home/debian/openwrt-sdk'
make: *** [/home/debian/openwrt-sdk/include/toplevel.mk:220: package/openwrt-cloudflared/compile] Error 2

I'm trying to build on Debian 11 (x86_64), using openwrt-sdk-19.07.10-mvebu-cortexa9_gcc-7.5.0_musl_eabi.Linux-x86_64 (for Turris Omnia, current TurrisOS 5.3.9, which is based on OpenWrt 19.07.10) with these commands:

wget https://downloads.openwrt.org/releases/19.07.10/targets/mvebu/cortexa9/openwrt-sdk-19.07.10-mvebu-cortexa9_gcc-7.5.0_musl_eabi.Linux-x86_64.tar.xz

git clone https://github.com/BH4EHN/openwrt-cloudflared.git package/openwrt-cloudflared/
./scripts/feeds update -a
./scripts/feeds install golang
make menuconfig
make -j1 V=sc ./package/openwrt-cloudflared/compile

Any help would be really appreciated, thanks in advance.

Not available in package manager for

Hi,

I'm not sure on the process to get this across into the package manager for OpenWrt 23.05.0 but it appears to be missing, can you push to the package manager?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.