OpenSWE1R / openswe1r

An Open-Source port of the 1999 Game "Star Wars Episode 1: Racer"
https://openswe1r.github.io/
GNU General Public License v2.0
312 stars 26 forks source link

Can't build with KVM enabled on Fedora (workaround included) #182

Closed Calinou closed 4 years ago

Calinou commented 4 years ago

Building openswe1r with KVM support (-DUSE_KVM=1) on Fedora fails due to stropts.h not being available:

https://github.com/OpenSWE1R/openswe1r/blob/f64ca6cff4b4cb2201198d649b16c1a982281d68/uc_kvm.c#L21

However, it's possible to work around it by removing the problematic include and replacing it with #include <sys/ioctl.h>. This seems to work well, and I was able to play one track successfully with playable performance (even if it's still slow, about 20 FPS or so).

I don't know if this can be done on other distributions/OSes successfully though.