Results 1 to 14 of 14

Thread: error: undefined reference to `__gxx_personality_v0' while using gstreamer library.

  1. #1
    Join Date
    Feb 2015
    Posts
    6

    Default error: undefined reference to `__gxx_personality_v0' while using gstreamer library.

    Hi all,

    I am trying to use GStreamer in QT application in Windows. To get the libraries linked to Qt application, i have included below lines into .pro file.

    INCLUDEPATH +=E:\gstreamer\1.0\x86\include E:\gstreamer\1.0\x86\include\gstreamer-1.0 E:\gstreamer\1.0\x86\include\glib-2.0 E:\gstreamer\1.0\x86\lib\glib-2.0\include
    LIBS += -L"E:\gstreamer\1.0\x86\lib" -lglib-2.0 -lgstreamer-1.0

    while i run the application i get the below error.

    :-1: error: undefined reference to `__gxx_personality_v0'


    I am very new to QT environment. please easy go on me .

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

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Seems like a compiler clash. What compiler are you using? What compiler was your GStreamer built with?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2015
    Posts
    6

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Hi,

    I have downloaded GStreamer file from the below link:

    http://gstreamer.freedesktop.org/dat...windows/1.4.5/

    File Names: gstreamer-1.0-devel-x86-1.4.5.msi , gstreamer-1.0-x86-1.4.5.msi

    I checked with Properties of the system : it shows 64 bit X86 machine.

    QT Version:


    Based on Qt 5.2.1 (MSVC 2010, 32 bit)

    Built on Jan 31 2014 at 05:16:27

    From revision 51af63bb9e


    Kindly provide input.

  4. #4
    Join Date
    Feb 2015
    Posts
    6

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Could someone help me on this?

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

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    __gxx_personality_v0 should be a gcc symbol which would imply your gstreamer is built with MinGW and not MSVC. Either rebuild it with MSVC yourself or find MSVC compatible binaries.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Feb 2015
    Posts
    6

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Thanks for reply. I am using MinGW compiler in the Qt Environment. And, i am using 32 bit compiled GStreamer binary to link.

    Kindly let me know what other things i need to look at ?

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

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Quote Originally Posted by jils View Post
    Thanks for reply. I am using MinGW compiler in the Qt Environment. And, i am using 32 bit compiled GStreamer binary to link.

    Kindly let me know what other things i need to look at ?
    Does it work now?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,318
    Thanks
    315
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    You said this:

    I am using MinGW compiler in the Qt Environment.
    and you said this:

    QT Version: Based on Qt 5.2.1 (MSVC 2010, 32 bit)
    and who knows how your gstreamer distribution was built. At a minimum, the binaries in the Qt distribution are incompatible with the compiler you are using for your app.

    As wysota has been patiently trying to tell you, you can't mix binaries from two different compilers when linking. Everything you link has to be compiled using the SAME compiler. So either rebuild everything you are using (Qt, gstreamer, your app, and any other libraries you link in) from source code or find distributions that were built with the same compiler you are using for your app. And of course everything has to be either 32-bit compiled or 64-bit compiled, not mix and match.

  9. #9
    Join Date
    Feb 2015
    Posts
    6

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Extremely sorry for the confusion. Initially i was linking with msvc, later then moved to minGW, based on wysota suggestion. But still not working. it looks like need to link with libstdc++. I am not sure what to add in .pro in order to link with libstdc++. would you mind pointing out?

  10. #10
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,318
    Thanks
    315
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Initially i was linking with msvc, later then moved to minGW
    It is irrelevant what tool you are using to link with. If your Qt distro was built with MSVC, then you can't link it into an app (or with a library) built with mingw. If you want to use mingw, then you have to install a mingw-based Qt distro (or rebuild Qt from source code using mingw).

    If you aren't doing that, then any link errors you are seeing are not due to missing libraries, but incompatibilities in what you are trying to link.
    Last edited by d_stranz; 10th February 2015 at 15:46.

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

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Quote Originally Posted by jils View Post
    Extremely sorry for the confusion. Initially i was linking with msvc, later then moved to minGW, based on wysota suggestion. But still not working. it looks like need to link with libstdc++. I am not sure what to add in .pro in order to link with libstdc++. would you mind pointing out?
    Libstdc++ is part of your MinGW distro.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Feb 2015
    Posts
    6

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    So, to conclude, to link with libraries compiled with mingw, the QT Distro itself should have compiled with mingw. that means i should take QT source code, and compile with mingw.

    Is that the correct understanding? If so, we do have any ready built Qt distro?

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

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Quote Originally Posted by jils View Post
    So, to conclude, to link with libraries compiled with mingw, the QT Distro itself should have compiled with mingw. that means i should take QT source code, and compile with mingw.
    Correct. All components of the equation need to built with compatible compilers.

    Is that the correct understanding? If so, we do have any ready built Qt distro?
    Because not everyone wants to use MSVC-built Qt with MinGW-built GStreamer.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  14. #14
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: error: undefined reference to `__gxx_personality_v0' while using gstreamer librar

    Based on Qt 5.2.1 (MSVC 2010, 32 bit)

    Built on Jan 31 2014 at 05:16:27

    From revision 51af63bb9e
    This looks like the Qt version info returned by Qt Creator in its About box. This version has nothing to do with the version you are building your project with.

    There a ready build Qt libraries for MingW and various Msvc versions available from the project site.
    There is no information that I could see on the gstreamer site about which compilers were used to build their binaries. What is the name of the link library files in the distribution? Something.a or something.lib?Even if they are MingW built (seems less likely in an msi wrapper) they may be built with the older Gcc 4.4 which is not binary compatible with the current version for C++.

Similar Threads

  1. Replies: 2
    Last Post: 11th August 2012, 17:37
  2. Replies: 3
    Last Post: 18th December 2010, 14:55
  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. QT and my own shared library, undefined reference to ...
    By webquinty in forum General Programming
    Replies: 4
    Last Post: 4th March 2009, 15:09
  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
  •  
Qt is a trademark of The Qt Company.