Hi All, To help with use Lua+OSG on embedded platforms like iOS I have just checked in experimental support for compiling Lua-5.3.2 directly within Lua plugin rather than linking to Lua as an external dependency.
Lua is published under the MIT license so there are no restrictions to use embedded it this way, and is also compatible with statically linking applications. To control whether to compile local Lua sources or to link to an external lua library I have added a CMake option OSG_USE_LOCAL_LUA_SOURCES that defaults to ON, but you can change this to OFF to compile against lua as an external dependency. My hope that the addition of Lua sources won't complicate the build of the OSG, the sources themselves are very portable and shouldn't present problems, but I've got the lua plugin's CMakeLists.txt file to compile them so we'll be compiling the lua sources in a non-standard way. This does mean there is risk that I haven't yet got the CmakeLists.txt files right. If you find a build problem then just send a post to the list and let me know and we can try and work out a clean solution to it. Longer term I don't know yet whether to leave the default for OSG_USE_LOCAL_LUA_SOURCES to ON or OFF, I'm open to suggestions. It may be that we will want to mix and match the defaults, so on desktop link as an external dependency and on embedded platforms default to compiling local sources. These changes are now checked into OSG svn/trunk. Cheers, Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

