4

On my Raspberry Pi, with Debian Squeeze, I want to link to the shared objects in /opt/vc/lib. I have added this directory to a file in /etc/ld.so.conf.d/ which is included in /etc/ld.so.conf. The compiler/linker runs without error, but upon execution, the program complains about missing .so files. Running ldd confirms that the libs cannot be found, but running ldconfig -v, after running ldconfig, shows the libs are in the cache.

What can cause this problem?

EDIT

Another thing that could cause this issue is an RPATH set in the executable - see wikipedia.

derekdreery
  • 143
  • 1
  • 6

2 Answers2

2

to make linking work you'll need to run ldconfig

$ sudo ldconfig

(oh well already in comments above. didn't see that until post)

1

Try appending your path to the LD_LIBRARY_PATH variable and re-compiling. The only other thing i know would be to create links to your libraries in one of the standard library locations.