You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or a deliberate decision, but develop branch (UPD: or fyne version 2.1.0) currently cannot be built on Mac OS 10.12 Sierra since it uses some API introduced in Mac OS 10.14. The master branch (UPD: fyne version 2.0.4) works fine.
I've managed to make develop compile after the following modifications. Perhaps they can be applied conditionally during compile-time, but I don't know how to detect "Mac OS older than..." in .m files and in the cgo flags in .go files.
(A) NSControlStateValue vs NSCellStateValue
The file internal/driver/glfw/menu_darwin.m in develop contains the following fragment:
On 10.12 not only the constant NSControlStateValueOn is unavailable, but also the type NSControlStateValue. Thus, the latter half of the code fragment should use the (deprecated) type NSCellStateValue instead.
(B) UserNotifications framework in code
The file app/app_darwin.m uses UserNotifications framework introduced in 10.14. This can be circumvented by only using the extern'ed function fallbackSend(), whatever it is. I haven't tested whether the notifications are sent or not, but at least fyne@develop compiles after I replace the entire file app/app_darwin.m with the following:
Related to the previous item, the file app/app_darwin.go controls the build process for app/app_darwin.m. It needs to be modified to omit the inclusion of non-available framework UserNotifications by removing it from the flags:
:#cgo LDFLAGS: -frameworkFoundation
To Reproduce:
Steps to reproduce the behaviour:
Have Mac OS 10.12 Sierra
Try to compile any application with the develop branch of fyne.
Get errors.
Device (please complete the following information):
OS: MacOS
Version: 10.12.6 Sierra
Go version: go1.15.3 darwin/amd64
Fyne version: develop branch
The text was updated successfully, but these errors were encountered:
Thanks. We also have to figure out how to set the right LDFLAGS in the #cgo block in app/app_darwin.go as well.
I'll check the docs later, but shout if you have an idea.
Describe the bug:
Not sure if this is a bug or a deliberate decision, but
develop
branch (UPD: or fyne version 2.1.0) currently cannot be built on Mac OS 10.12 Sierra since it uses some API introduced in Mac OS 10.14. The(UPD: fyne version 2.0.4) works fine.master
branchI've managed to make
develop
compile after the following modifications. Perhaps they can be applied conditionally during compile-time, but I don't know how to detect "Mac OS older than..." in.m
files and in thecgo
flags in.go
files.(A) NSControlStateValue vs NSCellStateValue
The file
internal/driver/glfw/menu_darwin.m
indevelop
contains the following fragment:On 10.12 not only the constant
NSControlStateValueOn
is unavailable, but also the typeNSControlStateValue
. Thus, the latter half of the code fragment should use the (deprecated) typeNSCellStateValue
instead.(B) UserNotifications framework in code
The file
app/app_darwin.m
uses UserNotifications framework introduced in 10.14. This can be circumvented by only using the extern'ed functionfallbackSend()
, whatever it is. I haven't tested whether the notifications are sent or not, but at least fyne@develop compiles after I replace the entire fileapp/app_darwin.m
with the following:(C) UserNotifications framework in cgo flags
Related to the previous item, the file
app/app_darwin.go
controls the build process forapp/app_darwin.m
. It needs to be modified to omit the inclusion of non-available framework UserNotifications by removing it from the flags:To Reproduce:
Steps to reproduce the behaviour:
develop
branch of fyne.Device (please complete the following information):
The text was updated successfully, but these errors were encountered: