piwniczne
1st November 2014, 13:08
Hi,
I try to run Lua scripts in QtCreator.
I did that to my .pro file (screen)
but it crashes when I try to run:
void MainWindowT::initLUA()
{
lua_State* pL=lua_open(); if(!pL) qFatal(“LUA cannot be initialized.â€); luaL_openlibs(pL); luaL_dofile( pL,“hello.lua†);
}
at luaL_dofile( pL,“hello.lua†);.
U can see that error and pro gile at screen:
http://s2.ifotos.pl/img/1png_wpnqwrq.png
files included to project I took from Lua installed at my computer.
if I comment line with luaL_dofile it works.
IDK what to do,
Plz help me if u can.
I try to run Lua scripts in QtCreator.
I did that to my .pro file (screen)
but it crashes when I try to run:
void MainWindowT::initLUA()
{
lua_State* pL=lua_open(); if(!pL) qFatal(“LUA cannot be initialized.â€); luaL_openlibs(pL); luaL_dofile( pL,“hello.lua†);
}
at luaL_dofile( pL,“hello.lua†);.
U can see that error and pro gile at screen:
http://s2.ifotos.pl/img/1png_wpnqwrq.png
files included to project I took from Lua installed at my computer.
if I comment line with luaL_dofile it works.
IDK what to do,
Plz help me if u can.