Results 1 to 9 of 9

Thread: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

  1. #1
    Join Date
    Mar 2007
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    i got this error and i dont know what it means or how to resolve it!
    ************************************************** **************************************
    moc_componentes.o: In function `Componentes::qt_metacall(QMetaObject::Call, int, void**)':
    moc_componentes.cpp:(.text+0xee): undefined reference to `Componentes::abrirFicheiro()'
    moc_componentes.cpp:(.text+0x110): undefined reference to `Componentes::escreveFicheiro(QString)'
    moc_componentes.cpp:(.text+0x135): undefined reference to `Componentes::on_btGuardar_clicked()'
    moc_componentes.cpp:(.text+0x142): undefined reference to `Componentes::on_btBackground_clicked()'
    moc_componentes.cpp:(.text+0x14f): undefined reference to `Componentes::on_btSplash_clicked()'
    moc_componentes.cpp:(.text+0x15f): undefined reference to `Componentes::on_btSilent_clicked()'
    moc_componentes.cpp:(.text+0x16f): undefined reference to `Componentes::mostrarItems()'
    moc_componentes.cpp:(.text+0x194): undefined reference to `Componentes::parseLinha(QString)'
    moc_editorCL.o: In function `EditorCL::qt_metacall(QMetaObject::Call, int, void**)':
    moc_editorCL.cpp:(.text+0x6b): undefined reference to `EditorCL::on_btAbrirComp_clicked()'
    moc_editorCL.cpp:(.text+0x76): undefined reference to `EditorCL::on_btAbrirSis_clicked()'
    moc_editorCL.cpp:(.text+0x86): undefined reference to `EditorCL::on_btNewComp_clicked()'
    moc_editorCL.cpp:(.text+0x96): undefined reference to `EditorCL::on_btNewSis_clicked()'
    moc_editorCL.cpp:(.text+0xa6): undefined reference to `EditorCL::on_btNewCL_clicked()'
    collect2: ld returned 1 exit status
    make: *** [matrioska] Error 1
    ************************************************** ************************************************** **
    ************************************************** ************************************************** **
    thaks for the help!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    Looks like your program didn't link correctly. Make sure your class code gets linked into the application. Do you use QMake?

  3. #3
    Join Date
    Mar 2007
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    yes
    i had only files .ui, .h and .cpp. Then, what i did was qmake -project, qmake and finaly make.
    how can i see if what you say is happening?!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    How and where did you implement for example EditorCL::on_btAbrirComp_clicked()?

  5. #5
    Join Date
    Mar 2007
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    inside a folder called "editor" is where the editorCL.h is located. bur i opened the .pro file and the paths are all correct....all the folders have teh correct path!!!!

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    Quote Originally Posted by Majestade View Post
    bur i opened the .pro file and the paths are all correct....
    Does the SOURCES variable contain the file with EditorCL::on_btAbrirComp_clicked() implementation?

    Could you post the first line of EditorCL::on_btAbrirComp_clicked() implementation?

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    Please also make sure the SOURCES variable in your .pro file doesn't contain any moc_*.cpp entries and that the HEADERS variable doesn't contain any ui_*.h entries.

  8. #8
    Join Date
    Mar 2007
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    no...none of those entries are in those places!

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Componentes::qt_metacall(QMetaObject::Call, int, void**)':

    Quote Originally Posted by Majestade View Post
    no...none of those entries are in those places!
    Does this mean that the files with those methods' implementations (i.e. EditorCL::on_btAbrirComp_clicked() et al.) aren't mentioned in the SOURCES variable? If they aren't add them and rerun qmake and make.
    Last edited by jacek; 1st April 2007 at 22:07.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.