2

There are apparently numerous reasons why Processing will not detect the installation of an external library.

1) Library installed in wrong folder

The library must be installed in a directory "libraries" in the sketchbook folder, which is probably not in the installation directory. Careful Linux is case sensitive so libraries and Libraries are two different directories, as are sketchbook and Sketchbook.

2) Library installed in correct folder but wrongly referenced

It's possible to confirm the current sketchbook directory used by Processing by looking in "Preferences" in the "File" menu of the Processing editor.

3) Problem with preferences.txt

Preferences.txt allows manual entries to be made. If you don't have a preferences.txt then there's no problem

4) Permissions on the folder itself

5) ??

And that is my question. For some reason, although everything is where it should be, Processing doesn't recognise SoundCipher when it has been dropped in as extracted from a zip file, as downloaded from the net and as instructed by every blog, readme file, etc I can find.

So I'm assuming there's something else that may cause havoc with Processing's ability to detect a library?

OS: Ubuntu 14 LTS

Error in editor is: The class SoundCipher does not exist

Error message is: No library found for arb.soundcipher No library found for arb.soundcipher.constants Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.

Sketchbook folder path: /home/steg/sketchbook

In Preferences, sketchbook path is: /home/steg/sketchbook

Path to library is: /home/steg/sketchbook/libraries/soundcipher

Path to source is: /home/steg/sketchbook/libraries/soundcipher/src

All other directories in soundcipher folder are as is... Yet the error is not related to soundcipher seemingly.

Code in Sketch:

 import arb.soundcipher.*; 
 import arb.soundcipher.constants.*;

 SoundCipher sc = new SoundCipher(this);
user3168961
  • 375
  • 1
  • 10
  • What is your question? How to make `SoundCipher` work? Please explain how you currently have it setup, your platform and architecture, and any errors you get. Saying you've followed "every" blog and readme file doesn't help us help you. *So I'm assuming there's something else that may cause havoc with Processing's ability to detect a library?* [BOFH](http://zork.net/fortunes/bofh-excuses). – Elliott Frisch Feb 27 '16 at 17:26
  • @ElliottFrisch Thanks. I've clarified the question. – user3168961 Feb 27 '16 at 17:38

1 Answers1

1

The easiest way to add a library to a sketch is to simply drag the library jar onto the Processing editor.

You don't have to install the library in the libraries directory. Just find SoundCipher.jar and drag it directly onto your sketch in the Processing editor.

That will add the library to your sketch, and you'll be able to use the SoundCipher class.

Kevin Workman
  • 41,537
  • 9
  • 68
  • 107