netmaker
netmaker copied to clipboard
[Bug]: netmaker-openwrt-0.14.4 complie error
Contact Details
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/[email protected]/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
- [X] Yes, I did.
how are you building (what command did you run)?
you only need to run go build to build netclient
I finished with building only netclient (for MIPS) in my case. Had to add GOMIPS=softfloat option
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -a -ldflags="-s -w" .
@aikonlee is this still an issue or is it solved?
@mattkasun It is solved.