Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

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?

share|improve this question
    
Did you run sudo ldconfig? Are the libs/dir listed in output from ldconfig -v? The linker and loader are two different things (ldd vs ld). –  XTL Nov 26 '12 at 6:30
1  
Yes I have checked both of these things. –  derekdreery Dec 11 '12 at 14:33
    
What exactly is the message about .so files? –  XTL Dec 12 '12 at 7:26
    
Are you actually passing the correct linker flags to gcc? –  James Bennet Mar 14 '13 at 22:57
    
Are you trying to access the share object using dlopen ? In that case, the presence of the .so file will not be checked at compile time. Please post the complete compilation command that you are running. –  Jay Nov 10 '13 at 14:33
show 1 more comment

1 Answer

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.

share|improve this answer
    
I have actually already tried both of these things already, without success. –  derekdreery Nov 29 '12 at 14:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.