nobonobo / nobopiano

Simplest Piano App for gomobile
11 stars 0 forks source link

OSX dependencies broken #2

Open joeblew99 opened 7 years ago

joeblew99 commented 7 years ago
go get github.com/nobonobo/nobopiano

# golang.org/x/mobile/app
../../../golang.org/x/mobile/app/darwin_amd64.m:170:30: warning: 'NSKeyDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:74:26: note: 'NSKeyDown' has been explicitly marked deprecated here
../../../golang.org/x/mobile/app/darwin_amd64.m:211:14: warning: 'NSTitledWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:953:32: note: 'NSTitledWindowMask' has been explicitly marked deprecated here
../../../golang.org/x/mobile/app/darwin_amd64.m:215:22: warning: 'NSResizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:956:32: note: 'NSResizableWindowMask' has been explicitly marked deprecated here
../../../golang.org/x/mobile/app/darwin_amd64.m:216:22: warning: 'NSMiniaturizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:955:32: note: 'NSMiniaturizableWindowMask' has been explicitly marked deprecated here
../../../golang.org/x/mobile/app/darwin_amd64.m:217:22: warning: 'NSClosableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:954:32: note: 'NSClosableWindowMask' has been explicitly marked deprecated here
x-MacBook-Pro:webrtc apple$ 
joeblew99 commented 7 years ago

sorry. does compile though... weird go get explodes like that ?

joeblew99 commented 7 years ago

Trying to build for Android, but it looks like gomobile audio interface has changed ?

go: 1.8.3 OS: OSX

x-MacBook-Pro:nobopiano apple$ go get -u golang.org/x/mobile/cmd/gomobile
x-MacBook-Pro:nobopiano apple$ gomobile build -target=android
gomobile: go build -pkgdir=/Users/apple/workspace/go/pkg/gomobile/pkg_android_arm -buildmode=c-shared -o /var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/gomobile-work-318933473/lib/armeabi-v7a/libnobopiano.so github.com/nobonobo/nobopiano failed: exit status 2
# golang.org/x/mobile/exp/audio/al
../../../golang.org/x/mobile/exp/audio/al/al_android.go:13:10: fatal error: 'AL/al.h' file not found
#include <AL/al.h>
         ^
1 error generated.
joeblew99 commented 7 years ago

I updated my NDK as the SDK manager said it was outdated. Cleaned my gomobile. reinstalled gomobile, etc

SO i raised this issue:

https://github.com/golang/go/issues/20547