libsdl-org / sdl12-compat

An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes.
Other
196 stars 40 forks source link

pkgsrc: audio/din just has a black screen on Darwin 23.1.0/arm64 #323

Closed U-9200 closed 1 year ago

U-9200 commented 1 year ago

Hi!

Today I successfully build audio/din (http://dinisnoise.org) against sdl12-compat 1.2.68 via pkgsrc, but I only get a black screen after starting the application :-( Normally audio/din is linked against devel/SDL, but I decided to test sdl12-compat, because normal SDL produces the same error on my M1 Mac. I guess it's related to the Metal framework?

If I remember correctly, DIN was working fine with sdl12-compat a couple of months ago - should I contact upstream of DIN or am I here at the right place? I can provide logs or other information, if necessary!

2023-11-03 08:18:14.808 din[66657:9052571] INFO: sdl12-compat 1.2.68, built on Nov  3 2023 at 07:45:23, talking to SDL2 2.28.3
2023-11-03 08:18:14.809 din[66657:9052571] INFO: This app appears to be named 'din'
2023-11-03 08:18:15.162 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=53 windowid=1 event=SDL_WINDOWEVENT_SHOWN data1=0 data2=0)
2023-11-03 08:18:15.220 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=111 windowid=1 event=SDL_WINDOWEVENT_EXPOSED data1=0 data2=0)
2023-11-03 08:18:15.229 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=120 windowid=1 event=SDL_WINDOWEVENT_ENTER data1=0 data2=0)
2023-11-03 08:18:15.262 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=152 windowid=1 event=SDL_WINDOWEVENT_FOCUS_GAINED data1=0 data2=0)
2023-11-03 08:18:17.636 din[66657:9052571] INFO: SDL EVENT: SDL_KEYDOWN (timestamp=2526 windowid=1 state=pressed repeat=false scancode=41 keycode=27 mod=0)
2023-11-03 08:18:17.824 din[66657:9052571] INFO: SDL EVENT: SDL_KEYUP (timestamp=2715 windowid=1 state=released repeat=false scancode=41 keycode=27 mod=0)
2023-11-03 08:18:19.736 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=4627 windowid=1 event=SDL_WINDOWEVENT_LEAVE data1=0 data2=0)
2023-11-03 08:18:30.487 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=15378 windowid=1 event=SDL_WINDOWEVENT_ENTER data1=0 data2=0)
2023-11-03 08:18:31.119 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=16010 windowid=1 event=SDL_WINDOWEVENT_LEAVE data1=0 data2=0)
2023-11-03 08:18:31.898 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=16788 windowid=1 event=SDL_WINDOWEVENT_FOCUS_LOST data1=0 data2=0)
^C2023-11-03 08:18:32.886 din[66657:9052571] INFO: SDL EVENT: SDL_QUIT (timestamp=17777)
2023-11-03 08:18:32.983 din[66657:9052571] INFO: SDL EVENT: SDL_WINDOWEVENT (timestamp=17874 windowid=1 event=SDL_WINDOWEVENT_HIDDEN data1=0 data2=0)

I already tried setting SDL12COMPAT_OPENGL_SCALING=0|1, but no effect :-(

Kind regards.

slouken commented 1 year ago

What was the issue?

U-9200 commented 1 year ago

"-lGL" mustn't be used on Darwin; instead:

LIBS.Darwin+= -lSDLmain -lSDL -framework Cocoa -framework OpenGL