PDA

View Full Version : HELP! Can't debug on CentOS 5.3



AlanC
15th March 2010, 18:09
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:


[avalanchis@centos nci]$ ldd nci
linux-gate.so.1 => (0x00746000)
libQtXml.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtXml.so.4 (0x00a5e000)
libQtGui.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtGui.so.4 (0x00aa7000)
libQtNetwork.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtNetwork.so.4 (0x00110000)
libQtCore.so.4 => /home/avalanchis/qtsdk-2010.02/qt/lib/libQtCore.so.4 (0x00457000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0023f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x04791000)
libm.so.6 => /lib/libm.so.6 (0x00256000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x04783000)
libc.so.6 => /lib/libc.so.6 (0x0027d000)
libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0x003c1000)
librt.so.1 => /lib/librt.so.1 (0x003c6000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00747000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00811000)
libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0x003cf000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x0040e000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00417000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x0090f000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x009e1000)
libz.so.1 => /usr/lib/libz.so.1 (0x006ff000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x007fa000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x07590000)
libdl.so.2 => /lib/libdl.so.2 (0x00431000)
/lib/ld-linux.so.2 (0x0043b000)
libexpat.so.0 => /lib/libexpat.so.0 (0x00893000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00435000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00712000)

/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

AlanC
16th March 2010, 12:04
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