Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.12k stars 842 forks source link

Nearly Running on Raspberry Pi / RetroPie / Debian Jessie #327

Open wmodes opened 7 years ago

wmodes commented 7 years ago

Thank you for your instructions for installing on Debian Jessie. It allowed me to compile it, but now I don't know enough to take the next step.

I'm trying to get cool-retro-term to work on RetroPie for text games.

To start, I installed the deps:

$ sudo apt-get install build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtgraphicaleffects qml-module-qtquick-dialogs qml-module-qtquick-localstorage qml-module-qtquick-window2

In order to compile it without memory errors, I needed to increase my swapfile size. But then I was good to go. Though it took a while, it compiled successfully.

$ git clone --recursive https://github.com/Swordfish90/cool-retro-term.git
$ cd cool-retro-term
$ qmake && make

But when I run it, I get an error.

$ ./cool-retro-term
QXcbConnection: Could not connect to display

There are gaps in my understanding around X-windows requirements. What am I missing?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40413478-nearly-running-on-raspberry-pi-retropie-debian-jessie?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github).
tomchiverton commented 7 years ago

I don't know how RetroPie works - does it run as an X app, or just take over drawing the whole display in place of X ? CRT requires an X server...

wmodes commented 7 years ago

@tomchiverton Definitely a question for those who are more X and video savvy. Sorry.

tomchiverton commented 7 years ago

Is your shell session an SSH connection to the computer ? Or is it an on-screen, on-device terminal ?

wmodes commented 7 years ago

I am ssh'd in but running video in the console's xterm.

-- Wes Modes http://modes.io

Sent from my Apple ][e

On Mar 28, 2017, at 11:04 AM, Tom Chiverton notifications@github.com wrote:

Is your shell session an SSH connection to the computer ? Or is it an on-screen, on-device terminal ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dburongarcia commented 7 years ago

Did you manage to get it working? I am surprised that there is such a little information about using CRT with the Raspberry Pi... I hope you made it.

dburongarcia commented 7 years ago

Hi, if anyone is interested, after many different tries I found that the best way to use CRT with RPi is using ArchLinuxARM and http://www.chaos-reins.com/qpi/ Its creator, Donald Carr supplied more info for CRT in https://www.youtube.com/watch?v=NVUPV3yJv04 It works great, very fast. There are only problems with menus (as many other users are experiencing)

pascalandy commented 6 years ago

Same issue when trying it within a Docker container:

docker run -dit ubuntu:16.04;
docker exec -it e2b205592884 bash;

apt-get update && \
apt-get upgrade && \
apt-get install -qqy \
git build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev \
qml-module-qtquick-controls qtdeclarative5-qtquick2-plugin libqt5qml-graphicaleffects \
qml-module-qtquick-dialogs qtdeclarative5-localstorage-plugin qtdeclarative5-window-plugin;

# Get it from GitHub
git clone --recursive https://github.com/Swordfish90/cool-retro-term.git && \

# Build it
cd cool-retro-term && \

# Compile (Fedora and OpenSUSE user should use qmake-qt5 instead of qmake)
qmake && make && \

# Have fun!
./cool-retro-term
ways commented 6 years ago

@wmodes

But when I run it, I get an error.

$ ./cool-retro-term QXcbConnection: Could not connect to display

Try $ DISPLAY=:0 ./cool-retro-term

dayne commented 5 years ago

This issue should be considered resolved/closed as core issue was due to @wmodes being SSH'ed into the system without a valid DISPLAY target set to launch it on the Pi's running X server.

Likely it would have worked fine if it been launched from an X session terminal on the Pi or like @ways described by manually setting DISPLAY=:0 ./cool-retro-term (assuming Xauth stuff allowed it).