Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Problem with starting Lua with QtCreator

Problem with starting Lua with QtCreator

Scheduled Pinned Locked Moved Language Bindings
2 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Piwniczne
    wrote on 1 Nov 2014, 12:56 last edited by
    #1

    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

    if I comment line with luaL_dofile it works.
    IDK what to do,
    Plz help me if u can.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Nov 2014, 13:48 last edited by
      #2

      Hi,

      Since the symbol is not found you are missing a library in your LIBS line

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      1 Nov 2014, 12:56

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved