Re: [osg-users] New LUA plugin fails to link

2014-04-30 Thread Raymond de Vries
Hi Robert, Aha ok, I see. I thought that 3.2.1 was new enough to give it a try. I see the included sources now in the trunk... Obviously my trunk copy was not recent enough to notice it earlier. I did a few tests and only from rev 14114 (From Stephan Huber, fix for building lua plugin from

Re: [osg-users] New LUA plugin fails to link

2014-04-30 Thread Sebastian Messerschmidt
Hi Robert, I fixed the problem. It is rather obvious, that the compiler/linker barks here. The macro DECLARE_TYPE(A,B) in PropertyInterface will create explicit specialization of the getTypeEnum and GetTypeString function templates which will be seen multiple times by the linker in different

Re: [osg-users] New LUA plugin fails to link

2014-04-30 Thread Robert Osfield
Hi All, I've now merged Sebastian's fix. Cheers, Robert. On 30 April 2014 10:10, Sebastian Messerschmidt sebastian.messerschm...@gmx.de wrote: Hi Robert, I fixed the problem. It is rather obvious, that the compiler/linker barks here. The macro DECLARE_TYPE(A,B) in PropertyInterface will

[osg-users] New LUA plugin fails to link

2014-04-29 Thread Paul Martz
Hi Robert -- There is a new plugin, LUA, which fails to link on Windows when building current trunk. It looks like multiply defined symbols. I'm building for GLCORE, but that's probably irrelevant. I'm using the default setting for the LUA local source CMake variable. Here's the output:

Re: [osg-users] New LUA plugin fails to link

2014-04-29 Thread Robert Osfield
Hi Paul, The lua plugin has been checked in as it is for a couple of months now, I'm surprised others haven't come across issues. This suggest something either not many Windows are building the OSG and reporting problems, or that there is something specific about the compiler or build options

Re: [osg-users] New LUA plugin fails to link

2014-04-29 Thread Raymond de Vries
Hi, Coincidence, or not, I was going to report the same :-) On windows, lua is not a standard thing so I guess that it is not built often. Nor used? I am trying to build the plugin with lua from https://code.google.com/p/luaforwindows/ (5.1.4) with 32 bit visual studio 2008 (vc9). What

Re: [osg-users] New LUA plugin fails to link

2014-04-29 Thread Robert Osfield
Hi Raymond, Lua itself is pretty widely used and it's *very* portable being Anscii C. The new OSG Lua plugin includes the source and builds Lua locally so there is no need to go chasing external dependencies. The errors that Paul has published aren't to do with Lua but with osgDB template