Skip to content

build not working because of sdl2 bug #172

@papaj-na-wrotkach

Description

@papaj-na-wrotkach

I cloned the repo and run:

$ mkdir build && cd build
$ cmake .. -DCMAKE_CXX_COMPILER=clang++ && cmake --build .

Instead of a working build I got:

[...]
/home/user/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.c: In function ‘node_event_info’:
/home/user/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.c:593:37: error: passing argument 1 of ‘pw_node_enum_params’ from incompatible pointer type [-Wincompatible-pointer-types]
  593 |             pw_node_enum_params(node->proxy, 0, info->params[i].id, 0, 0, NULL);
      |                                 ~~~~^~~~~~~
      |                                     |
      |                                     struct pw_proxy *
In file included from /usr/include/pipewire-0.3/pipewire/pipewire.h:30,
                 from /home/user/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.h:28,
                 from /home/user/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.c:29:
/usr/include/pipewire-0.3/pipewire/node.h:208:58: note: expected ‘struct pw_node *’ but argument is of type ‘struct pw_proxy *’
  208 | PW_API_NODE_IMPL int pw_node_enum_params(struct pw_node *object,
      |                                          ~~~~~~~~~~~~~~~~^~~~~~
make[2]: *** [_deps/sdl2-build/CMakeFiles/SDL2.dir/build.make:2165: _deps/sdl2-build/CMakeFiles/SDL2.dir/src/audio/pipewire/SDL_pipewire.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:265: _deps/sdl2-build/CMakeFiles/SDL2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I believe this is because of a bug libsdl-org/SDL#12224 fixed in libsdl-org/SDL@6be87ce and libsdl-org/SDL@d35bef6. Can you use SDL which contains one of those commits?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions