shadps4-emu / shadPS4

PS4 emulator for Windows and Linux
https://shadps4.net/
GNU General Public License v2.0
846 stars 41 forks source link

Build fails #234

Open ThatOneCalculator opened 4 days ago

ThatOneCalculator commented 4 days ago

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
abouvier commented 4 days ago

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.

ThatOneCalculator commented 4 days ago

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

ThatOneCalculator commented 3 days ago

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