Results 1 to 20 of 21

Thread: Segmentation fault

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Segmentation fault

    No it doesn't suit to my system. I'm using ubuntu 9.04. But I don't know which version I should take and don't even no from where. Is it might be possible, when I try to install an old version of SUSE into a virtual machine and try to run it there?

  2. #2
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Segmentation fault

    Quote Originally Posted by Schimanski View Post
    No it doesn't suit to my system. I'm using ubuntu 9.04. But I don't know which version I should take and don't even no from where. Is it might be possible, when I try to install an old version of SUSE into a virtual machine and try to run it there?
    Ubuntu has no Qt 2 in its repository anymore? A Debian repository might work better. Though I am not sure whether Qt 2 is already in Debian stable.

    But you really should consider compiling your Qt 2 libs yourself.

  3. #3

    Default Re: Segmentation fault

    Ok, I gonna try it in one hour, I need to eat first Thank you for you help so far...

  4. #4

    Default Re: Segmentation fault

    Now I compiled qt2 by myself and I got the following error when I run my application:

    symbol lookup error: /home/campino/share/MedApp/MedApp: undefined symbol: __ti7QWidget

    Program exited with code 0177.
    (gdb) bt
    No stack.

  5. #5
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Segmentation fault

    Quote Originally Posted by Schimanski View Post
    Now I compiled qt2 by myself and I got the following error when I run my application:

    symbol lookup error: /home/campino/share/MedApp/MedApp: undefined symbol: __ti7QWidget

    Program exited with code 0177.
    (gdb) bt
    No stack.
    What does 'ldd <programname>' say?

  6. #6

    Default Re: Segmentation fault

    linux-gate.so.1 => (0xb7ee9000)
    libqt.so.2 (0xb7bb1000)
    libstdc++-libc6.2-2.so.3 (0xb7b69000)
    libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7b2d000)
    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb79ca000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb79ba000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb78cb000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb77dc000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb77cd000)
    /lib/ld-linux.so.2 (0xb7eea000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb77c8000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb77ae000)
    libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb77aa000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb77a5000)

  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: Segmentation fault

    It seems your application doesn't see the library you compiled.
    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

    Default Re: Segmentation fault

    hm.. but it should be...because there is a soft link to the library:
    lrwxrwxrwx 1 campino campino 14 2009-08-31 13:33 libqt.so.2.0 -> libqt.so.2.0.2

  9. #9
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Segmentation fault

    Quote Originally Posted by Schimanski View Post
    hm.. but it should be...because there is a soft link to the library:
    lrwxrwxrwx 1 campino campino 14 2009-08-31 13:33 libqt.so.2.0 -> libqt.so.2.0.2
    Is your lib in a standard location? Like /usr/lib? Try 'ldconfig -v' as root.

  10. The following user says thank you to Kumosan for this useful post:

    Morion_self (21st June 2011)

  11. #10

    Default Re: Segmentation fault

    No its not but its located in my program folder but I did a export command before: LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:.

    so it should be find. without that export command I get ./MedApp: error while loading shared libraries: libqt.so.2: cannot open shared object file: No such file or directory

    and the libqt.so.2 is linked to my self compiled lib.

    enclosed you can find the output of ldconfig -v
    Attached Files Attached Files

  12. #11
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Segmentation fault

    Hmm, as wysota said, your program does not find the qt lib. Or maybe your lib does not find a lib to which it has a dependency. You could try 'ldd libqt.so' to see if all dependencies are met. Else I'd try the ugly way and move the whole libqt* stuff into /usr/lib and do a 'ldconfig -v'. If this still not work I am out of my remote debugging options.

  13. The following user says thank you to Kumosan for this useful post:

    Morion_self (21st June 2011)

  14. #12
    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: Segmentation fault

    It does load the library, it seems. It also seems the library does not have the required symbols.
    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.


Similar Threads

  1. Replies: 21
    Last Post: 28th September 2010, 10:59
  2. Replies: 2
    Last Post: 16th June 2010, 23:58
  3. segmentation fault for no apparent reason
    By rishiraj in forum Newbie
    Replies: 1
    Last Post: 12th February 2009, 11:13
  4. Segmentation fault running any QT4 executables
    By jellis in forum Installation and Deployment
    Replies: 7
    Last Post: 19th May 2007, 16:35
  5. Icons missing => segmentation fault
    By antonio.r.tome in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 16:30

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.