From Michal Durkovic, "I’m building current trunk on Mac OS X 10.9 and have encountered this error during linking of osgdb_lua plugin:
Undefined symbols for architecture x86_64: "lua::LuaScriptEngine::pushValue(osg::Quat const&) const", referenced from: PushStackValueVisitor::apply(osg::Quat const&) in LuaScriptEngine.o "lua::LuaScriptEngine::pushValue(osg::Plane const&) const", referenced from: PushStackValueVisitor::apply(osg::Plane const&) in LuaScriptEngine.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Looks like LuaScriptEngine was missing implementation of those 2 member functions. Fixed src/osgPlugins/lua/LuaScriptEngine.cpp file in attachment. "
This commit is contained in:
parent
f16f278fea
commit
3e171414bd
@ -1244,6 +1244,24 @@ void LuaScriptEngine::pushValue(const osg::Vec4d& value) const
|
||||
lua_pushstring(_lua, "w"); lua_pushnumber(_lua, value.w()); lua_settable(_lua, -3);
|
||||
}
|
||||
|
||||
void LuaScriptEngine::pushValue(const osg::Quat& value) const
|
||||
{
|
||||
lua_newtable(_lua);
|
||||
lua_pushstring(_lua, "x"); lua_pushnumber(_lua, value.x()); lua_settable(_lua, -3);
|
||||
lua_pushstring(_lua, "y"); lua_pushnumber(_lua, value.y()); lua_settable(_lua, -3);
|
||||
lua_pushstring(_lua, "z"); lua_pushnumber(_lua, value.z()); lua_settable(_lua, -3);
|
||||
lua_pushstring(_lua, "w"); lua_pushnumber(_lua, value.w()); lua_settable(_lua, -3);
|
||||
}
|
||||
|
||||
void LuaScriptEngine::pushValue(const osg::Plane& value) const
|
||||
{
|
||||
lua_newtable(_lua);
|
||||
lua_pushstring(_lua, "x"); lua_pushnumber(_lua, value.asVec4().x()); lua_settable(_lua, -3);
|
||||
lua_pushstring(_lua, "y"); lua_pushnumber(_lua, value.asVec4().y()); lua_settable(_lua, -3);
|
||||
lua_pushstring(_lua, "z"); lua_pushnumber(_lua, value.asVec4().z()); lua_settable(_lua, -3);
|
||||
lua_pushstring(_lua, "w"); lua_pushnumber(_lua, value.asVec4().w()); lua_settable(_lua, -3);
|
||||
}
|
||||
|
||||
void LuaScriptEngine::pushValue(const osg::Matrixd& value) const
|
||||
{
|
||||
lua_newtable(_lua);
|
||||
|
Loading…
Reference in New Issue
Block a user