Skip to content

Instantly share code, notes, and snippets.

@RPTST
Last active October 6, 2021 20:16
Show Gist options
  • Save RPTST/cc699112449d5ee154c946e1dcb56ecd to your computer and use it in GitHub Desktop.
Save RPTST/cc699112449d5ee154c946e1dcb56ecd to your computer and use it in GitHub Desktop.
PCEM
A quick walkthrough on how to compile and get PCem v17 running on Linux (mainly Debian-based distros, might work for other distros). I am using Pop!_OS 21.04
Dependencies:
sudo apt install libsdl2-dev
sudo apt install libopenal-dev
sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
sudo nano /etc/apt/sources.list.d/codelite.list
deb [arch=amd64] https://repos.codelite.org/wx3.0.5/ubuntu/ focal universe
apt-get update
wget https://repos.codelite.org/wx3.0.5/ubuntu/pool/universe/w/wxwidgets3.0/libwxbase3.0-dev_3.0.5-1.focal_amd64.deb
wget https://repos.codelite.org/wx3.0.5/ubuntu/pool/universe/w/wxwidgets3.0/wx3.0-headers_3.0.5-1.focal_amd64.deb
sudo dpkg -i libwxbase3.0-dev_3.0.5-1.focal_amd64.deb wx3.0-headers_3.0.5-1.focal_amd64.deb
sudo apt install libwxbase3.0-0-unofficial \
libwxgtk3.0-0-unofficial \
libwxgtk3.0-dev \
wx-common \
libwxbase3.0-dbg \
libwxgtk3.0-dbg \
wx3.0-i18n \
wx3.0-examples \
wx3.0-doc
mkdir ~/projects/
cd ~/projects/
PCem:
Go to the github page (https://github.com/sarah-walker-pcem/pcem) and clone the repository.
git clone https://github.com/sarah-walker-pcem/pcem.git
or
mkdir pcem
cd pcem
Go to the website (https://pcem-emulator.co.uk/) and go to the downloads section.
wget https://pcem-emulator.co.uk/files/PCemV17Linux.tar.gz
tar tar -xf PCemV17Linux.tar.gz
./configure --enable-release-build
make
./pcem
After tunning for the first time go to the root of your users home directory and look for a folder called (.pcem). Here is where you will add the roms for the different PC you want to emulate.
copy the application to your home/<username>/.local/bin directory so you can launch it anywhere. just make sure the path is in your .bashrc local first.
cp pcem ~/.local/bin/
nano ~/.bashrc
*put this at the end from the last line
export PATH=$HOME/.local/bin:$HOME/.local/usr/bin:$PATH
Re-launch
./pcem
Your all set, have fun.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment