netmaker icon indicating copy to clipboard operation
netmaker copied to clipboard

[Bug]: netmaker-openwrt-0.14.4 complie error

Open Aikonlee opened this issue 3 years ago • 3 comments

Contact Details

[email protected]

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.

Aikonlee avatar Jul 04 '22 02:07 Aikonlee

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

you only need to run go build to build netclient

mattkasun avatar Jul 04 '22 13:07 mattkasun

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

Gromina avatar Aug 25 '22 08:08 Gromina

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

Aikonlee avatar Sep 06 '22 03:09 Aikonlee

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

mattkasun avatar Sep 29 '22 14:09 mattkasun

@mattkasun It is solved.

Aikonlee avatar Oct 22 '22 06:10 Aikonlee