8bitbubsy / pt2-clone

ProTracker 2 clone for Windows/macOS/Linux
https://16-bits.org
BSD 3-Clause "New" or "Revised" License
458 stars 33 forks source link

build on raspberry pi/raspbian #2

Closed sphaero closed 4 years ago

sphaero commented 4 years ago

Just wanted to drop that it runs fine on a Raspberry Pi as long as you build it using cmake. The make-linux.sh scripts gives a binary which segfaults. Can't trace what's wrong with it, probably some compiler flag.

Tested on Raspbian GNU/Linux 10 (buster) on a RPI3B without Xorg.

mkdir build
cd build/
cmake ..
make

Tested with a mod file which ran smooth.

alexmyczko commented 4 years ago

@sphaero can you confirm the prebuilt debian package works? apt install protracker ?

(probably is since it's cmake built)

sphaero commented 4 years ago

Ha, hadn't noticed there's a debian package. :man_facepalming: Tested it and it works fine as well. (tested without X) IMG_20191218_121158

8bitbubsy commented 4 years ago

I don't know what would cause that, and I don't know what to do because modifying that make script to make it work for Raspberry Pi could break it for other systems/distros.

alexmyczko commented 4 years ago

how do you run it? i mean without x but with what instead?

sphaero commented 4 years ago

I wouldn't worry about it. It works if you go the cmake route. I'm running it directly on the rpi from the console. SDL is able to open a window through what was once referred to as dispmanX. Not sure what's it's called now. It might be some calls coming from openGL ES.