[GH-ISSUE #234] Build fails #29

Closed
opened 2026-02-27 21:04:12 +03:00 by kerem · 3 comments
Owner

Originally created by @ThatOneCalculator on GitHub (Jul 4, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/234

Arch Linux x86_64

[ 26%] Building CXX object CMakeFiles/shadps4.dir/src/core/file_format/psf.cpp.o
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/audio_core/sdl_audio.cpp: In member function ‘int Audio::SDLAudio::AudioOutOpen(int, u32, u32, Libraries::AudioOut::OrbisAudioOutParam)’:
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/audio_core/sdl_audio.cpp:81:43: error: ‘SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK’ was not declared in this scope; did you mean ‘SDL_AUDIO_DEVICE_DEFAULT_CAPTURE’?
   81 |                 SDL_OpenAudioDeviceStream(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &fmt, NULL, NULL);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           SDL_AUDIO_DEVICE_DEFAULT_CAPTURE
make[2]: *** [CMakeFiles/shadps4.dir/build.make:76: CMakeFiles/shadps4.dir/src/audio_core/sdl_audio.cpp.o] Error 1
Originally created by @ThatOneCalculator on GitHub (Jul 4, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/234 Arch Linux x86_64 ``` [ 26%] Building CXX object CMakeFiles/shadps4.dir/src/core/file_format/psf.cpp.o /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/audio_core/sdl_audio.cpp: In member function ‘int Audio::SDLAudio::AudioOutOpen(int, u32, u32, Libraries::AudioOut::OrbisAudioOutParam)’: /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/audio_core/sdl_audio.cpp:81:43: error: ‘SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK’ was not declared in this scope; did you mean ‘SDL_AUDIO_DEVICE_DEFAULT_CAPTURE’? 81 | SDL_OpenAudioDeviceStream(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &fmt, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SDL_AUDIO_DEVICE_DEFAULT_CAPTURE make[2]: *** [CMakeFiles/shadps4.dir/build.make:76: CMakeFiles/shadps4.dir/src/audio_core/sdl_audio.cpp.o] Error 1 ```
kerem closed this issue 2026-02-27 21:04:13 +03:00
Author
Owner

@abouvier commented on GitHub (Jul 4, 2024):

Are you trying to build shadps4-git? In this case you need to use sdl3-git instead of sdl3. And you should report this on the AUR page first.

<!-- gh-comment-id:2209379025 --> @abouvier commented on GitHub (Jul 4, 2024): Are you trying to build `shadps4-git`? In this case you need to use `sdl3-git` instead of `sdl3`. And you should report this on the AUR page first.
Author
Owner

@ThatOneCalculator commented on GitHub (Jul 4, 2024):

Ah, gotcha. I am trying that package, yeah. Once I get home today I'll try it with that, and if that's the issue I'll report it to the AUR page

<!-- gh-comment-id:2209443192 --> @ThatOneCalculator commented on GitHub (Jul 4, 2024): Ah, gotcha. I am trying that package, yeah. Once I get home today I'll try it with that, and if that's the issue I'll report it to the AUR page
Author
Owner

@ThatOneCalculator commented on GitHub (Jul 5, 2024):

I installed sdl3-git and it got much further, but errored out at the end:

[100%] Building CXX object CMakeFiles/shadps4.dir/src/main.cpp.o
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp: In member function ‘void Frontend::WindowSDL::onKeyPress(const SDL_Event*)’:
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:133:10: error: ‘SDLK_a’ was not declared in this scope; did you mean ‘SDLK_A’?
  133 |     case SDLK_a:
      |          ^~~~~~
      |          SDLK_A
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:142:10: error: ‘SDLK_d’ was not declared in this scope; did you mean ‘SDLK_D’?
  142 |     case SDLK_d:
      |          ^~~~~~
      |          SDLK_D
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:151:10: error: ‘SDLK_w’ was not declared in this scope; did you mean ‘SDLK_W’?
  151 |     case SDLK_w:
      |          ^~~~~~
      |          SDLK_W
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:160:10: error: ‘SDLK_s’ was not declared in this scope; did you mean ‘SDLK_S’?
  160 |     case SDLK_s:
      |          ^~~~~~
      |          SDLK_S
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:169:10: error: ‘SDLK_j’ was not declared in this scope; did you mean ‘SDLK_J’?
  169 |     case SDLK_j:
      |          ^~~~~~
      |          SDLK_J
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:178:10: error: ‘SDLK_l’ was not declared in this scope; did you mean ‘SDLK_L’?
  178 |     case SDLK_l:
      |          ^~~~~~
      |          SDLK_L
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:187:10: error: ‘SDLK_i’ was not declared in this scope; did you mean ‘SDLK_I’?
  187 |     case SDLK_i:
      |          ^~~~~~
      |          SDLK_I
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:196:10: error: ‘SDLK_k’ was not declared in this scope; did you mean ‘SDLK_K’?
  196 |     case SDLK_k:
      |          ^~~~~~
      |          SDLK_K
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:205:10: error: ‘SDLK_x’ was not declared in this scope; did you mean ‘SDLK_X’?
  205 |     case SDLK_x:
      |          ^~~~~~
      |          SDLK_X
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:208:10: error: ‘SDLK_m’ was not declared in this scope; did you mean ‘SDLK_M’?
  208 |     case SDLK_m:
      |          ^~~~~~
      |          SDLK_M
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:211:10: error: ‘SDLK_q’ was not declared in this scope; did you mean ‘SDLK_Q’?
  211 |     case SDLK_q:
      |          ^~~~~~
      |          SDLK_Q
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:214:10: error: ‘SDLK_u’ was not declared in this scope; did you mean ‘SDLK_U’?
  214 |     case SDLK_u:
      |          ^~~~~~
      |          SDLK_U
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:217:10: error: ‘SDLK_e’ was not declared in this scope; did you mean ‘SDLK_E’?
  217 |     case SDLK_e:
      |          ^~~~~~
      |          SDLK_E
/home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:227:10: error: ‘SDLK_o’ was not declared in this scope; did you mean ‘SDLK_O’?
  227 |     case SDLK_o:
      |          ^~~~~~
      |          SDLK_O
make[2]: *** [CMakeFiles/shadps4.dir/build.make:2260: CMakeFiles/shadps4.dir/src/sdl_window.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:227: CMakeFiles/shadps4.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: shadps4-git-exit status 4
<!-- gh-comment-id:2209657218 --> @ThatOneCalculator commented on GitHub (Jul 5, 2024): I installed `sdl3-git` and it got much further, but errored out at the end: ``` [100%] Building CXX object CMakeFiles/shadps4.dir/src/main.cpp.o /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp: In member function ‘void Frontend::WindowSDL::onKeyPress(const SDL_Event*)’: /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:133:10: error: ‘SDLK_a’ was not declared in this scope; did you mean ‘SDLK_A’? 133 | case SDLK_a: | ^~~~~~ | SDLK_A /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:142:10: error: ‘SDLK_d’ was not declared in this scope; did you mean ‘SDLK_D’? 142 | case SDLK_d: | ^~~~~~ | SDLK_D /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:151:10: error: ‘SDLK_w’ was not declared in this scope; did you mean ‘SDLK_W’? 151 | case SDLK_w: | ^~~~~~ | SDLK_W /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:160:10: error: ‘SDLK_s’ was not declared in this scope; did you mean ‘SDLK_S’? 160 | case SDLK_s: | ^~~~~~ | SDLK_S /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:169:10: error: ‘SDLK_j’ was not declared in this scope; did you mean ‘SDLK_J’? 169 | case SDLK_j: | ^~~~~~ | SDLK_J /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:178:10: error: ‘SDLK_l’ was not declared in this scope; did you mean ‘SDLK_L’? 178 | case SDLK_l: | ^~~~~~ | SDLK_L /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:187:10: error: ‘SDLK_i’ was not declared in this scope; did you mean ‘SDLK_I’? 187 | case SDLK_i: | ^~~~~~ | SDLK_I /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:196:10: error: ‘SDLK_k’ was not declared in this scope; did you mean ‘SDLK_K’? 196 | case SDLK_k: | ^~~~~~ | SDLK_K /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:205:10: error: ‘SDLK_x’ was not declared in this scope; did you mean ‘SDLK_X’? 205 | case SDLK_x: | ^~~~~~ | SDLK_X /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:208:10: error: ‘SDLK_m’ was not declared in this scope; did you mean ‘SDLK_M’? 208 | case SDLK_m: | ^~~~~~ | SDLK_M /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:211:10: error: ‘SDLK_q’ was not declared in this scope; did you mean ‘SDLK_Q’? 211 | case SDLK_q: | ^~~~~~ | SDLK_Q /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:214:10: error: ‘SDLK_u’ was not declared in this scope; did you mean ‘SDLK_U’? 214 | case SDLK_u: | ^~~~~~ | SDLK_U /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:217:10: error: ‘SDLK_e’ was not declared in this scope; did you mean ‘SDLK_E’? 217 | case SDLK_e: | ^~~~~~ | SDLK_E /home/kainoa/.cache/yay/shadps4-git/src/shadps4/src/sdl_window.cpp:227:10: error: ‘SDLK_o’ was not declared in this scope; did you mean ‘SDLK_O’? 227 | case SDLK_o: | ^~~~~~ | SDLK_O make[2]: *** [CMakeFiles/shadps4.dir/build.make:2260: CMakeFiles/shadps4.dir/src/sdl_window.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:227: CMakeFiles/shadps4.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... -> error making: shadps4-git-exit status 4 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#29
No description provided.