Help: Compiling Chiaki - PS4 remote play
-
Sorry about these I'm still inexperienced in doing code stuff that also works for other people! :)
I have made a fix for a noob mistake with some absolute paths that were specifc to my system. I tried compiling with the new relative paths. (still not the official way of doing this but I'd have to figure that one out)
I made a git 'issue' thread here that we can continue to chat in so we don't spam this one too much.
https://github.com/Fredrum/test_01/issues/1
You could re-clone for the update in
gui/CMakeLists.txt (only one file got updates) or maybe just re-download that file.I want to get this working for you so please keep letting me know if it still doesn't?
Cheers
Fred -
Hi @b4zyl as the PS4 is very soon transitioning into being a retro machine Iv'e got a new version going of this that should be much easier to get running.
Iv'e tested this a couple of times on completely fresh Raspbian installs.
https://github.com/Fredrum/chiaki/wiki/Chiaki-for-the-Raspberry-Pi
If you still run into problems just post on the new git repo's 'issues' section.
If anyone has this running in 1080p mode on a PS4 Pro I'd love to hear! -
@b4zyl Same issue here when using the fork
-
@b4zyl said in Help: Compiling Chiaki - PS4 remote play:
Awesome guys! Really appreciate your work !
I own PS4 Pro, followed your guide and build Chiaki based on https://github.com/zerojay/chiaki fork. Streaming works fine on Pi4 2GB (30FPS; 720p) but without sound.
When i follow Qt5.12 workaround:
set(Qt5Core_DIR "/usr/lib/qt5.12/lib/cmake/Qt53DCore")
set(Qt5_DIR "/usr/lib/qt5.12/lib/cmake/Qt5")
set(QT_QMAKE_EXECUTABLE "/usr/lib/qt5.12/bin/qmake")adding to CMakeLists.txt and create new build i got error when trying run Chiaki :
"* failed to add service - already in use?"
any idea whats wrong? I put new set line on the begining of CMakeList.txt file.
I get the same issue on RetroPie building these. Always get:
failed to add service - already in use?
Created a quick build script, but can't get to launch currently.
# install dependencies sudo apt install cmake python3-protobuf protobuf-compiler libopus-dev libsdl2-dev libssl-dev -y # pull Qt5.12 and install cd /tmp wget https://github.com/koendv/qt5-opengl-raspberrypi/releases/download/v5.12.5-1/qt5-opengl-dev_5.12.5_armhf.deb sudo apt install ./qt5-opengl-dev_5.12.5_armhf.deb -y # clone rpi branch of chiaki cd /home/pi git clone --single-branch --branch rpi01 https://github.com/Fredrum/chiaki.git chiaki cd chiaki # can be a bit slow git submodule update --init # qt5.12 audio fix - tested with and without these paths and results in the same # echo "set(Qt5Core_DIR "/usr/lib/qt5.12/lib/cmake/Qt53DCore")" >> /home/pi/chiaki/gui/CMakeLists.txt # echo "set(Qt5_DIR "/usr/lib/qt5.12/lib/cmake/Qt5")" >> /home/pi/chiaki/gui/CMakeLists.txt # echo "set(QT_QMAKE_EXECUTABLE "/usr/lib/qt5.12/bin/qmake")" >> /home/pi/chiaki/gui/CMakeLists.txt # build mkdir build cd build cmake -DCMAKE_PREFIX_PATH=/usr/lib/qt5.12 .. make # add custom ports launcher cat <<EOF > /home/pi/RetroPie/roms/ports/RemotePS4.sh #!/bin/bash /home/pi/chiaki/build/gui/chiaki EOF chmod +x /home/pi/RetroPie/roms/ports/RemotePS4.sh
-
@zerojay I fixed this in the end and used the original source. I've created a bash script to compile it and add it to RetroPie as a port
-
@domb84 finally resolved the audio issues for this as well. You need to revert to the legacy audio options in RetroPie, ie pulseaudio.
Final script here works.
-
Just a note that I'm not having any trouble with the audio after upgrading my system to the new PulseAudio default.
So for me it was working with both Alsa previously and now PulseAudio. -
@redmarsbluemoon I've put all the info in the script and I did file a bug with logs but I just ended up configuring pulseaudio. Not sure what the issue with alsa is.
https://github.com/thestr4ng3r/chiaki/issues/397
Do you have any information on hot keys etc? There's no docs that I can find and since I've made a custom port I can launch it but can't quit unless i just 'killall chaiki' via ssh.
Also, I'm not sure if there are supposed to be any menus within chiaki, but nothing renders, I just get black boxes if I right click. You can't connect to a session using a controller either (works great in the session). So I have to have at least a mouse attached to the Pi which I don't normally.
-
With the Audio it looks like you just went with regular apt installed Qt5? Iv'e had to install and build against that Qt5.12 version to get the audio working well. (I got no choices in the Audio select menu that I added otherwise)
Although someone said it was working with default Qt on their Pi Zero. I haven't though so far but maybe I've just not got all the right Qt packages. There's so many different ones.In session there shouldn't be any menus as far as I know.
On Desktop you can use DS4 touchpad as mouse but maybe that's different in your RetroPie setup.Seems cool what you've done though! I'll have to try that out some time soon. Ive never heard about the eglfs stuff you're doing.
Re quitting, on desktop you have to quit both the session launcher (main) Gui and the session for it to fully quit. If you quit just one the other will still stay up.
We could try to add something to quit maybe but it would have to be something that have no risk of being triggered for other users on other setups. Unless you want to just fork and add it yourself.
What's that RetroPie hotkey acting as? -
@redmarsbluemoon retropie hot key does nothing. Should it? And you mention quitting the session and the application. How? There’s no visible menus, hot keys etc. I’m pretty sure something isn’t rendering but apart from windows screen grabs I have no reference.
Short of quitting the application it runs perfectly. I’m guessing the platform option I’m running is causing menu rendering issues.
-
If you look at the video I linked a few posts up you can see how it runs on Desktop for your reference.
If you post a video of how it looks when you run maybe there's something I can say? It's hard to know otherwise. I don't really have time to do a experimental RetroPie setup just now.
With the Hotkey I mean what does that signal as to RetroPie normally? maybe we can hook that up to chiaki as quit but I'm not sure.
-
@redmarsbluemoon I’ll try and grab a video later, but sure id love to help get this up and running properly within RetroPie. My build script works fine now, it’s purely setting up a button to quit and controller navigation in the interface.
-
@domb84
I suggest you make a 'Feature Request' on the head master issues page,That way it will get general visibility for the full project and there can be discussions about ways to solve things.
https://github.com/thestr4ng3r/chiaki/issues
A simple phone video showing your issues, or screen grabs with annotations would be helpful to communicate what you are looking for.
-
Chiaki recently went to v2.0 and with that added PS5 support! :D
Also the 1080p streaming should now be working!Credits to the main developer!
I have updated my repo, https://github.com/Fredrum/chiaki/wiki/Chiaki-for-the-Raspberry-Pi
currently in line with the Master which moved to,
https://git.sr.ht/~thestr4ng3r/chiakiI'll continue trying to add some options to make it more useable with retropie.
Or someone else might do a better job using the chiaki libs.Cheers!
-
It works like a charm! Sound, 60FPS 1080p, game pads.
Thanks for your rpi repo! -
just tried this w/ my 4B 4GB model, but only getting now "qt.qpa.screen: QXcbConnection: Could not connect to display"
-
Good morning guys! I am experiencing the same issue as described by CaelThunderwing. Is there something simple I am missing to get gui/chiaki to run successfully? @CaelThunderwing were you able to find a solution? Thank all you guys in advance! This is gonna make my Pi4 8GB RetroPie setup kick @$$!! I am so excited to stream my PS4/5 through it!
-
Same happening to me, no luck on executing chiaki from RetroPie nor the terminal.
Always getting:Could not find DRM device! Aborted
Can you please help us?
It would be a big step forward to our RetroPie machines :)Thanks in advance!
-
@domb84 Hey dude what changes do I need to make to use this script for the pi 3 b +?
-
Update to say that I've added in very basic functionality to start Chiaki from non Desktop, non X11 environment in the latest version,
https://github.com/Fredrum/chiaki/wiki/Run-Chiaki-without-Desktop-(From-cli)
Also note that Iv'e identified a problem using xbox controllers with Retropies custom 'xpad' driver for more info see here,
https://github.com/Fredrum/chiaki/wiki/Controllers#controller-problems-with-retropieI think there's still some issues using the PS5 controller? The Dualsense?
From @Mellao 's report it sounds like that should be fixed with the upcoming Bullseye fingers crossed.And for anyone who's not aware Chiaki works with PS5 as well since a while back!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.