Open IAmHuiXue opened 1 year ago
Hi @IAmHuiXue , can you provide more information? What version, what machine, etc?
Thanks for replying. My machine is Apple M1 Macbook Air, version 13.2 beta 22D7750270d.
Here is a full log history:
rm -rf ./bin
mkdir -p -v ./bin/amm.app/Contents/Resources
./bin
./bin/amm.app
./bin/amm.app/Contents
./bin/amm.app/Contents/Resources
mkdir -p -v ./bin/amm.app/Contents/MacOS
./bin/amm.app/Contents/MacOS
cp ./appInfo/*.plist ./bin/amm.app/Contents/Info.plist
cp ./appInfo/*.icns ./bin/amm.app/Contents/Resources/icon.icns
go build -o ./bin/amm.app/Contents/MacOS/amm cmd/main.go
# github.com/shirou/gopsutil/cpu
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/cpu/cpu_darwin_cgo.go:13:5: warning: 'TARGET_OS_MAC' is not defined, evaluates to 0 [-Wundef-prefix=TARGET_OS_]
# github.com/getlantern/systray
systray_darwin.m:128:22: warning: 'NSOnState' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
systray_darwin.m:9:33: note: expanded from macro 'NSControlStateValueOn'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:353:34: note: 'NSOnState' has been explicitly marked deprecated here
systray_darwin.m:130:22: warning: 'NSOffState' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
systray_darwin.m:5:34: note: expanded from macro 'NSControlStateValueOff'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:352:34: note: 'NSOffState' has been explicitly marked deprecated here
# github.com/robotn/gohook
In file included from ../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/hook.go:22:
In file included from ../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/goEvent.h:18:
In file included from ../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/pub.h:15:
../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/../hook/darwin/hook_c.h:619:25: warning: cast to smaller integer type 'uint16_t' (aka 'unsigned short') from 'CFDataRef' (aka 'const struct __CFData *') [-Wpointer-to-int-cast]
../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/../hook/darwin/hook_c.h:620:26: warning: cast to smaller integer type 'uint16_t' (aka 'unsigned short') from 'CFDataRef' (aka 'const struct __CFData *') [-Wpointer-to-int-cast]
# github.com/shirou/gopsutil/process
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:575:34: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:576:8: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:589:32: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:593:62: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:595:11: undefined: KinfoProc
Make: *** [build] Error 2
I have the same issue, m1 macbook pro. I'm trying to build as installing the .app directly doesn't allow me any option to 'open it anyway' :(
rm -rf ./bin
mkdir -p -v ./bin/amm.app/Contents/Resources
./bin
./bin/amm.app
./bin/amm.app/Contents
./bin/amm.app/Contents/Resources
mkdir -p -v ./bin/amm.app/Contents/MacOS
./bin/amm.app/Contents/MacOS
cp ./appInfo/*.plist ./bin/amm.app/Contents/Info.plist
cp ./appInfo/*.icns ./bin/amm.app/Contents/Resources/icon.icns
go build -o ./bin/amm.app/Contents/MacOS/amm cmd/main.go
go: downloading github.com/sirupsen/logrus v1.4.1
go: downloading github.com/getlantern/systray v0.0.0-20190131073753-26d5b920200d
go: downloading github.com/go-vgo/robotgo v0.0.0-20190409154511-f2a0505446b2
go: downloading github.com/prashantgupta24/activity-tracker v1.0.0
go: downloading golang.org/x/sys v0.0.0-20190410170021-cc4d4f50624c
go: downloading github.com/prashantgupta24/mac-sleep-notifier v0.1.1
go: downloading github.com/getlantern/golog v0.0.0-20170508214112-cca714f7feb5
go: downloading github.com/getlantern/hidden v0.0.0-20190325191715-f02dbb02be55
go: downloading github.com/getlantern/errors v0.0.0-20190325191628-abdb3e3e36f7
go: downloading github.com/oxtoacart/bpool v0.0.0-20190227141107-8c4636f812cc
go: downloading github.com/getlantern/ops v0.0.0-20190325191751-d70cb0d6f85f
go: downloading github.com/getlantern/hex v0.0.0-20160523043825-083fba3033ad
go: downloading github.com/shirou/gopsutil v0.0.0-20190131151121-071446942108
go: downloading github.com/robotn/gohook v0.0.0-20190318172628-a7a38946710e
go: downloading github.com/vcaesar/imgo v0.0.0-20181209162409-13af122cf2fa
go: downloading github.com/getlantern/context v0.0.0-20190109183933-c447772a6520
go: downloading github.com/go-stack/stack v1.8.0
go: downloading golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
# github.com/robotn/gohook
In file included from ../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/hook.go:22:
In file included from ../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/goEvent.h:18:
In file included from ../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/pub.h:15:
../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/../hook/darwin/hook_c.h:619:25: warning: cast to smaller integer type 'uint16_t' (aka 'unsigned short') from 'CFDataRef' (aka 'const struct __CFData *') [-Wpointer-to-int-cast]
../../../go/pkg/mod/github.com/robotn/gohook@v0.0.0-20190318172628-a7a38946710e/event/../hook/darwin/hook_c.h:620:26: warning: cast to smaller integer type 'uint16_t' (aka 'unsigned short') from 'CFDataRef' (aka 'const struct __CFData *') [-Wpointer-to-int-cast]
# github.com/shirou/gopsutil/cpu
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/cpu/cpu_darwin_cgo.go:13:5: warning: 'TARGET_OS_MAC' is not defined, evaluates to 0 [-Wundef-prefix=TARGET_OS_]
# github.com/shirou/gopsutil/process
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:575:34: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:576:8: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:589:32: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:593:62: undefined: KinfoProc
../../../go/pkg/mod/github.com/shirou/gopsutil@v0.0.0-20190131151121-071446942108/process/process_darwin.go:595:11: undefined: KinfoProc
# github.com/getlantern/systray
systray_darwin.m:128:22: warning: 'NSOnState' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
systray_darwin.m:9:33: note: expanded from macro 'NSControlStateValueOn'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:353:34: note: 'NSOnState' has been explicitly marked deprecated here
systray_darwin.m:130:22: warning: 'NSOffState' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
systray_darwin.m:5:34: note: expanded from macro 'NSControlStateValueOff'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:352:34: note: 'NSOffState' has been explicitly marked deprecated here
Make: *** [build] Error 2
Sorry to hear that, another active issue is already opened to create a build for m1 here: https://github.com/prashantgupta24/automatic-mouse-mover/issues/33. I am not able to find time to address that though.
I'm curious to know why @butterywombat you are not able to use the .app directly, did you try to right-click
and select open
? Otherwise mac prevents you from opening it.
I was able to open it after sudo spctl --master-disable
! however it does not load or anything (it does ask to change system permissions though). should I make another ticket for this?
edit: nvm somehow it started showing in the menu bar correctly, it works! thanks :)
Hi there,
After I cloned the repo and executed
Make
command, the build failed and here is the output from the console:Wondering if anyone has ever experienced this before?