How to implement C++ library into Corona SDK?

Hello everybody!
I am developing my own game, which based on light beams and optical objects. I wrote for this a library by C++, and wrote binds with Lua by luabind. I checked my library in Lua - it works. But I can’t implement it in the Corona SDK …

[lua]require(“mylib”)[/lua]
leads to mistake:
[text]
D:…\main.lua:18 module ‘mylib’ not found:resource <mylib.lu> does not exist in archive
no field package.preload[‘mylib’]
no file 'D:…\mylib.lua’
no file ‘C:\Program Files\Ansc’
[/text]

and
[lua] package.loadlib(‘mylib’,‘luaopen_mylib’)[/lua]
do nothing…

Is anybody have any suggestions?
Please, help me! I can’t find anything about my problem. [import]uid: 73959 topic_id: 16471 reply_id: 316471[/import] </mylib.lu>

You can’t right now I’m afraid… [import]uid: 12704 topic_id: 16471 reply_id: 61465[/import]

And no ideas how to solve my problem?
Maybe some tricks how to include the library or maybe corona library exists that can give me some light-physics (optics) functionality? [import]uid: 73959 topic_id: 16471 reply_id: 61543[/import]

Own physics engine supported by Box2D isn’t so hard to do. It’s all depends ehat kind of functionality you want. [import]uid: 12704 topic_id: 16471 reply_id: 61545[/import]

Hi.

There is no support for linking external libraries at present with the Corona SDK.

Have you tried out the box2d physics library that is implemented in the Corona SDK ? If it doesn’t suit your needs, could you post up a little more info of what exactly you are attempting to achieve?

Thanks [import]uid: 84637 topic_id: 16471 reply_id: 61561[/import]

Hi Danny

It’s more and more annoying in fact… Some time ago I made 2.5D texture “skew” ( http://www.youtube.com/watch?v=A0-UMUEymcQ ) based on this:
http://dev.opera.com/articles/view/creating-pseudo-3d-games-with-html-5-can-1/
tutotial for DOM model. It’s work as you see but preformance is bad even for small images (lots of copy of the same image and mask etc etc - this is why I never publish this code cuz it’s unusable).
We need low level OpenGL ES access asap…
Best regards [import]uid: 12704 topic_id: 16471 reply_id: 61564[/import]

Thanks all!
I very upset, but I’m trying to do it use built-in Corona possibilities now…
So, I’ll write something during a few days.
[import]uid: 73959 topic_id: 16471 reply_id: 61625[/import]