Binding the Qt librairy

Binding the Qt librairy

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Madeline
Posts: 1
Joined: 24 Apr 2009, 11:45

Binding the Qt librairy

Post by Madeline »

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/lua ... 4/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
Post Reply

Return to “Help & Bugs”