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

Build only works on emulator, doesn't boot on real hardware. #1

Open
godreborn opened this issue Oct 13, 2022 · 15 comments
Open

Build only works on emulator, doesn't boot on real hardware. #1

godreborn opened this issue Oct 13, 2022 · 15 comments

Comments

@godreborn
Copy link

here's what happens. it's gotta have something to do with sdl2. I wasn't quite sure if this was correct: export PKG_CONFIG_PATH=/usr/local/ps3dev/portlibs/ppu/lib/pkgconfig/ or the linking portion at the end of the sdl2 instructions :

linking ... RSDKv5.ps3.elf
/usr/local/ps3dev/ppu/lib/gcc/powerpc64-ps3-elf/7.2.0/../../../../powerpc64-ps3-elf/lib/lv2-crt0.o:(.text._initialize+0x24): undefined reference to main' RetroEngine.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Core/RetroEngine.cpp:1386: undefined reference to SDL_Init'
RetroEngine.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Core/RetroEngine.cpp:1392: undefined reference to SDL_Quit' Reader.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Core/Reader.cpp:207: undefined reference to SDL_RWFromFile'
Reader.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Core/Reader.cpp:322: undefined reference to SDL_RWFromFile' Link.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:122: undefined reference to SDL_LockAudioDevice'
Link.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:134: undefined reference to SDL_UnlockAudioDevice' Link.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:102: undefined reference to SDL_LockAudioDevice'
Link.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:114: undefined reference to SDL_UnlockAudioDevice' Debug.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Dev/Debug.cpp:96: undefined reference to SDL_RWFromFile'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:411: undefined reference to gcmGetVBlankCount' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:90: undefined reference to SDL_LockTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:99: undefined reference to SDL_UnlockTexture' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:321: undefined reference to SDL_DestroyTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:326: undefined reference to SDL_DestroyTexture' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:336: undefined reference to SDL_DestroyRenderer'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:339: undefined reference to SDL_DestroyWindow' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:342: undefined reference to SDL_QuitSubSystem'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:424: undefined reference to SDL_GetPerformanceFrequency' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:428: undefined reference to gcmSetVBlankHandler'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:518: undefined reference to SDL_SetWindowSize' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:519: undefined reference to SDL_SetWindowPosition'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:555: undefined reference to SDL_RenderSetLogicalSize' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:556: undefined reference to SDL_SetRenderDrawBlendMode'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:570: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:572: undefined reference to SDL_CreateTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:579: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:580: undefined reference to SDL_CreateTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:583: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:575: undefined reference to SDL_GetError'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:659: undefined reference to SDL_GetWindowDisplayIndex' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:661: undefined reference to SDL_GetNumVideoDisplays'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:664: undefined reference to SDL_GetCurrentDisplayMode' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:670: undefined reference to SDL_GetCurrentDisplayMode'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:679: undefined reference to SDL_GetNumDisplayModes' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:688: undefined reference to SDL_GetDisplayMode'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:357: undefined reference to SDL_HideWindow' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:362: undefined reference to SDL_SetWindowBordered'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:370: undefined reference to SDL_GetWindowDisplayIndex' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:372: undefined reference to SDL_GetCurrentDisplayMode'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:382: undefined reference to SDL_SetWindowFullscreen' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:383: undefined reference to SDL_ShowCursor'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:392: undefined reference to SDL_SetWindowSize' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:393: undefined reference to SDL_SetWindowPosition'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:396: undefined reference to SDL_ShowWindow' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:360: undefined reference to SDL_SetWindowBordered'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:388: undefined reference to SDL_SetWindowFullscreen' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:389: undefined reference to SDL_ShowCursor'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:288: undefined reference to SDL_RenderCopy' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:293: undefined reference to SDL_RenderCopy'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:298: undefined reference to SDL_RenderCopy' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:303: undefined reference to SDL_RenderCopy'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:242: undefined reference to SDL_RenderCopy' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:235: more undefined references to SDL_RenderCopy' follow
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:314: undefined reference to SDL_RenderPresent' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:270: undefined reference to SDL_RenderCopy'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:275: undefined reference to SDL_RenderCopy' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:310: undefined reference to SDL_SetRenderDrawColor'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:311: undefined reference to SDL_RenderFillRect' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:634: undefined reference to SDL_CreateRenderer'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:25: undefined reference to SDL_InitSubSystem' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:53: undefined reference to SDL_SetHint'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:54: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:56: undefined reference to SDL_CreateWindow'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:65: undefined reference to SDL_RestoreWindow' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:66: undefined reference to SDL_SetWindowFullscreen'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:67: undefined reference to SDL_ShowCursor' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:71: undefined reference to SDL_RestoreWindow'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:72: undefined reference to SDL_SetWindowBordered' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:719: undefined reference to SDL_GetWindowDisplayIndex'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:722: undefined reference to SDL_GetCurrentDisplayMode' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:716: undefined reference to SDL_GetRendererOutputSize'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:840: undefined reference to SDL_GetNumTouchFingers' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:738: undefined reference to SDL_RestoreWindow'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:739: undefined reference to SDL_SetWindowFullscreen' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:740: undefined reference to SDL_ShowCursor'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:762: undefined reference to SDL_GameControllerOpen' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:767: undefined reference to SDL_GameControllerGetJoystick'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:767: undefined reference to SDL_JoystickInstanceID' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:843: undefined reference to SDL_GetTouchFinger'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1072: undefined reference to SDL_PollEvent' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1086: undefined reference to SDL_DestroyTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1087: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1089: undefined reference to SDL_CreateTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1090: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1097: undefined reference to SDL_LockTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1109: undefined reference to SDL_UnlockTexture' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1117: undefined reference to SDL_DestroyTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1118: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1120: undefined reference to SDL_CreateTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1122: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1126: undefined reference to SDL_UpdateYUVTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1133: undefined reference to SDL_DestroyTexture' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1134: undefined reference to SDL_SetHint'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1136: undefined reference to SDL_CreateTexture' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1138: undefined reference to SDL_SetHint'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1142: undefined reference to SDL_UpdateYUVTexture' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1149: undefined reference to SDL_DestroyTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1150: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1152: undefined reference to SDL_CreateTexture'
Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1154: undefined reference to SDL_SetHint' Drawing.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.cpp:1158: undefined reference to SDL_UpdateYUVTexture'
Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.cpp:43: undefined reference to SDL_PauseAudioDevice' Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.cpp:45: undefined reference to SDL_LockAudioDevice'
Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.cpp:47: undefined reference to SDL_UnlockAudioDevice' Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.cpp:49: undefined reference to SDL_CloseAudioDevice'
Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.cpp:50: undefined reference to SDL_QuitSubSystem' Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.cpp:9: undefined reference to SDL_InitSubSystem'
Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.cpp:28: undefined reference to SDL_PauseAudioDevice' Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.cpp:271: undefined reference to SDL_LockAudioDevice'
Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.cpp:290: undefined reference to SDL_UnlockAudioDevice' Audio.o: In function RSDK::AudioDevice::HandleStreamLoad(RSDK::ChannelInfo*, unsigned int)':
/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/SDL2/SDL2AudioDevice.hpp:19: undefined reference to SDL_CreateThread' Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.cpp:480: undefined reference to SDL_LockAudioDevice'
Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.cpp:497: undefined reference to SDL_UnlockAudioDevice' Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.cpp:549: undefined reference to SDL_LockAudioDevice'
Audio.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.cpp:566: undefined reference to SDL_UnlockAudioDevice' Input.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.hpp:52: undefined reference to SDL_GetMouseState'
Input.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.hpp:49: undefined reference to SDL_ShowCursor' Input.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Graphics/SDL2/SDL2RenderDevice.hpp:49: undefined reference to SDL_ShowCursor'
Input.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Input/PS3/PS3InputDevice.cpp:40: undefined reference to ioPadGetInfo' Input.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Input/PS3/PS3InputDevice.cpp:41: undefined reference to ioPadGetData'
Input.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Input/PS3/PS3InputDevice.cpp:59: undefined reference to ioPadEnd' Input.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Input/PS3/PS3InputDevice.cpp:97: undefined reference to ioPadInit'
Input.o: In function RSDK::SKU::InitPS3InputAPI()': /home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Input/PS3/PS3InputDevice.cpp:97: undefined reference to ioPadInit'
Object.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:102: undefined reference to SDL_LockAudioDevice' Object.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:114: undefined reference to SDL_UnlockAudioDevice'
Object.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:102: undefined reference to SDL_LockAudioDevice' Object.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:114: undefined reference to SDL_UnlockAudioDevice'
Object.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:102: undefined reference to SDL_LockAudioDevice' Object.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/Audio/Audio.hpp:114: undefined reference to SDL_UnlockAudioDevice'
UserCore.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/User/Core/UserCore.cpp:571: undefined reference to SDL_RWFromFile' UserStorage.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/User/Core/UserStorage.cpp:1043: undefined reference to SDL_RWFromFile'
UserStorage.o:/home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/../RSDKv5/RSDK/User/Core/UserStorage.cpp:1084: undefined reference to `SDL_RWFromFile'
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/local/ps3dev/base_rules:59: /home/godreborn/SM-PS3/dependencies/RSDKv5/RSDKv5.ps3/RSDKv5.ps3.elf] Error 1
make: *** [Makefile:170: build] Error 2

@godreborn
Copy link
Author

alright, I managed to compile it, but now, whenever I load the executable from multiman, it goes to a black screen for several seconds, then returns me to the xmb.

@godreborn
Copy link
Author

nm, I'm back at the original error in the first post. is the sdl-config supposed to go in the ppu's bin folder or pkg-config's? because, it will build in the bin folder, just will say that several things are incompatible, and of course, not work.

@godreborn
Copy link
Author

okay, I put the sdl-config in the bin folder, along with doing the export pkg config path. it builds, but it doesn't work on the system. the self creates the log and the settings.ini, but after about twenty seconds, it returns to the xmb. I looked in the log, and it seems to stop after it can't find one of the data files (it is decompiled). the file is present, so I have no idea what the problem is.

ultra0000 pushed a commit that referenced this issue Feb 23, 2023
probably maybe might solve #1
@godreborn
Copy link
Author

thanks, but I was still unable to get it to work on hardware. it works in rpcs3, the emulator, though. is there a specific version of the sdk I should be using? I tried both the self and the fake.self files in multiman. I got both from the RSDKv5.ps3 folder (that's correct, right?), but no go. :(

@ultra0000
Copy link
Owner

Hello. First of all, I'd like to apologize for not commenting on this earlier. I don't know why, but GitHub doesn't notify me when people make issues in one of my repositories. Second, I don't exactly know why that commit references this issue, but whatever.

Anyway, I remember having a similar issue to this one, and the problem was the compiler optimizations. Can you try going into the Makefile and removing the EXTRA_OFLAGS variable and its reference in CFLAGS?

@ultra0000 ultra0000 changed the title Can't Seem To Build Build only works on emulator, doesn't boot on real hardware. Feb 24, 2023
@godreborn
Copy link
Author

Hello. First of all, I'd like to apologize for not commenting on this earlier. I don't know why, but GitHub doesn't notify me when people make issues in one of my repositories. Second, I don't exactly know why that commit references this issue, but whatever.

Anyway, I remember having a similar issue to this one, and the problem was the compiler optimizations. Can you try going into the Makefile and removing the EXTRA_OFLAGS variable and its reference in CFLAGS?

thanks for responding. nope, still same issue with that modification.

@ultra0000
Copy link
Owner

Hm, I should probably make a new virtual machine so I can install the toolchain from scratch then.

@godreborn
Copy link
Author

Hm, I should probably make a new virtual machine so I can install the toolchain from scratch then.

I'm using wsl2 btw. I had a similar problem with the ps2 version of sm64, and it turned out to be an issue with the sdk. and, by that, I mean it worked on an emulator but not on hardware. it was fixed, and a new build worked on hardware. I don't know if the same thing is happening here or not.

@godreborn
Copy link
Author

Hm, I should probably make a new virtual machine so I can install the toolchain from scratch then.

find out anything? I can't recall if it was the ps3 toolchain or the ps2 one that wouldn't install all the way a while back, but the ps2 one now does at least, and I can get sm64 to work on both ps2 and ps3. btw, when I compiled sonic mania for ps3 originally, it wasn't the plus version. is that normal?

@ultra0000
Copy link
Owner

I haven't done that yet as I've been busy with other stuff.
Yes, it compiles a non-plus build by default. You have to specify something if you want a plus build, I'm sure you can find more info on that somewhere.

@godreborn
Copy link
Author

RSDKModding/Sonic-Mania-Decompilation#182 (comment)

I don't know how to enable plus. I asked, and this is the response I got.

@ultra0000
Copy link
Owner

Why the hell did you ask in the main repository? You're just being annoying.
Anyway, I remember now. Just remove the "-DRSDK_AUTOBUILD" from CFLAGS in the Makefile.

@ultra0000
Copy link
Owner

Oh, by the way, don't share plus builds.

@LittlePlanetCD
Copy link

Rubberduckycooly/Sonic-Mania-Decompilation#182 (comment)

I don't know how to enable plus. I asked, and this is the response I got.

we know what you're doing.

please refrain from sharing plus builds on GBATemp like you've done previously. You're breaking the license of the decomp and can get yourself in trouble.

@godreborn
Copy link
Author

Rubberduckycooly/Sonic-Mania-Decompilation#182 (comment)
I don't know how to enable plus. I asked, and this is the response I got.

we know what you're doing.

please refrain from sharing plus builds on GBATemp like you've done previously. You're breaking the license of the decomp and can get yourself in trouble.

I sincerely apologize for that. I know a lot of people can't build them themselves whether it's plus or not, so I thought I'd lend a hand. I've made every sonic mania decomp thus far. I've also made every super mario 64 decomps, but I didn't share those, because I knew they contained the assets of the game.

btw, I got it working, so thanks for the info. I posted that I wouldn't share any future builds of any of the sonic manias in the last post about having success at building with plus intact.

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

3 participants