I know I'm a year late. It was there sine the first bogus/empty commit (http://code.google.com/p/dolphin-emu/sou...039&r=4039). But LuaInterface.cpp includes "lstate.h", that seems to be an *internal* LUA header.
I was trying to package Dolphin, and since in most Linux distros there is a policy to share as most code as possible I tried to use the system's LUA library. Since it's using internal headers I'm unable to do so.
Why it's this this way? Nobody noticed it? It was decided to be necesary? There is any work ongoing to remove this dependency to internal headers?
Thanks.
Just in case someone is interested. Doesn't seems to be so many uses of the header
I was trying to package Dolphin, and since in most Linux distros there is a policy to share as most code as possible I tried to use the system's LUA library. Since it's using internal headers I'm unable to do so.
Why it's this this way? Nobody noticed it? It was decided to be necesary? There is any work ongoing to remove this dependency to internal headers?
Thanks.
Just in case someone is interested. Doesn't seems to be so many uses of the header
Code:
Source/Core/Core/Src/LuaInterface.cpp: In function 'void Lua::DeferFunctionCall(lua_State*, const char*)':
Source/Core/Core/Src/LuaInterface.cpp:637:23: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp: In function 'void Lua::toCStringConverter(lua_State*, int, char*&, int&)':
Source/Core/Core/Src/LuaInterface.cpp:771:9: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp:782:5: error: 'Proto' was not declared in this scope
Source/Core/Core/Src/LuaInterface.cpp:782:12: error: 'p' was not declared in this scope
Source/Core/Core/Src/LuaInterface.cpp:782:18: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp:786:52: error: 'getstr' was not declared in this scope
Source/Core/Core/Src/LuaInterface.cpp: In function 'void Lua::LuaRescueHook(lua_State*, lua_Debug*)':
Source/Core/Core/Src/LuaInterface.cpp:1168:4: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp:1168:4: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp: In function 'void Lua::RequestAbortLuaScript(int, const char*)':
Source/Core/Core/Src/LuaInterface.cpp:3640:9: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp: In function 'void Lua::HandleCallbackError(lua_State*, Lua::LuaContextInfo&, int, bool)':
Source/Core/Core/Src/LuaInterface.cpp:3688:6: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp:3688:20: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'
Source/Core/Core/Src/LuaInterface.cpp: In function 'void Lua::CallRegisteredLuaLoadFunctions(int, const Lua::LuaSaveData&)':
Source/Core/Core/Src/LuaInterface.cpp:4174:31: error: invalid use of incomplete type 'struct lua_State'
/usr/include/lua.h:50:16: error: forward declaration of 'struct lua_State'