Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with clang-fat.sh gives errors #4433

Closed
genericptr opened this issue Jun 9, 2021 · 4 comments
Closed

Building with clang-fat.sh gives errors #4433

genericptr opened this issue Jun 9, 2021 · 4 comments
Assignees

Comments

@genericptr
Copy link

Trying the new build script but getting errors.

116788308-19225a80-aa66-11eb-8854-47fb5823b8db

build$ CC=../build-scripts/clang-fat.sh ../configure ; make

/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:676:5: error: use of
      undeclared identifier 'XkbEvent'; did you mean 'XIfEvent'?
    XkbEvent* xkbEvent = (XkbEvent*) xevent;
    ^~~~~~~~
    XIfEvent
/opt/X11/include/X11/Xlib.h:2753:12: note: 'XIfEvent' declared here
extern int XIfEvent(
           ^
/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:676:15: error: use
      of undeclared identifier 'xkbEvent'; did you mean 'xevent'?
    XkbEvent* xkbEvent = (XkbEvent*) xevent;
              ^~~~~~~~
              xevent
/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:673:34: note: 
      'xevent' declared here
X11_DispatchEvent(_THIS, XEvent *xevent)
                                 ^
/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:676:13: error: 
      invalid operands to binary expression ('int (Display *, XEvent *, int
      (*)(Display *, XEvent *, XPointer), XPointer)' (aka 'int (struct _XDisplay
      *, union _XEvent *, int (*)(struct _XDisplay *, union _XEvent *, char *),
      char *)') and 'XEvent *' (aka 'union _XEvent *'))
    XkbEvent* xkbEvent = (XkbEvent*) xevent;
    ~~~~~~~~^ ~~~~~~~~
/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:676:36: error: 
      expected expression
    XkbEvent* xkbEvent = (XkbEvent*) xevent;
                                   ^
/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:676:27: error: use
      of undeclared identifier 'XkbEvent'
    XkbEvent* xkbEvent = (XkbEvent*) xevent;
                          ^
/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:766:53: error: use
      of undeclared identifier 'xkbEvent'
        } else if (xevent->type == MappingNotify || xkbEvent->any.xkb_typ...
                                                    ^
/Users/ryanjoseph/Downloads/SDL/src/video/x11/SDL_x11events.c:766:79: error: use
      of undeclared identifier 'XkbStateNotify'
  ...if (xevent->type == MappingNotify || xkbEvent->any.xkb_type == XkbStateNot...
                                                                    ^
7 errors generated.
make: *** [build/SDL_x11events.lo] Error 1
@icculus icculus self-assigned this Jun 9, 2021
@icculus
Copy link
Collaborator

icculus commented Jun 9, 2021

Is it possible you don't have XQuartz installed (which would be a default and normal state), but Big Sur ships with some basic X11 headers? Even with the X11 support compiled into SDL, I don't get this error over here...but I do have XQuartz installed.

@Tresky
Copy link

Tresky commented Aug 6, 2021

For anyone else coming into this thread with this problem...

I was having this issue on Big Sur as well (11.2.3 currently). I thought I had XQuartz installed because it came up in Spotlight when I searched it. Turned out mine was pretty outdated. Opening XQuartz and allowing it to update itself fixed this issue for me.

@matham
Copy link

matham commented Mar 8, 2022

I'm having the same issue on the github actions CI: https://github.com/matham/ffpyplayer/runs/5458857998?check_suite_focus=true#step:4:699.

I was confused because it worked fine on a local mac vm. Anyway, running brew install --cask xquartz fixed the issue so thanks @icculus for the tip.

@icculus
Copy link
Collaborator

icculus commented Mar 8, 2022

(Closing this because it seems like SDL itself is okay here.)

@icculus icculus closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants