I'll put my two cents in really quick.
I vote that OSG_USE_LOCAL_LUA_SOURCES defaults to ON. While referencing an 
external version of Lua can be handy, it lends itself to issues in the future. 
With any scripting language, new versions are not always backwards compatible. 
I think more people would want to develop with a version of Lua they know works 
for them, and not have to worry about making sure it works with every version 
of Lua that someone may run.
>From a program control and maintenance stance, I think it should be defaulted 
>to ON for everything, but that's just me.
Alan

Date: Tue, 4 Feb 2014 17:03:05 +0000
From: [email protected]
To: [email protected]
Subject: [osg-users] Experimental integration of Lua-5.3.2 sources into the     
new Lua plugin.

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       
                                  
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to