IDE won't compile with Pro Micro Leonardo

The IDE kept bugging me about updating to 2.0.4. so I did so and then I tried compiling a script onto my brand new Pro Micro, which produced this code:

In file included from C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/MIDI_Interfaces/USBMIDI/USBMIDI.hpp:100:0,
                 from C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/MIDI_Interfaces/USBMIDI_Interface.hpp:4,
                 from C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/Control_Surface.h:129,
                 from C:\Users\FunkyMunky\Documents\Arduino\Control Surface (with Encoders)\Control_Surface__with_Encoders___we_are_get_copy_20230317153253\Control_Surface__with_Encoders___we_are_get_copy_20230317153253.ino:1:
C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/MIDI_Interfaces/USBMIDI/USBMIDI_MIDIUSB.hpp:4:10: fatal error: MIDIUSB.h: No such file or directory
 #include <MIDIUSB.h>
          ^~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

My Pro Micro is on COM 6. The code, thankfully, still compiles on my Arduino UNO but, alas, the Pro Micro is the one I really want to work with.

Any idea of what's going on?

It can't find the library files. Try re-installing the library first. There may be more going on than that, though...

Yes, that's what it looked like to me as well, so I re-installed Control Surface, but still, no go.

IDE 2.0 is new. What were you using before that?

Yeah, I stupidly just updated without checking the version I had first. So I don't know what I had before. I installed it 1-1 1/2 years ago though. Any ideas on how to find that out? I was thinking of rolling back to the previous version.

As I understand, 2.0x has categorical changes vs. previous ones, some bugs are being worked out (I mean, a lot more vs. say 1.89 that I use). So it's not impossible. But maybe you mean, a previous version of 2.0. Heck, sometimes a bug fix breaks something.

That seems to be the wrong library to re-install. You have to (re)install the MIDIUSB library.

I have no experience with the libraries mentioned. I installed the control surface library and compiled the first example in IDE 2.0.4 without problems. Looking at the verbose output, I see lines with

"-Ic:\\Users\\sterretje\\Documents\\Arduino\\libraries\\MIDIUSB\\src"

This indicates that you need the MIDIUSB library. I had it already installed (no idea why, I never had a need for it); timestamp is from 2021.

Your topic is not related to IDE installation problems and hence has been moved to a more suitable location on the forum.

Yes, after hours of researching, I finally figured out that A. as a Pro Micro/Leonardo, it needs another library with which to be set up as a USB/MIDI Device, and B. upon reading the various instructions for Control Surface, I did, indeed figure out that what I needed was MIDIUSB Library. So I found the library, successfully installed it, and all the errors went away. My Pro Micro is now working like a champ as a MIDI Device.

Thanks for the help.

Great :+1:

You can mark the topic as "solved" by clicking the solution button under the most useful reply.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.