Version: CVS (using KDE KDE 3.1) Installed from: RedHat RPMs This used to work last week so something has changed... In Project Options/Run Options Select () run from Build directory. Now browse for a main program. In my case the main program is located at ../../../../../progs/miniglx/sample_server I select this an nothing display. If I start the debugger I get a path not found. So I enter ../../../../../progs/miniglx/sample_server manually. This works but nothing is displayed in Main Program. Now in the debugger I am trying to set breakpoints. miniglx.c is located at /home/newtree/temp/src/miniglx/miniglx.c Now I start my program and the breakpoints are not being set with the correct filepath. miniglx.c is at ../../../../miniglx/miniglx.c not miniglx.c gdb /home/newtree/temp/src/mesa/drivers/dri/r128/../../../../../progs/miniglx/sample_server -fullname -nx -quiet (gdb) set edit off (gdb) set confirm off (gdb) (gdb) (gdb) set print static-members off (gdb) tty /dev/pts/4 (gdb) set width 0 (gdb) set height 0 (gdb) set stop-on 1 (gdb) handle SIG32 pass nostop noprint (gdb) handle SIG43 pass nostop noprint (gdb) set print asm-demangle on (gdb) cd /home/newtree/temp/src/mesa/drivers/dri/r128 (gdb) break miniglx.c:940 No source file named miniglx.c. (gdb) run [New Thread 1077032096 (LWP 7309)] Stopped due to shared library event (gdb) break miniglx.c:940 No source file named miniglx.c. (gdb) continue [Switching to Thread 1077032096 (LWP 7309)] Stopped due to shared library event (gdb) break miniglx.c:940 No source file named miniglx.c. (gdb) continue Stopped due to shared library event (gdb) break miniglx.c:940 No source file named miniglx.c. (gdb) continue Program exited with code 0177.
I noticed in the Application window this: /home/newtree/temp/progs/miniglx/sample_server: relocation error: /home/newtree/temp/progs/miniglx/sample_server: undefined symbol __miniglx_Start_Server But when I run sample_sever from the command line it works without problem. I think I am starting to get a handle on what the problem is. I need to change to run it from where the executable is located. The program is linked using a relative path to the shared objects. -Wl,-rpath,$(TOP)/lib I tried this and it work. Leave the bug open since the path is still not being displayed in Project Options/Run Options/Main Program
> "The path is still not being displayed in Project Options/Run Options/Main Program This is most probably because your path is outside of the build directory tree. Try do do a soft-link in your build directory pointing to the location you want. Give that as input to the Options/Main Program and it should work and display fine. The problem is related with the "relativePath()" function on lib/urlUtil this sugestion is a way to bypass the problem
As Amilcar said, the problem is your installation, since you're getting Relocation errors. It is not a KDevelop bug or even a compilation error.