Jakz / retro8

PICO-8 implementation with SDL2/SDL1.2 and RetroArch back-ends
GNU General Public License v3.0
253 stars 29 forks source link

Build instructions? #29

Closed mibus closed 3 years ago

mibus commented 3 years ago

It'd be really useful to have some build instructions (esp. for different platforms) in the README.

e.g. there's a Makefile in the git repository, but it builds a .so file rather than a binary. cmake && make stomps over the Makefile but builds a binary.

Is there a makefile for building against SDL1.2 with my cross-compiler in /opt/mipsel-linux-uclibc? (I want to build an opk for retrofw).

Thanks!!

mibus commented 3 years ago

FWIW, this seems to work...

I edited CMakeLists.txt to replace the OPENDINGUX sysroot with one for my system:

Generated new Makefiles:

rm -rf CMakeFiles/ CMakeCache.txt
CROSS=/opt/mipsel-linux-uclibc/bin/mipsel-buildroot-linux-uclibc- cmake -DOPENDINGUX=ON -DFUNKEY_S=ON .

Editing projects/build_opk_od.sh to deploy this desktop file instead (copied from the gameblabla fork):

[Desktop Entry]
Type=Application
Name=Retro8
Comment=PICO-8 Emulator
Exec=retro8 %f
Icon=icon
Terminal=false
Type=Application
Categories=emulators;
X-OD-NeedsDownscaling=true
X-OD-Filter=.png,.p8

...and the resulting opk seems to work!

Jakz commented 3 years ago

I consider this closed with new instruction and updated cmake. Hopefully in the future the cmake script will be enhanced to contain instructions.