FWGS / xash3d-fwgs

Xash3D FWGS engine
1.56k stars 235 forks source link

[OSX] No 32-bit SDL2 library found #55

Closed MoeMod closed 5 years ago

MoeMod commented 5 years ago
image

Tested with latest binary release and macOS 10.14.2 Where can I get the required 32-bit SDL2? I can't build 32-bit SDL2 with current Xcode because i386 arch is deprecated now by Apple.

a1batross commented 5 years ago

Try to use older version. 2.0.8 is confirmed to have 32-bit support.

MoeMod commented 5 years ago

Now I can enter mainui with vgui.dylib copied to release/vgui.dylib However, creating new game results a segment fault 11. Maybe client and engine loads two or more different SDL2 shared library and their implements are mixed?

MoeMod commented 5 years ago

In addition, the mouse (trackpad) is not working. Entering configuration->touch->touch options leads to a segment fault too.

a1batross commented 5 years ago

We have no OSX maintainer for now. :(

Maybe client and engine loads two or more different SDL2 shared library and their implements are mixed?

This shouldn't happen, but possible. I dunno if OSX have ldd utility, but if it does, you can check which libraries are required and how system found it in path.

a1batross commented 5 years ago

I have no idea why mouse isn't working.

Touch options will crash until touch support will be restored.

MoeMod commented 5 years ago

maybe 64bit release by default? It seems that Apple has dropped 32bit support on Catalina

nekonomicon commented 5 years ago

And how steam works? Github version of HLSDK has SDL library for OS X anyway.

MoeMod commented 5 years ago

And how steam works? Github version of HLSDK has SDL library for OS X anyway.

Steam itself and goldsrc is actually 32bit. Maybe the steam client.dylib links to an older SDL2 while xash3d links to a newer one, and then it crashes...

MoeMod commented 5 years ago
image
a1batross commented 5 years ago

Even if Apple drops 32-bit, maybe it's reasonable to switch over to 64-bit.

I always want to keep engine compatible with Steam releases of the game, but... do we have really much of them? Almost everything is reverse-engineered for now. I don't know real state of OSX support in Steam and GoldSrc and how Valve plans to keep it supported.

If you want, you can sign up as an OSX port maintainer and remove it from list of platforms that needs to be forced to build for i686 rather than amd64.

MoeMod commented 5 years ago

Maybe waiting for the official x86_64 build? And then make engine compatible again with the newer game libraries.

a1batross commented 5 years ago

I doubt that they will port GoldSrc to x86_64. Probably dropping support a lot easier.

Yes, GoldSrc had x86_64 port back then, more than 10 years ago, but it built before ASLR became common and even doesn't work at all.

a1batross commented 5 years ago

We won't support OSX/iOS anymore because of destructive decisions Apple make.

Yesterday they removed 32-bit and ok, it's was kinda understandable. Today they will remove OpenGL for no reason. Tomorrow they will remove possibility of running native code.

Originally, OSX/iOS support was added because it was easy to maintain, but when it rеquires more action from us, I don't think we can support it without a dedicated maintainer for this platforms.

Platform code will not be removed, so someone can take it and continue support but I will remove OSX/iOS ports from autobuilds, will not provide them in releases, close all rеlated isssues as WONTFIX and finally remove it from list of supported ports.

So, Apple, f*ck you.