stepmania icon indicating copy to clipboard operation
stepmania copied to clipboard

I can't compile using cmake on an ASUS tinker board.

Open Folaht opened this issue 4 years ago • 3 comments

Hardware: ASUS TinkerBoard Software: Armbian OS Branch: 5_1_new

me@mycomputer:~/Download/stepmania/Build$ cmake .. && make
...
[ 99%] Building CXX object src/CMakeFiles/StepMania.dir/archutils/Common/PthreadHelpers.cpp.o
/PthreadHelpers.cpp:251:2: error: #error GetThreadBacktraceContext: which arch?
  251 | #error GetThreadBacktraceContext: which arch?

Folaht avatar Aug 20 '20 08:08 Folaht

The issue here is that the crash handler uses some fiddly assembly tricks, and is only written for x86. As you're on an ARM board building with the same settings as the raspberry pi is probably a good starting point (Someone knows them, maybe with wiki?)

Otherwise head into the cmake options and turn off WITH_CRASH_HANDLER, should get around this one specific issue. Would be useful if stepmania's CMake project could detect the arch and set an appropriate default (If you're in the mood for making the change).

(As general advice you're building on an uncommon platform. If you're not familiar with CMake and the differences between your board and an x86 based desktop system you'll need to do some reading to get this working)

geefr avatar Aug 20 '20 15:08 geefr

try the 5_1-rpi branch, but i've only even attempted to use it on a pi 4.

shakesoda avatar Aug 21 '20 12:08 shakesoda

It's working after I turned off WITH_CRASH_HANDLER. I haven't fully tested it though, because I have an issue with my tinkerboard, a possible hardware failure.

Folaht avatar Aug 24 '20 10:08 Folaht