[SOLVED] LuaBind "No RTTI Data!" problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
iRobo
Posts: 26
Joined: Mon Aug 23, 2010 1:41 pm
Location: Iran
Contact:

[SOLVED] LuaBind "No RTTI Data!" problem

Post by iRobo »

Hi, I've successfully implemented LUA scripting language in my project with LUABIND. It works fine with C++ standard types like int,... and my own classes.
but when I'm trying to access an irrlicht classes type like "ISceneNode" , LUABIND shows me this :

Code: Select all

std::exception: 'Access violation - no RTTI data!'
I've searched a lot. rebuilding LUABind , ODE , ... (third party projects in mine) with "Run-Time Type Info" enabled. until I figure out that the Irrlicht has built with "Run-Time Type Info (RTTI)" disabled! and I think that is the problem.

Do you guys have any idea that can help me? How can I rebuild irrlicht with RTTI Enabled?
Last edited by iRobo on Thu Dec 02, 2010 4:35 pm, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, simply enable it and recompile the engine. For gcc you have to remove -fno-rtti, for MSVC you have to enable it in the configuration dialog of the compiler.
iRobo
Posts: 26
Joined: Mon Aug 23, 2010 1:41 pm
Location: Iran
Contact:

Post by iRobo »

well tried that but I got more than 100 errors like these in winnt.h and winbase.h :

Code: Select all

Error	1	error C2146: syntax error : missing ';' before identifier 'PVOID64'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	2	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	3	error C2146: syntax error : missing ';' before identifier 'Buffer'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	4	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	5	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	6	error C2146: syntax error : missing ';' before identifier 'PVOID64'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	7	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	8	error C2146: syntax error : missing ';' before identifier 'Buffer'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	9	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	10	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
...
iRobo
Posts: 26
Joined: Mon Aug 23, 2010 1:41 pm
Location: Iran
Contact:

Post by iRobo »

Post Reply