Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

branpower

11
Posts
22
Following
A member registered Aug 18, 2018

Recent community posts

Have you tried using `fyne-cross` to see if you can compile for multiple OS X versions at once?

https://developer.fyne.io/started/cross-compiling

Have you tried changing the settings for "Image Buffer Max Size"? The tooltip indicates that can improve resolution.

Huh. not sure about that one, sorry. It looks fine on my monitor (that's _NEVER_ a helpful response, I know). Can you screenshot the low res?

(1 edit)

Heya Vox. So a lot of this has been fixed by SolarLune already. The one thing left that I have to for the code to compile is to change the version of go-sdl2 to the alpha version. The deprecated warnings can be ignored for now

(github.com/veandco/go-sdl2 v0.5.0-alpha.1)

Still not working on my M1, sorry.

I forked your code repository and got it working on my M1. I had to edit some things in the veandco library as well as yours:

  • Used `brew install` to get all the sdl2_ libraries.
  • Used the 0.5.0 alpha of the veandco/go-sd2l library: `go get github.com/veandco/go-sdl2@v0.5.0-alpha.1`
  • Removing HINT_JOYSTICK_HIDAPI_CORRELATE_XINPUT from veandco/sdl/hints.go
  • Line 85 in veandco/sdl/sdl_ttf.go: use SDL_bool rather than int
  • Changing color assign in events and textrenderer from the sdl.Color8888 to color.Color

unfortunately it’s a pure intel binary and Rosetta isn’t triggering for it

Well darn. I think you're on the right path for newer versions as 10.15 is deprecated, maybe use `macos-latest` ? https://docs.github.com/en/actions/using-github-hosted-runners/about-github-host...

Any luck?

this might help with universal compilation https://dev.to/thewraven/universal-macos-binaries-with-go-1-16-3mm3

As Shane indicated, looks like a CGO compile error. You would have to compile two Darwin versions - one for AMD and one for ARM via GOOS and GOARCH - https://go.dev/doc/install/source