Results 1 to 5 of 5

Thread: error message : undefined reference to 'gst_element_link_pads_full'

  1. #1
    Join Date
    Aug 2012
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default error message : undefined reference to 'gst_element_link_pads_full'

    hi
    can anybody help me about this error message "undefined reference to 'gst_element_link_pads_full'"
    how does this error happen?
    thanks a lot

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: error message : undefined reference to 'gst_element_link_pads_full'

    Firstly, this is nothing to do with Qt.

    it happens when you tell the compiler that gst_element_link_pads_full exists, and in your code you try to use that method, but you have not implemented it properly, or told the linker where to find the method in another library.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. The following user says thank you to amleto for this useful post:

    tonylin0826 (24th August 2012)

  4. #3
    Join Date
    Aug 2012
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: error message : undefined reference to 'gst_element_link_pads_full'

    Thank you very much, but this error message only happen when i move my project from windows to unbuntu. It can successfully compile in windows. How could this happen?

  5. #4
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: error message : undefined reference to 'gst_element_link_pads_full'

    you didnt move everything or you are not correctly building your project (that includes incorrect build environment)

    edit:
    or you didn't build/install all required libraries on *nix.

    do you have libgstreamer on ubuntu?
    Last edited by amleto; 24th August 2012 at 17:33.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  6. #5
    Join Date
    Aug 2012
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: error message : undefined reference to 'gst_element_link_pads_full'

    I moved whole project to ubuntu and delete .user file. Could you tell me what is incorrect build environment?

    I didn't have libgstreamer on unbutu. After I install libgetreamer, it still show the same error message. Do you know why? Please help me! Thanks a lot.


    Added after 21 minutes:


    The problem is solved, but I don't know why. The solution is that I change the build configuration from Qt 4.8.1 to Qt 4.8.0 and it works. Do you know why? Thank you very much.
    Last edited by tonylin0826; 27th August 2012 at 04:44.

Similar Threads

  1. undefined reference to vtable error
    By PaulDaviesC in forum Newbie
    Replies: 4
    Last Post: 20th April 2012, 16:11
  2. Replies: 5
    Last Post: 24th January 2011, 22:14
  3. Getting Undefined Reference Error
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2009, 02:12
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  5. Undefined Reference error!!!
    By Kapil in forum Newbie
    Replies: 25
    Last Post: 28th March 2006, 12:03

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.