A charming game reminiscent of early 90s arcade racers.
With only minor changes it runs great on the A311D:
Makefile:
Code:
CFLAGS = -g3 -O2 -mcpu=native -ffast-math -ftree-vectorize -fno-strict-overflow -funsafe-math-optimizations -march=armv8-a+crypto+crc+aes+sha2 -Wall `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include -Ithirdparty -DHAVE_GLES -D__USE_SDL_GLES__ -DUSE_EGL_SDL -fdiagnostics-color=auto
LDFLAGS = `sdl-config --libs` `curl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_net -lm -lstdc++ -lGLESv1_CM -lEGL
sources/main.cpp
sources/F1SpiritApp.cpp
sources/3DStuff.h
For dependencies needed to apt-install libglm-dev, for SDL_glutaux.cpp:#include <glm/glm.hpp>
For Omap4 I set:
Code:
CFLAGS = -g3 -O2 -Wall `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include -Ithirdparty -DHAVE_GLES -D_
_USE_SDL_GLES__ -DUSE_EGL_SDL -fdiagnostics-color=auto
CFLAGS += -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mtune=native -mfpu=neon-vfpv4 -ffast-math -ftree-vectori
ze -fno-strict-overflow -mno-unaligned-access -funsafe-math-optimizations
LDFLAGS = `sdl-config --libs` `curl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_net -lm -lstdc++ -
lGLESv1_CM -lEGL
This builds and the eglport reports no erros, but crashed with "Illegal instruction" after EGLport: Complete
Experimentally commenting-out sources/eglport.cpp
Code:
// CheckEGLErrors( __FILE__, __LINE__ );
Doesn't get me past the error... and my funtime time is used-up for today.
[EDIT] I should add subsequent runs can return:
Code:
EGLport: Initializing
[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
f1spirit: ../../src/xcb_io.c:742: _XRead: Assertion `!xcb_xlib_too_much_data_requested' failed.
Aborted