Use a dynamic library with OF


I am using openFrameworks for a project together with Bass audio library ( I have successfully compile and run my code on windows. Now I am trying to do the same on Raspberry pi 3, so I download the ARM linux library of Bass ( called and I tried to compiled my code. I added this line to the config.make


and I copied the to the /usr/lib folder. The code compiles but when I run it i get this error:
“error while loading shared libraries: cannot open shared object file: No such file or directory”

I have tried different folders without success. Any thoughts?



Hey @yiannis,

Did you figure this out in the end? Struggling to do the same thing S:

What I did was:

  1. Add this to config.make

  2. Copy the (from the hardfp folder) to usr/local/lib

  3. Add a “libbass.conf” file with only this line
    inside the “/etc/” folder.

  4. Run the “sudo ldconfig”

  5. Add the following line to /home/pi/.bashrc file
    export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}


The only problem is that I have to run export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH} again sometimes


1 Like