vegastrike / Vega-Strike-Engine-Source

Vega Strike Engine
Other
252 stars 44 forks source link

Follow @daviewales ' suggestion to avoid using XQuartz at all, even for vegasettings #857

Open stephengtuggy opened 2 months ago

stephengtuggy commented 2 months ago

You might be able to avoid using XQuartz by using port install gtk3 +quartz, which will attempt to use the native macOS backend rather than Xorg. I'll try to find some time to test your PR. I'm still on macOS 10.13.

Originally posted by @daviewales in #533

daviewales commented 1 month ago

Do you know if vegasettings uses gtk3 or gtk2?

If gtk2, we'd need:

sudo port install gtk2 +quartz gtkglext +quartz
stephengtuggy commented 1 month ago

Do you know if vegasettings uses gtk3 or gtk2?

If gtk2, we'd need:

sudo port install gtk2 +quartz gtkglext +quartz

vegasettings definitely uses gtk3.

stephengtuggy commented 1 month ago

The gtkglext dependency is a little funky. As you pointed out, that library is specific to gtk2. I'm not sure exactly why we have it, except that it probably pulls in some other, transitive dependencies that we need.

daviewales commented 1 month ago

I just tried this.

sudo port uninstall gtk3
sudo port install gtk3 +quartz
rm -rf build
./script/cibuild

And it works! No X11 in sight! And nice crisp retina text as well.

Screen Shot 2024-05-15 at 9 03 40 pm