NagyD / SDLPoP

An open-source port of Prince of Persia, based on the disassembly of the DOS version.
GNU General Public License v3.0
1.1k stars 140 forks source link

Raspberry PI Compile immediately Seg Faults #313

Open jasonbrianhall opened 5 months ago

jasonbrianhall commented 5 months ago

I'm trying to get it working on my raspberry pi. It compiles just fine on raspian but immediately seg faults when I run the code. Not sure if it's the difference in architecture or what but it doesn't work.

dstarosta commented 5 months ago

It has been about 8 years since I have compiled C++ code for Raspbrerry PI. It requires setting a few compiler flags to prevent illegal instruction errors. "march" and "mcpu" flags need to be set. It also uses hard floating point.

Here is what I found on stack exchange for older versions of it. https://raspberrypi.stackexchange.com/questions/2046/which-cpu-flags-are-suitable-for-gcc-on-raspberry-pi

vlasta-labsky commented 4 months ago

Check #315