Hacking [RELEASE] PS4 RetroArch Port (Unofficial)

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,200
Country
United States
@ploggy , I got it sorted:

1640549514649.png
 
  • Like
Reactions: ploggy

A5H73Y

Member
Newcomer
Joined
Dec 31, 2021
Messages
6
Trophies
0
Age
29
XP
66
Country
United Kingdom
Really interesting posts here, congrats on your findings @godreborn !

Has anybody manged to get PCSX2 working on PS4's RetroArch? I'd updated the config to point to the official buildbot url and downloaded the PS2 core but as I understand it should be in a format of "pcsx2_libretro_ps4.self" instead of "pcsx2_libretro.dll", tried to see if there's anything obvious on OsirisX's Github Project that could handle this, but with no understanding of C/C++ I didn't get very far.
 
  • Like
Reactions: godreborn

A5H73Y

Member
Newcomer
Joined
Dec 31, 2021
Messages
6
Trophies
0
Age
29
XP
66
Country
United Kingdom
retroarch doesn't seem to be built with OpenOrbis. you can tell by the environmental variable which sdk it's for.
I believe it does, the Makefile.ps4 has a dependency for "OO_PS4_TOOLCHAIN" to be set, it also invokes "$(OO_PS4_TOOLCHAIN)/bin/$(CDIR)/create-fself"
 
  • Like
Reactions: Lineacero

A5H73Y

Member
Newcomer
Joined
Dec 31, 2021
Messages
6
Trophies
0
Age
29
XP
66
Country
United Kingdom
If you're using OsirizX's RetroArch as your base then you can see he uses Makefile.ps4:
(github) /OsirizX/RetroArch/blob/ps4_r4/Makefile.ps4
 
  • Like
Reactions: Lineacero

A5H73Y

Member
Newcomer
Joined
Dec 31, 2021
Messages
6
Trophies
0
Age
29
XP
66
Country
United Kingdom
@godreborn Not sure if it's because I'm on Windows, but I'm fighting an endless battle.
I've tried creating a .bat file that would simulate having a linux system using the Makefile.ps4 (similar to the OO samples), but having issues building C & C++ files in the right folders with clang.
Tried installing gnuwin32 with the 'make' tool to run Makefile.ps4 and making small adjustments to fix the build and now I get
Code:
$ make -f Makefile.ps4
clang --target=x86_64-pc-freebsd12-elf -funwind-tables -std=c11 -DORBIS -D__ORBIS__ -DHAVE_OOSDK -I. -Idefines -Imemory/ps4 -Ideps -Ideps/7zip -Ideps/libz -Ilibretro-common/include -Ideps/stb -Ilibretro-common/include/compat/zlib -Ideps/rcheevos/include  -DHAVE_OPENGLES3 -DHAVE_SOCKET_LEGACY -DHAVE_LIBRETRODB -DHAVE_SHADERPIPELINE -DHAVE_GIT_VERSION -DGIT_VERSION=66daf89d77 -DHAVE_DR_MP3 -DHAVE_CONFIGFILE -DHAVE_RUNAHEAD -DHAVE_CC_RESAMPLER -DHAVE_LANGEXTRA -DHAVE_IMAGEVIEWER -DHAVE_MENU -DHAVE_GFX_WIDGETS -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DHAVE_OZONE -DHAVE_OVERLAY -DHAVE_VIDEO_LAYOUT -DHAVE_STB_FONT -DHAVE_THREADS -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_EGL -DHAVE_GLSL -DHAVE_7ZIP -D_7ZIP_ST -DHAVE_ZLIB -DHAVE_CHD -DWANT_SUBCODE -DWANT_RAW_DATA_SECTOR -DHAVE_RTGA -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_NETWORKING -DHAVE_NETWORK_CMD -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_COMPRESSION -DHAVE_MAIN -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_FILTERS_BUILTIN -DHAVE_XMB -DHAVE_RGUI -DHAVE_OZONE -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_CORES -DHAVE_UPDATE_ASSETS -emit-obj -O3 -o memory/ps4/user_mem.o memory/ps4/user_mem.c
memory/ps4/user_mem.c:1:13: fatal error: 'stdlib.h' file not found
<U+FEFF>#include <stdlib.h>
                 ^~~~~~~~~~
1 error generated.
make: *** [memory/ps4/user_mem.o] Error 1
Have you had any success?
 
  • Like
Reactions: Lineacero

Geesehoward79

Well-Known Member
Member
Joined
Dec 20, 2021
Messages
138
Trophies
0
Age
45
XP
543
Country
Brazil
Really interesting posts here, congrats on your findings @godreborn !

Has anybody manged to get PCSX2 working on PS4's RetroArch? I'd updated the config to point to the official buildbot url and downloaded the PS2 core but as I understand it should be in a format of "pcsx2_libretro_ps4.self" instead of "pcsx2_libretro.dll", tried to see if there's anything obvious on OsirisX's Github Project that could handle this, but with no understanding of C/C++ I didn't get very far.

Use ps2-pkg instead.
 

DivineZeus

Well-Known Member
Member
Joined
Apr 19, 2008
Messages
308
Trophies
1
Age
47
Location
Rovigo, Veneto
XP
607
Country
Italy
Hi guys, thanks for this awesome port. I recently tried it on my ps4 pro 9.00 with vr and runs at 120hz? is there something wrong with psvr and retroarch i am not aware of? and by the way, vr is supported for what? virtual boy? thanks in advance.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Crazy people actually spend $50 on that stuff
  • BigOnYa @ BigOnYa:
    Towelie runs my farm, he's awesome.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Polly is still around from what I've heard.
  • K3Nv2 @ K3Nv2:
    @SylverReZ, is Pollys alt I knew it
  • BigOnYa @ BigOnYa:
    Yea I see him every once whi!e , incognito
  • SylverReZ @ SylverReZ:
    @K3Nv2, I'm not him. Keep looking.
    +1
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +1
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    BigOnYa @ BigOnYa: Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.