vancegroup / vr-jugglua

VR JuggLua: A Framework for VR Applications Combining Lua, OpenSceneGraph, and VR Juggler
Boost Software License 1.0
11 stars 11 forks source link

Building Lua and Luabind as shared libraries #120

Closed rpavlik closed 10 years ago

rpavlik commented 10 years ago

The CMake code is all there, but I'm pretty sure it fails some tests, due to something with properties, perhaps (?) This is needed for luabullet, etc.

carlsonp commented 10 years ago

Test using CTest

carlsonp commented 10 years ago
The following tests FAILED:
      6 - vrjlua-run-navtestbed-runs_lua (Failed)
      7 - vrjlua-run-osgnav-statemachine_lua (Failed)
      9 - vrjlua-run-osgapp-delegate-count_lua (Failed)
     10 - vrjlua-run-osgapp-delegate-count-frameactions_lua (Failed)
     24 - vrjlua-run-osglua-usedisplaylistprop_lua (Failed)
     66 - OsgPointers-MatrixExactMatchFromRef (Failed)
     67 - OsgPointers-MatrixSingleConversionFromRef (Failed)
     68 - OsgPointers-MatrixSingleConversionFromFloatRef (Failed)
     69 - OsgNumericConversion-ConversionPathVec3fToVec3d (Failed)
     70 - OsgNumericConversion-ConstructionVec3fToVec3d (Failed)
     71 - OsgNumericConversion-Vec3fToVec3dCompatibleSet (Failed)
     72 - OsgNumericConversion-Vec3fToVec3dUsingSet (Failed)
     73 - OsgNumericConversion-GetConversionVec3fToVec3d (Failed)

Is one of these the property tests that you're referring? These same tests failed between building lua+luabind as shared libraries as well as the default providing external libraries.

rpavlik commented 10 years ago

Probably most of them - try ctest -V to actually see output (look at ctest -h)

Not sure what you mean by default providing external libraries....

Sent from my small, suspiciously phone-shaped Android tablet On Aug 15, 2013 9:49 AM, "Patrick Carlson" notifications@github.com wrote:

The following tests FAILED: 6 - vrjlua-run-navtestbed-runs_lua (Failed) 7 - vrjlua-run-osgnav-statemachine_lua (Failed) 9 - vrjlua-run-osgapp-delegate-count_lua (Failed) 10 - vrjlua-run-osgapp-delegate-count-frameactions_lua (Failed) 24 - vrjlua-run-osglua-usedisplaylistprop_lua (Failed) 66 - OsgPointers-MatrixExactMatchFromRef (Failed) 67 - OsgPointers-MatrixSingleConversionFromRef (Failed) 68 - OsgPointers-MatrixSingleConversionFromFloatRef (Failed) 69 - OsgNumericConversion-ConversionPathVec3fToVec3d (Failed) 70 - OsgNumericConversion-ConstructionVec3fToVec3d (Failed) 71 - OsgNumericConversion-Vec3fToVec3dCompatibleSet (Failed) 72 - OsgNumericConversion-Vec3fToVec3dUsingSet (Failed) 73 - OsgNumericConversion-GetConversionVec3fToVec3d (Failed)

Is one of these the property tests that you're referring? These same tests failed between building lua+luabind as shared libraries as well as the default providing external libraries.

— Reply to this email directly or view it on GitHubhttps://github.com/vancegroup/vr-jugglua/issues/120#issuecomment-22707655 .

carlsonp commented 10 years ago

Possible related threads from Googling:

http://www.gamedev.net/topic/639945-luabind-property-not-working-when-from-luabindglobals/

http://www.gamedev.net/topic/593408-def-readwrite-dosent-work/

http://lua.2524044.n2.nabble.com/problems-using-def-readwrite-and-property-when-binding-classes-td7581631.html

http://stackoverflow.com/questions/14887246/how-to-get-luabind-properties-to-work

carlsonp commented 10 years ago

Made a little progress. You may already know this but...

Some properties work just fine. For example, this test code that I wrote works:

require("help")
mat = osg.Matrix()
help(mat)
test_vec = osg.Vec3d(0,0,3)
mat.Trans = test_vec
print(mat.Trans)

I've been trying to focus on the osglua-usedisplaylistprop.lua test. Interestingly, setting geom.UseDisplayList to true/false fails, however, the getter method works just fine: print(geom.UseDisplayList)

rpavlik commented 10 years ago

No, that's osgLua properties, not Luabind properties. They're created in a totally different way. Think properties of PositionInterface.

On Tue, Aug 20, 2013 at 1:21 PM, Patrick Carlson notifications@github.comwrote:

Made a little progress. You may already know this but...

Some properties work just fine. For example, this test code that I wrote works:

require("help") mat = osg.Matrix() help(mat) test_vec = osg.Vec3d(0,0,3) mat.Trans = test_vec print(mat.Trans)

I've been trying to focus on the osglua-usedisplaylistprop.lua test. Interestingly, setting geom.UseDisplayList to true/false fails, however, the getter method works just fine: print(geom.UseDisplayList)

— Reply to this email directly or view it on GitHubhttps://github.com/vancegroup/vr-jugglua/issues/120#issuecomment-22966125 .

Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University

rpavlik@iastate.edu http://academic.cleardefinition.com

rpavlik commented 10 years ago

OK, I think this works now.