Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qtlua for Qt5.4.0 on Windows [Solved]
Forum Updated to NodeBB v4.3 + New Features

Qtlua for Qt5.4.0 on Windows [Solved]

Scheduled Pinned Locked Moved Installation and Deployment
qt 5.4.0qtluawindowlibqtlua-2.0qt 5.0.2mingw
11 Posts 2 Posters 5.6k Views 2 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.
  • M Offline
    M Offline
    MTCA
    wrote on 15 Jun 2015, 10:05 last edited by MTCA
    #1

    I have to work on project based on QtLua. Currently, I am using Qt5.4.0 on Windows 7 OS. As I am naive to this environment and as there are very few reference sites available for QtLua on Win platform, I am unable to integrate both Qt5.4.0 and QtLua. I tried using libqtlua-2.0, but couldn't succeed. If anyone has tried doing so, please state the steps you have followed.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Jun 2015, 10:18 last edited by
      #2

      Hi and welcome to devnet,

      I haven't used that library yet but if you explain what problems you are currently encountering (error message etc.) more forum users might be able to provide some help

      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
      • M Offline
        M Offline
        MTCA
        wrote on 15 Jun 2015, 11:05 last edited by MTCA
        #3

        I am currently having Qt5.4.0 in my system. Following are the steps which I followed:

        1. download the libqtlua-2.0 from http://download.savannah.gnu.org/releases/libqtlua/
        2. Extract and cmake the file.
        3. (Step where I am facing the problem):

        C:\libqtlua-2.0\bld>make
        [ 1%] Generating moc_qtluaqtlib.cpp
        moc: Cannot open options file specified with @
        QCommandLineParser: argument list cannot be empty, it should contain at least th
        e executable name

        make[2]: *** [src/moc_qtluaqtlib.cpp] Error 1
        make[1]: *** [src/CMakeFiles/qtlua.dir/all] Error 2
        make: *** [all] Error 2

        C:\libqtlua-2.0\bld>

        My Question is: Am I doing it correctly? Or missing some steps?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MTCA
          wrote on 16 Jun 2015, 04:29 last edited by
          #4

          Now, I have tried doing the same with Qt 5.0.2 and the error report generated is as follows:

          C:\libqtlua-2.0\bld>make
          [ 1%] Generating moc_qtluaqtlib.cpp
          [ 3%] Generating QtLua/moc_qtluaconsole.cpp
          [ 5%] Generating QtLua/moc_qtluauseritemselectionmodel.cpp
          [ 7%] Generating QtLua/moc_qtluauseritemmodel.cpp
          [ 9%] Generating QtLua/moc_qtlualuamodel.cpp
          [ 11%] Generating QtLua/moc_qtluatabletreemodel.cpp
          [ 13%] Generating QtLua/moc_qtluaitemviewdialog.cpp
          [ 15%] Generating QtLua/moc_qtluatablegridmodel.cpp
          [ 17%] Generating QtLua/moc_qtluastate.cpp
          Scanning dependencies of target qtlua
          [ 19%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaconsole.cc.obj
          [ 21%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaenum.cc.obj
          [ 23%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaenumiterator.cc.obj
          [ 25%] Building CXX object src/CMakeFiles/qtlua.dir/qtluafunction.cc.obj
          [ 26%] Building CXX object src/CMakeFiles/qtlua.dir/qtluauseritem.cc.obj
          [ 28%] Building CXX object src/CMakeFiles/qtlua.dir/qtluauseritemmodel.cc.obj
          [ 30%] Building CXX object src/CMakeFiles/qtlua.dir/qtluauseritemselectionmodel.
          cc.obj
          [ 32%] Building CXX object src/CMakeFiles/qtlua.dir/qtluauserlistitem.cc.obj
          [ 34%] Building CXX object src/CMakeFiles/qtlua.dir/qtlualistiterator.cc.obj
          [ 36%] Building CXX object src/CMakeFiles/qtlua.dir/qtluamember.cc.obj
          [ 38%] Building CXX object src/CMakeFiles/qtlua.dir/qtluametacache.cc.obj
          [ 40%] Building CXX object src/CMakeFiles/qtlua.dir/qtluamethod.cc.obj
          [ 42%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaplugin.cc.obj
          [ 44%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaproperty.cc.obj
          [ 46%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaqmetaobjecttable.cc.obj

          [ 48%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaqmetavalue.cc.obj
          [ 50%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaqmetaobjectwrapper.cc.o
          bj
          [ 51%] Building CXX object src/CMakeFiles/qtlua.dir/qtlualuamodel.cc.obj
          [ 53%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaqobjectiterator.cc.obj
          [ 55%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaqobjectwrapper.cc.obj
          [ 57%] Building CXX object src/CMakeFiles/qtlua.dir/qtluaqtlib.cc.obj
          [ 59%] Building CXX object src/CMakeFiles/qtlua.dir/qtluastate.cc.obj
          c:/libqtlua-2.0/libqtlua-2.0/src/qtluastate.cc: In static member function 'stati
          c void QtLua::State::lua_pgettable(lua_State*, int)':
          c:/libqtlua-2.0/libqtlua-2.0/src/qtluastate.cc:442:29: error: return-statement w
          ith a value, in function returning 'void'
          c:/libqtlua-2.0/libqtlua-2.0/src/qtluastate.cc: In member function 'void QtLua::
          State::gc_collect()':
          c:/libqtlua-2.0/libqtlua-2.0/src/qtluastate.cc:952:29: error: 'lua_setgcthreshol
          d' was not declared in this scope
          make[2]: *** [src/CMakeFiles/qtlua.dir/qtluastate.cc.obj] Error 1
          make[1]: *** [src/CMakeFiles/qtlua.dir/all] Error 2
          make: *** [all] Error 2

          C:\libqtlua-2.0\bld>

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 16 Jun 2015, 19:53 last edited by SGaist
            #5

            Looks like in on one place there's a return statement where it shouldn't and a call to a function that doesn't seem to exists in the version of lua you are building against

            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
            • M Offline
              M Offline
              MTCA
              wrote on 17 Jun 2015, 08:31 last edited by
              #6

              Thank you. This time, I have tried it with Lua 5.2(in earlier case it was Lua 5.3). The build which was getting stuck at 59% is now completed but now it is showing some new issues:
              Linking CXX shared library libqtlua.dll (And followed by a huge list)
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x78): undefined reference to QWidget::enterEvent(QEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0x7c): undefined reference to QWidget::leaveEvent(QEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x80): undefined reference to QWidget::paintEvent(QPaintEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0x84): undefined reference to QWidget::moveEvent(QMoveEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x88): undefined reference to QDialog::resizeEvent(QResizeEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0x8c): undefined reference to QDialog::closeEvent(QCloseEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x90): undefined reference to `QDialog::contextMenuEvent(QContextMenuEvent*)'

              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x94): undefined reference to QWidget::tabletEvent(QTabletEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0x98): undefined reference to QWidget::actionEvent(QActionEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x9c): undefined reference to QWidget::dragEnterEvent(QDragEnterEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xa0): undefined reference to QWidget::dragMoveEvent(QDragMoveEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xa4): undefined reference to QWidget::dragLeaveEvent(QDragLeaveEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xa8): undefined reference to QWidget::dropEvent(QDropEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xac): undefined reference to QDialog::showEvent(QShowEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xb0): undefined reference to QWidget::hideEvent(QHideEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xb4): undefined reference to QWidget::nativeEvent(QByteArray const&, void*, long*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xb8): undefined reference to QWidget::changeEvent(QEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xbc): undefined reference to QWidget::metric(QPaintDevice::PaintDeviceMetri c) const' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xc0): undefined reference to QWidget::initPainter(QPainter*) const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xc4): undefined reference to QWidget::redirected(QPoint*) const' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xc8): undefined reference to QWidget::sharedPainter() const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xcc): undefined reference to `QWidget::inputMethodEvent(QInputMethodEvent*)'

              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xd0): undefined reference to QWidget::inputMethodQuery(Qt::InputMethodQuery ) const' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xd4): undefined reference to QWidget::focusNextPrevChild(bool)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xd8): undefined reference to QDialog::open()' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xdc): undefined reference to QDialog::exec()'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xe0): undefined reference to QDialog::done(int)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xe4): undefined reference to QDialog::accept()'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0xe8): undefined reference to QDialog::reject()' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0xfc): undefined reference to non-virtual thunk to QWidget::devType() const'

              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x100): undefined reference to non-virtual thunk to QWidget::paintEngine() c onst' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0x104): undefined reference to non-virtual thunk to QWidget::metric(QPaintDe
              vice::PaintDeviceMetric) const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x108): undefined reference to non-virtual thunk to QWidget::initPainter(QPa inter*) const' CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo g]+0x10c): undefined reference to non-virtual thunk to QWidget::redirected(QPoi
              nt*) const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaitemviewdialog.cpp.obj):moc_qtluaitemvie
              wdialog.cpp:(.rdata$_ZTVN5QtLua14ItemViewDialogE[vtable for QtLua::ItemViewDialo
              g]+0x110): undefined reference to non-virtual thunk to QWidget::sharedPainter() const' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.text+0xa5): undefined reference to _imp___ZNK11QObjectData17dynam
              icMetaObjectEv'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.text+0xf1): undefined reference to _imp___ZN18QAbstractItemModel1 1qt_metacastEPKc' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.text+0x11c): undefined reference to _imp___ZN18QAbstractItemModel
              11qt_metacallEN11QMetaObject4CallEiPPv'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.text+0x1ba): undefined reference to _imp___ZN11QMetaObject8activa teEP7QObjectPKS_iPPv' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.text+0x204): undefined reference to _imp___ZN18QAbstractItemModel
              16staticMetaObjectE'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x1c): undefined reference to QObject::event(QEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x20): undefined reference to QObject::eventFilter(QObject*, QEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x24): undefined reference to QObject::timerEvent(QTimerEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x28): undefined reference to QObject::childEvent(QChildEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x2c): undefined reference to QObject::customEvent(QEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x30): undefined reference to QObject::connectNotify(QMetaMethod const&)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x34): undefined reference to `QObject::disconnectNotify(QMetaMethod const&)'

              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x40): undefined reference to QAbstractItemModel::sibling(int, int, QModelIn dex const&) const' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x60): undefined reference to QAbstractItemModel::itemData(QModelIndex const
              &) const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x64): undefined reference to QAbstractItemModel::setItemData(QModelIndex co nst&, QMap<int, QVariant> const&)' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x68): undefined reference to QAbstractItemModel::mimeTypes() const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x6c): undefined reference to `QAbstractItemModel::mimeData(QList<QModelIndex

              const&) const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x70): undefined reference to QAbstractItemModel::canDropMimeData(QMimeData const*, Qt::DropAction, int, int, QModelIndex const&) const' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x74): undefined reference to QAbstractItemModel::dropMimeData(QMimeData con
              st*, Qt::DropAction, int, int, QModelIndex const&)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x78): undefined reference to QAbstractItemModel::supportedDropActions() con st' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x7c): undefined reference to QAbstractItemModel::supportedDragActions() con
              st'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x90): undefined reference to QAbstractItemModel::moveRows(QModelIndex const &, int, int, QModelIndex const&, int)' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x94): undefined reference to QAbstractItemModel::moveColumns(QModelIndex co
              nst&, int, int, QModelIndex const&, int)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0x98): undefined reference to QAbstractItemModel::fetchMore(QModelIndex cons t&)' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0x9c): undefined reference to QAbstractItemModel::canFetchMore(QModelIndex c
              onst&) const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0xa4): undefined reference to QAbstractItemModel::sort(int, Qt::SortOrder)' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0xa8): undefined reference to QAbstractItemModel::buddy(QModelIndex const&)
              const'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0xac): undefined reference to QAbstractItemModel::match(QModelIndex const&, int, QVariant const&, int, QFlags<Qt::MatchFlag>) const' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0xb0): undefined reference to QAbstractItemModel::span(QModelIndex const&) c
              onst'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0xb4): undefined reference to QAbstractItemModel::roleNames() const' CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode l]+0xb8): undefined reference to QAbstractItemModel::submit()'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluatablegridmodel.cpp.obj):moc_qtluatablegr
              idmodel.cpp:(.rdata$_ZTVN5QtLua14TableGridModelE[vtable for QtLua::TableGridMode
              l]+0xbc): undefined reference to QAbstractItemModel::revert()' CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.text +0x19d): undefined reference to _imp___ZNK11QObjectData17dynamicMetaObjectEv'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.text
              +0x1e9): undefined reference to _imp___ZN7QObject11qt_metacastEPKc' CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.text +0x214): undefined reference to _imp___ZN7QObject11qt_metacallEN11QMetaObject4C
              allEiPPv'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.text
              +0x2b2): undefined reference to _imp___ZN11QMetaObject8activateEP7QObjectPKS_iP Pv' CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.text +0x2fc): undefined reference to _imp___ZN7QObject16staticMetaObjectE'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.rdat
              a$_ZTVN5QtLua5StateE[vtable for QtLua::State]+0x1c): undefined reference to QOb ject::event(QEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.rdat a$_ZTVN5QtLua5StateE[vtable for QtLua::State]+0x20): undefined reference to QOb
              ject::eventFilter(QObject*, QEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.rdat
              a$_ZTVN5QtLua5StateE[vtable for QtLua::State]+0x24): undefined reference to QOb ject::timerEvent(QTimerEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.rdat a$_ZTVN5QtLua5StateE[vtable for QtLua::State]+0x28): undefined reference to QOb
              ject::childEvent(QChildEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.rdat
              a$_ZTVN5QtLua5StateE[vtable for QtLua::State]+0x2c): undefined reference to QOb ject::customEvent(QEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.rdat a$_ZTVN5QtLua5StateE[vtable for QtLua::State]+0x30): undefined reference to QOb
              ject::connectNotify(QMetaMethod const&)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluastate.cpp.obj):moc_qtluastate.cpp:(.rdat
              a$_ZTVN5QtLua5StateE[vtable for QtLua::State]+0x34): undefined reference to QOb ject::disconnectNotify(QMetaMethod const&)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.text +0x33): undefined reference to _imp___ZNK11QObjectData17dynamicMetaObjectEv'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.text
              +0x7f): undefined reference to _imp___ZN7QObject11qt_metacastEPKc' CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.text +0xaa): undefined reference to _imp___ZN7QObject11qt_metacallEN11QMetaObject4Ca
              llEiPPv'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.text
              +0xd6): undefined reference to _imp___ZN7QObject16staticMetaObjectE' CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.rdat a$_ZTVN5QtLua10SizePolicyE[vtable for QtLua::SizePolicy]+0x1c): undefined refere nce to QObject::event(QEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.rdat
              a$_ZTVN5QtLua10SizePolicyE[vtable for QtLua::SizePolicy]+0x20): undefined refere
              nce to QObject::eventFilter(QObject*, QEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.rdat a$_ZTVN5QtLua10SizePolicyE[vtable for QtLua::SizePolicy]+0x24): undefined refere nce to QObject::timerEvent(QTimerEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.rdat
              a$_ZTVN5QtLua10SizePolicyE[vtable for QtLua::SizePolicy]+0x28): undefined refere
              nce to QObject::childEvent(QChildEvent*)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.rdat a$_ZTVN5QtLua10SizePolicyE[vtable for QtLua::SizePolicy]+0x2c): undefined refere nce to QObject::customEvent(QEvent*)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.rdat
              a$_ZTVN5QtLua10SizePolicyE[vtable for QtLua::SizePolicy]+0x30): undefined refere
              nce to QObject::connectNotify(QMetaMethod const&)' CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.rdat a$_ZTVN5QtLua10SizePolicyE[vtable for QtLua::SizePolicy]+0x34): undefined refere nce to QObject::disconnectNotify(QMetaMethod const&)'
              CMakeFiles/qtlua.dir/objects.a(moc_qtluaqtlib.cpp.obj):moc_qtluaqtlib.cpp:(.text
              $_ZN5QtLua10SizePolicyD1Ev[QtLua::SizePolicy::~SizePolicy()]+0x16): undefined re
              ference to `_imp___ZN7QObjectD2Ev'
              collect2: ld returned 1 exit status
              make[2]: *** [src/libqtlua.dll] Error 1
              make[1]: *** [src/CMakeFiles/qtlua.dir/all] Error 2
              make: *** [all] Error 2

              C:\libqtlua-2.0\bld>

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MTCA
                wrote on 18 Jun 2015, 10:19 last edited by
                #7

                While doing cmake of libqtlua 2.0, it doesn't generate any error message, neither there is any failure in configuration and generation. But it does generate warning message :
                "Looking for include file dlfcn.h
                Looking for include file dlfcn.h - not found". Can this be the main cause of above errors?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 18 Jun 2015, 22:17 last edited by
                  #8

                  Looks like it's not linking to the QtWidget module

                  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
                  • M Offline
                    M Offline
                    MTCA
                    wrote on 25 Jun 2015, 06:08 last edited by
                    #9

                    Yes. I think you are right. Not only QtWidget module, but I think it is not linking to QtCore and QtXml modules as well (because while cmaking, I need to explicitly give the path of this 3 modules). But I do not understand what can be the problem! Am I doing cmake incorrectly or is it because of the compiler which I am using?

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MTCA
                      wrote on 12 Aug 2015, 08:21 last edited by
                      #10

                      Solved!!!

                      1. Qt 5.4.1-mingw-open source.
                      2. Libqtlua 2.0
                      3. Lua 5.1
                        Earlier, I was trying to compile lbqtlua using mingw which I installed explicitly in the system, as , I was unaware about the existence of mingw in the tools provided by Qt. It was the reason of above errors.
                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 12 Aug 2015, 21:40 last edited by
                        #11

                        Great !

                        I forgot that usual suspect… It's a tricky one…

                        Thanks for sharing !

                        Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                        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