Q1: Is my way about OpenGL-ES2 support right?(Does libgl1-mesa-dev include OpenGL-ES2 hardware support(ARM) ?)
After "apt-get install libgles2-mesa-dev" , configure sad OpenGL not found.
After "apt-get install mesa-common-dev" , configure sad OpenGL not found.
After "apt-get install libgl1-mesa-dev" , configure sad OpenGL yes.
Q2: How can I fix this error?
I had download SDL2-2.0.1.tar.gz, make , make install, OK.
I had download LuaJIT-2.0.2.tar.gz, make , make install, OK.
Run automagic , ok. Run ./configure , ok.
make , after minutes , I get:
Code: Select all
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I. -I./modules -I./libraries -I./libraries/enet/libenet/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/local/include/SDL2 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/usr/local/include/luajit-2.0 -I/usr/include/freetype2 -g -O2 -std=c++0x -MT modules/graphics/opengl/Shader.lo -MD -MP -MF modules/graphics/opengl/.deps/Shader.Tpo -c modules/graphics/opengl/Shader.cpp -fPIC -DPIC -o modules/graphics/opengl/.libs/Shader.o
In file included from ./common/runtime.h:31:0,
from ./modules/thread/Thread.h:25,
from ./modules/thread/threads.h:25,
from ./modules/image/ImageData.h:27,
from ./modules/image/Image.h:28,
from modules/graphics/opengl/Canvas.h:25,
from modules/graphics/opengl/Shader.cpp:25:
/usr/local/include/luajit-2.0/lua.h:103:9: error: 'ptrdiff_t' does not name a type
/usr/local/include/luajit-2.0/lua.h:147:39: error: ISO C++ forbids declaration of 'lua_Integer' with no type [-fpermissive]
/usr/local/include/luajit-2.0/lua.h:147:39: warning: 'lua_Integer' initialized and declared 'extern' [enabled by default]
/usr/local/include/luajit-2.0/lua.h:147:26: error: 'lua_tointeger' was not declared in this scope
/usr/local/include/luajit-2.0/lua.h:147:41: error: expected ',' or ';' before '(' token
/usr/local/include/luajit-2.0/lua.h:162:48: error: 'lua_Integer' is not a type
In file included from ./common/runtime.h:36:0,
from ./modules/thread/Thread.h:25,
from ./modules/thread/threads.h:25,
from ./modules/image/ImageData.h:27,
from ./modules/image/Image.h:28,
from modules/graphics/opengl/Canvas.h:25,
from modules/graphics/opengl/Shader.cpp:25:
/usr/local/include/luajit-2.0/lauxlib.h:44:42: error: ISO C++ forbids declaration of 'lua_Integer' with no type [-fpermissive]
/usr/local/include/luajit-2.0/lauxlib.h:44:42: warning: 'lua_Integer' initialized and declared 'extern' [enabled by default]
/usr/local/include/luajit-2.0/lauxlib.h:44:42: error: redefinition of 'int lua_Integer'
/usr/local/include/luajit-2.0/lua.h:147:9: error: 'int lua_Integer' previously defined here
/usr/local/include/luajit-2.0/lauxlib.h:44:25: error: 'luaL_checkinteger' was not declared in this scope
/usr/local/include/luajit-2.0/lauxlib.h:45:40: error: ISO C++ forbids declaration of 'lua_Integer' with no type [-fpermissive]
/usr/local/include/luajit-2.0/lauxlib.h:45:40: warning: 'lua_Integer' initialized and declared 'extern' [enabled by default]
/usr/local/include/luajit-2.0/lauxlib.h:45:40: error: redefinition of 'int lua_Integer'
/usr/local/include/luajit-2.0/lua.h:147:9: error: 'int lua_Integer' previously defined here
/usr/local/include/luajit-2.0/lauxlib.h:45:25: error: 'luaL_optinteger' was not declared in this scope
make[3]: *** [modules/graphics/opengl/Shader.lo] Error 1
make[3]: Leaving directory `/usr/src/love-experiments/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/love-experiments/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/love-experiments'
make: *** [all] Error 2
After google, I try to add a line in /usr/local/include/luajit-2.0/lua.h for fix error: ‘ptrdiff_t’ does not name a type
Not lucky, and try add the same line in common/runtime.h, the same.
I have make love0.9.0 ok in x86, debian wheezy , Luajit-2.0.2. I don't know how to fix this issue.