Results 1 to 2 of 2

Thread: HELP! Can't debug on CentOS 5.3

  1. #1
    Join Date
    Nov 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default HELP! Can't debug on CentOS 5.3

    Hello,

    I'm having a problem trying to debug my application on CentOS 5.3.

    When I launch the debugger, it says:

    "You can't do that without a process to debug."

    Then, in the "Application Output" window, I get this error:

    /bin/bash: error while loading shared libraries: libQtCore.so.4: cannot open shared object file: No such file or directory

    I ran ldd on my executable, and this was the output:

    Qt Code:
    1. [avalanchis@centos nci]$ ldd nci
    2. linux-gate.so.1 => (0x00746000)
    3. libQtXml.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtXml.so.4 (0x00a5e000)
    4. libQtGui.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtGui.so.4 (0x00aa7000)
    5. libQtNetwork.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtNetwork.so.4 (0x00110000)
    6. libQtCore.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtCore.so.4 (0x00457000)
    7. libpthread.so.0 => /lib/libpthread.so.0 (0x0023f000)
    8. libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x04791000)
    9. libm.so.6 => /lib/libm.so.6 (0x00256000)
    10. libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x04783000)
    11. libc.so.6 => /lib/libc.so.6 (0x0027d000)
    12. libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0x003c1000)
    13. librt.so.1 => /lib/librt.so.1 (0x003c6000)
    14. libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00747000)
    15. libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00811000)
    16. libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0x003cf000)
    17. libSM.so.6 => /usr/lib/libSM.so.6 (0x0040e000)
    18. libICE.so.6 => /usr/lib/libICE.so.6 (0x00417000)
    19. libXrender.so.1 => /usr/lib/libXrender.so.1 (0x0090f000)
    20. libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x009e1000)
    21. libz.so.1 => /usr/lib/libz.so.1 (0x006ff000)
    22. libXext.so.6 => /usr/lib/libXext.so.6 (0x007fa000)
    23. libX11.so.6 => /usr/lib/libX11.so.6 (0x07590000)
    24. libdl.so.2 => /lib/libdl.so.2 (0x00431000)
    25. /lib/ld-linux.so.2 (0x0043b000)
    26. libexpat.so.0 => /lib/libexpat.so.0 (0x00893000)
    27. libXau.so.6 => /usr/lib/libXau.so.6 (0x00435000)
    28. libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00712000)
    To copy to clipboard, switch view to plain text mode 

    /home/avalanchis/qtsdk-2010.02/qt/lib/libQtCore.so.4 is linked to /home/avalanchis/qtsdk-2010.02/qt/lib/libQtCore.so.4.6.2 which appears to be a valid file.

    I was running an earlier (4.5?) version of QT earlier today when I first encountered this problem. I uninstalled, then installed 4.6.2 but it did not help. I'm not sure what caused the problem because I have not tried to debug on this machine in some time.

    Any suggestions greatly appreciated!

    Alan

  2. #2
    Join Date
    Nov 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: HELP! Can't debug on CentOS 5.3

    I solved this by going to Projects -> Run Environment -> Show Details and changed the LD_LIBRARY_PATH value from:

    /home/avalanchis/qtsdk-2010.02/lib/qtcreator:

    to

    /home/avalanchis/qtsdk-2010.02/lib

    Could anyone explain why this was necessary?

    Thanks,

    Alan

Similar Threads

  1. Unable to compile QT 4.6.2 on 64 bit Centos 5.4
    By Dave Augustus in forum Installation and Deployment
    Replies: 1
    Last Post: 7th March 2010, 14:25
  2. SQL in Centos and Ubuntu
    By Lycus HackerEmo in forum Newbie
    Replies: 1
    Last Post: 6th January 2010, 00:24
  3. Using QT in CentOS
    By vishakvkurup in forum Qt Programming
    Replies: 7
    Last Post: 15th January 2008, 22:01
  4. Qt4 on Centos 64 m/c
    By a_m_mukul in forum Qt Programming
    Replies: 2
    Last Post: 22nd November 2007, 15:22
  5. Qt 4.2.3 centos 5.0 - cannot find -lXext
    By jcr in forum Installation and Deployment
    Replies: 2
    Last Post: 16th May 2007, 18:26

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.