gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

[Bug]: netmaker-openwrt-0.14.4 complie error #1285

Closed aikonlee closed 1 year ago

aikonlee commented 2 years ago

Contact Details

aikonlee@gmail.com

What happened?

go version go1.18.3 linux/amd64

netmaker-openwrt-0.14.4 complie error

Version

v0.14.4

What OS are you using?

Linux

Relevant log output

Building targets
github.com/go-gl/gl/v3.2-core/gl
# /home/aikon/openwrt/staging_dir/host/bin/pkg-config --cflags  -- gl gl
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gl', required by 'virtual:world', not found
Package 'gl', required by 'virtual:world', not found
/home/aikon/openwrt/staging_dir/host/bin/pkg-config: exit status 1
github.com/go-gl/glfw/v3.3/glfw
github.com/gravitl/netmaker/netclient/functions
# github.com/go-gl/glfw/v3.3/glfw
In file included from ./glfw/src/internal.h:188,
                 from ./glfw/src/context.c:30,
                 from ../../../../../dl/go-mod-cache/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20211213063430-748e38ca8aec/c_glfw.go:4:
./glfw/src/x11_platform.h:33:10: fatal error: X11/Xlib.h: No such file or directory
 #include <X11/Xlib.h>
          ^~~~~~~~~~~~
compilation terminated.
# github.com/gravitl/netmaker/netclient/functions
../../netclient/functions/common.go:320:15: undefined: any
note: module requires Go 1.18

# go version
go version go1.18.3 linux/amd64

Contributing guidelines

mattkasun commented 2 years ago

how are you building (what command did you run)?

you only need to run go build to build netclient

Gromina commented 2 years ago

I finished with building only netclient (for MIPS) in my case. Had to add GOMIPS=softfloat option

aikonlee commented 2 years ago

CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -a -ldflags="-s -w" .

mattkasun commented 1 year ago

@aikonlee is this still an issue or is it solved?

aikonlee commented 1 year ago

@mattkasun It is solved.