I got it compiled with NEON using gcc-4.8.1. (I don't use it normally, because my gcc-4.7.2 is crosscompiler and my gcc-4.8.1 is arm to arm. Speed difference is 5min VS 80min)
All is in code/linux/linux_glimp.cpp
Comment line 502 and uncomment line 503
Comment lines 540-541 and uncomment lines 542-545 and it should work.
This changed error message to 0x3005 = Bad Config
It needs this additional modification (I didn't yet tested what is actually critical):
const EGLint attribs[] = {
- EGL_RED_SIZE, 5,
- EGL_GREEN_SIZE, 6,
- EGL_BLUE_SIZE, 5,
- EGL_ALPHA_SIZE, 0,
- EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT,
- EGL_SURFACE_TYPE, EGL_WINDOW_BIT|EGL_PBUFFER_BIT,
- EGL_DEPTH_SIZE, 16,
- EGL_NONE, 0,
+ EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
+ EGL_BUFFER_SIZE, 0,
+ EGL_DEPTH_SIZE, 16,
+ EGL_SAMPLE_BUFFERS, 1,
+ EGL_SAMPLES, 4,
+ EGL_NONE
};
Now it starts, without sounds. Splash screen and menus works.
*Mouse is way too hard to use, so I didn't even bothered to start game. I mean: When I press left side of the screen, mouse cursor is moving left, and so on. Clicking center of the screen is mouse click. Is this normal behaviour and can it be changed?
*I tried change controls via settings and seems keyboard focus is lost (which is critical and another reason to not yet start game).
Here is full start log:
JA: v1.0.1.0 linux-arm Sep 5 2013
Initialising zone memory .....
----- FS_Startup -----
Current search path:
/home/user/.jk3-ja/base
./base/assets0.pk3 (5451 files)
./base
----------------------
5451 files in pk3 files
execing default.cfg
execing jaconfig.cfg
couldn't exec autoexec.cfg
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
--- Common Initialization Complete ---
Initializing OpenGL subsystem
...loading libGLES_CM.so: Starting QGL(GLES)...
using default screen 0
setting up EGL window
Window size: 800x480
Initializing OpenGL extensions
...ignoring texture compression
...using GL_EXT_texture_env_add
...Using GL_EXT_texture_edge_clamp
...using GL_ARB_multitexture (4 texture units)
...using GL_EXT_point_parameters
...ignoring GL_NV_register_combiners
GL_VENDOR: Imagination Technologies
GL_RENDERER: PowerVR SGX 530
GL_VERSION: OpenGL ES-CM 1.1
GL_MAX_TEXTURE_SIZE: 2048
GL_MAX_ACTIVE_TEXTURES_ARB: 4
PIXELFORMAT: color(16-bits) Z(24-bit) stencil(8-bits)
MODE: 3, 800 x 480 fullscreen hz:N/A
GAMMA: software w/ 0 overbright bits
CPU: generic
rendering primitives: multiple glArrayElement
texturemode: GL_LINEAR_MIPMAP_LINEAR
picmip: 2
texture bits: 16
lightmap texture bits: 0
multitexture: enabled
compiled vertex arrays: disabled
texenv add: enabled
compressed textures: disabled
compressed lightmaps: disabled
texture compression method: None
anisotropic filtering: disabled (0.000000 of 0.000000)
Dynamic Glow: disabled
------- sound initialization -------
/dev/dsp: No such file or directory
Could not open /dev/dsp
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
^3WARNING: Can't locate precache sound Line #60 of File 'ui/main.menu'
Indeed, in maemo there are no /dev/dsp.