Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile: unable to run example/basic on mac osx 10.11.6 El Capitan #43876

Closed
einthusan opened this issue Jan 24, 2021 · 4 comments
Closed

x/mobile: unable to run example/basic on mac osx 10.11.6 El Capitan #43876

einthusan opened this issue Jan 24, 2021 · 4 comments
Labels
Milestone

Comments

@einthusan
Copy link

@einthusan einthusan commented Jan 24, 2021

What version of Go are you using (go version)?

$ go version
go version go1.14.12 darwin/amd64

Does this issue reproduce with the latest release?

this is the latest support for this OS version

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/usr/local/gopath/bin"
GOCACHE="/Users/einthusan/Library/Caches/go-build"
GOENV="/Users/einthusan/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY="github.com/paperboard"
GONOSUMDB="github.com/paperboard"
GOOS="darwin"
GOPATH="/usr/local/gopath"
GOPRIVATE="github.com/paperboard"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cj/ymv0b8js49l90hc7v5txjqg80000gn/T/go-build212890867=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go install golang.org/x/mobile/example/basic

What did you expect to see?

no errors and a compiled program

What did you see instead?

the program did not compile and the following errors

# golang.org/x/mobile/app
darwin_desktop.m:175:30: error: use of undeclared identifier 'NSEventTypeKeyDown'
darwin_desktop.m:216:14: error: use of undeclared identifier 'NSWindowStyleMaskTitled'
darwin_desktop.m:220:22: error: use of undeclared identifier 'NSWindowStyleMaskResizable'
darwin_desktop.m:221:22: error: use of undeclared identifier 'NSWindowStyleMaskMiniaturizable'
darwin_desktop.m:222:22: error: use of undeclared identifier 'NSWindowStyleMaskClosable'
@gopherbot gopherbot added this to the Unreleased milestone Jan 24, 2021
@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Jan 24, 2021

The examples use up to date (non deprecated) apis, use an earlier version of the examples to run on older is versions.

Ex. NSKeyDown is available for <= 10.12 and NSEventTypeKeyDown for >= 10.12

I'm going to close this since I don't think anything can be done

@seankhliao seankhliao closed this Jan 24, 2021
@einthusan
Copy link
Author

@einthusan einthusan commented Jan 24, 2021

But if we are supposedly going to use this repo to write cross-platform code, shouldn't this detail be hidden inside? Do you expect developers to be aware of these keydown differences, and various others?

@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Jan 24, 2021

It is hidden as long as you use an up to date OS

10.11 hasn't been supported for 2.5 years (apple security fixes)

@einthusan
Copy link
Author

@einthusan einthusan commented Jan 24, 2021

It is hidden as long as you use an up to date OS
10.11 hasn't been supported for 2.5 years (apple security fixes)

This is more of an excuse than real support. My computer is working perfectly fine. I can run Go on it! Support should be there, and it is not that hard to support it either. Thanks for your time though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants