Skip to content

Instantly share code, notes, and snippets.

@bmaupin bmaupin/build-reicast.sh
Last active Aug 30, 2018

Embed
What would you like to do?
Build Reicast emulator on Ubuntu/Debian
# Install prerequisites
sudo apt-get -y install build-essential libasound2 libasound2-dev libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev mesa-common-dev
# Build Reicast
git clone https://github.com/reicast/reicast-emulator.git
cd reicast-emulator/shell/linux
make
# Run Reicast
mkdir -p ~/.local/share/reicast/data/
cp ../android/assets/buttons.png ~/.local/share/reicast/data/
cp /path/to/bios/dc_boot.bin ~/.local/share/reicast/data/
cp /path/to/bios/dc_flash.bin ~/.local/share/reicast/data/
./reicast.elf
# To open a ROM
./reicast.elf /path/to/rom.cdi
# Key bindings
# Arrow keys: arrow keys
# A: v
# Start: Enter
@maferv

This comment has been minimized.

Copy link

maferv commented Aug 7, 2016

Failed to compile on Ubuntu 16.04, I get:

mkdir -p obj-dreamcast-x64-sse4_1/rend/soft/
g++ -I../../core -I../../core/deps -I../../core/khronos -D TARGET_LINUX_x64 -D TARGET_NO_AREC -fsingle-precision-constant -g -O3 -D RELEASE -c -D USES_HOMEDIR -frename-registers -fno-strict-aliasing -ffast-math -ftree-vectorize -fomit-frame-pointer -D SUPPORT_X11 -fopenmp -msse4.1 -fexceptions -fno-rtti -fpermissive -fno-operator-names -D SUPPORT_X11 -D USE_EVDEV -D USE_JOYSTICK -D USE_ALSA -D USE_OSS -DTARGET_SOFTREND ../../core/rend/soft/softrend.cpp -o obj-dreamcast-x64-sse4_1/rend/soft/softrend.build_obj
../../core/rend/soft/softrend.cpp: In member function ‘__m128 softrend::shuffle_pixel(__m128)’:
../../core/rend/soft/softrend.cpp:1167:77: error: invalid cast of an rvalue expression of type ‘__m128i {aka __vector(2) long long int}’ to type ‘__m128& {aka __vector(4) float&}’
return (__m128&)_mm_shuffle_epi8((__m128i&)v, _mm_set_epi8(R(0x80,2,1, 0)));
^
Makefile:317: recipe for target 'obj-dreamcast-x64-sse4_1/rend/soft/softrend.build_obj' failed
make: *** [obj-dreamcast-x64-sse4_1/rend/soft/softrend.build_obj] Error 1

Full output:
http://pastebin.com/8MJ9X6mf

@bmaupin

This comment has been minimized.

Copy link
Owner Author

bmaupin commented Oct 12, 2016

I believe that should be fixed:

reicast/reicast-emulator#914

@hackerb9

This comment has been minimized.

Copy link

hackerb9 commented Apr 5, 2017

bmaupin is correct. This gist now works fine with Ubuntu 16.04.1.

@usernatilds

This comment has been minimized.

Copy link

usernatilds commented Feb 4, 2018

Is good a debian package that install with:
sudo apt-get install reicast

Make this dream possible, i compile reicast in debian, but buttons and joystick not work.

@bmaupin

This comment has been minimized.

Copy link
Owner Author

bmaupin commented Aug 30, 2018

@usernatilds I have no affiliation with the Reicast project. It might be best to submit any feature requests here: https://github.com/reicast/reicast-emulator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.