We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am creating a library that I want to depend on the Video library. IE I want my library to instantiate a Capture and read video frames. I started from the library template. I placed the Video library's jars in the lib folder, then built with Ant.
I can then run examples from my library just fine. But I also have the Video library installed in my Sketchbook libraries folder, as most people do. When I try to run these examples I get the error:
More than one library is competing for this sketch. The import processing.video points to multiple libraries: Video (/Users/andrew/Documents/Processing3/libraries/video) Art Screen (/Users/andrew/Documents/Processing3/libraries/ArtScreen) Extra libraries need to be removed before this sketch can be used.
I could of course delete the Video library from my Sketchbook libraries folder, but this would be annoying to ask users of my library to do. Is this the only solution? Are there any examples of libraries people have built that depend on other Processing libraries? What is the best practice here? Should we just never write libraries that depend on other Processing libraries?
Library source is here