Ranking
Original Post
Binding the Qt librairy
Hello,

I am trying to bind QtCore library. I'm using tolua++ to generate the cpp from the headers. I found the pkg at this adress :
http://svn.berlios.de/svnroot/repos/...a_qt4/lua_qt4/

When trying to compile QtCore.pkg, i got the following error:
"
***curr code for error is
Q_OBJECT
signals:
public:
QMetaEnum (); const _cstring name () const; bool isFlag () const; int keyCount () const; const _cstring key (int index) const; int value (int index) const; const _cstring scope () const; int keyToValue (const _cstring key) const; const _cstring valueToKey (int value) const; int keysToValue (const _cstring keys) const; QByteArray valueToKeys (int value) const; bool isValid () const;
stack traceback: [string "tolua embedded: src/bin/lua/basic.lua"]:91: in function 'tolua_error' [string "tolua: embedded Lua code 22"]:5: in main chunk
** tolua internal error: [string "tolua embedded: src/bin/lua/container.lua"]:737: #parse error.
stack traceback: [string "tolua: embedded Lua code 22"]:6: in main chunk
"

It appears the call to the macro Q_OBJECT is the problem.
I guess its not only a lua issue but also a Qt one. I just hope someone here has once tried to bind Qt like me and therefore may help me.

Thank you

Madeline