Unable to compile daily build in macOS 10.14

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
User avatar
almeath
Posts: 96
Joined: Fri Mar 14, 2008 1:40 pm
Location: Australia

Unable to compile daily build in macOS 10.14

Post by almeath » Thu Oct 25, 2018 1:33 pm

In macOS 10.14 Mojave, I am unable to compile daily builds of ScummVM from the Github repository. I would be interested in knowing if anyone else is experiencing the same problem.

The terminal output is as follows:


Creating config.h
Creating config.mk
Creating engines/engines.mk
Creating engines/plugins_table.h
192-168-1-1:scummvm almeath$ make bundle
C++ backends/platform/sdl/sdl.o
In file included from backends/platform/sdl/sdl.cpp:25:
In file included from ./backends/platform/sdl/sdl.h:26:
In file included from ./backends/platform/sdl/sdl-sys.h:147:
/opt/local/include/SDL/SDL_syswm.h:58:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
^~~~~~~~~~~~
1 error generated.
make: *** [backends/platform/sdl/sdl.o] Error 1
192-168-1-1:scummvm almeath$

User avatar
criezy
ScummVM Developer
Posts: 552
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: Unable to compile daily build in macOS 10.14

Post by criezy » Thu Oct 25, 2018 2:19 pm

I have installed yesterday Mojave on my secondary computer to do some tests, but have not started doing those yet.
However I suspect the issue you see is not specific with Mojave.

By default SDL configure will enable both the Cocoa and X11 backend on macOS.
However (for a while now) XQuartz (the X11 component for macOS) is not installed by default.

Did you compile SDL after installing Mojave or was it already there before, maybe compiled with X11 support, which is no longer present?
Or it could be that it is not looking at the X11 headers in the right place. If I remember XQuartz install them in /opt/X11 and it may be looking for them somewhere else.

You can get and install XQuartz from xquartz.org.

Or you could recompile SDL without X11 support (which is what I always do). I don't remember the exact configure option, but you can run configure --help to find it.

If that does not help can you indicate what you get when running /opt/local/bin/sdl2-config --cflags ?

User avatar
tsoliman
ScummVM Developer
Posts: 404
Joined: Wed Jan 19, 2011 3:47 pm
Location: USA

Re: Unable to compile daily build in macOS 10.14

Post by tsoliman » Thu Oct 25, 2018 8:35 pm

I've had Mojave for a few days now. It compiles no problem but then there's the "black screen" bug from SDL2 (and SDL1 is completely busted) .. had to compile the latest SDL2 "tip" to get it to work.

So once you fix the build errors, you're going to run into the black screen until you upgrade SDL2 to a newer release than 2.0.8 (that is unreleased yet) or compile the latest SDL2 yourself.

Note that all of this doesn't affect running all binaries in Mojave, just ones that were built using Mojave, if that makes sense. (it only affects people who compile their own ScummVM)

User avatar
almeath
Posts: 96
Joined: Fri Mar 14, 2008 1:40 pm
Location: Australia

Re: Unable to compile daily build in macOS 10.14

Post by almeath » Fri Oct 26, 2018 6:35 am

Thank you both for the advice.

Yes, I have no trouble running ScummVM binaries in Mojave that I compiled earlier in High Sierra. These issues only affect fresh compiles after I upgraded to Mojave.

My installs of SDL1 and 2 have been on my system going back to macOS 10.12 and earlier. Likewise, I installed XQuartz as far back as 10.9.

I will try the manual compile and reinstall of SDL2, without X11 support, and see how that goes.

Post Reply