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
Forum Updated to NodeBB v4.3 + New Features

Problem with starting Lua with QtCreator

Scheduled Pinned Locked Moved Language Bindings
2 Posts 2 Posters 1.3k Views 1 Watching
  • 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 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      • Login

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