two libraries of the same name issue?

Hi all, I am trying to install two libraries for testing but having some issues, I don't want to use them in the same sketches, but I want to have both installed for convenience.

Namely, they are: GitHub - NicoHood/MSGEQ7: Library for Musicvisualization with MSGEQ7 and GitHub - EngineeredEntropy/MSGEQ7: MSGEQ7 Graphic Equalizer Library for Arduino

I have tried to re-name them (MSGEQ7NH, MSGEQ7EE) but the IDE does some funky stuff and does not compile some of the time.

Is there a way to alter something to enable me to have both installed?

normally the strategy is something like

  1. to close all IDE's
  2. remove both the libs (copy to \tmp)
  3. start IDE to verify removal
  4. close all IDE
  5. install one and rename it
  6. verify with IDE
  7. close IDE
    8] install the other and rename it
  8. verify in IDE.

success

which version of the IDE are you using?

Hi Rob - I'm running 1.6.4

Tried the following:

  1. Remove both libs
  2. Start IDE to verify
  3. close IDE
  4. move MSGEQ7EngineeredEntropy
  5. start IDE and open example sketch - compiles OK
  6. close ide
  7. move MSGEQ7NicoHood
  8. start IDE - but MSGEQ7NicoHood just shows up as MSGEQ7
  9. open example sketch - compiles OK

So both libraries seem to be usable now, but how is the name changing itself?

Thanks very much :slight_smile:

AFAIK The name of the class stays the same, only the name of the include file (.h .cpp) changes.

dtokez:
6) start IDE - but MSGEQ7NicoHood just shows up as MSGEQ7

That's probably because you didn't change the name in library.properties.

pert:
That's probably because you didn't change the name in library.properties.

where do I find library properties?

Thanks

It's a text file in the root folder of the Nico Hood MSGEQ7 library. library.properties contains metadata about the library. If present the name= field is used by Arduino as the display name of the library. If there is no library.properties file present in the root folder of the library then the library folder name is used for the library display name. MSGEQ7EngineeredEntropy doesn't contain a library.properties file so that's why the display name changed when you changed the folder name.