DaisyExamples using older libDaisy and DaisySP libraries

Not sure if this is a “getting started” question or not, since I’ve been creating C++ code for patch_sm under VSCode for about a year. Today was the first day I tried using a color OLED display (ssh_1351) with my patch_sm. When I compiled my code I discovered that the libDaisy I originally pulled along with DaisyExamples last year wasn’t up to date with the libDaisy code I’ve been looking at on github. git pulling DaisyExamples didn’t update libDaisy and DaisySP. When I manually pulled libDaisy my code no longer compiled:

fatal error: stm32h7xx.h: No such file or directory

I would really like to use the most recent libDaisy and DaisySP. I don’t care whether DaisyExamples work for me anymore, I just want to be able to compile code that will talk to my color display.

What do I need to fix/update to get compilation working again with the new libraries? Any help is appreciated.

Try doing:

git pull
git submodule update --init --recursive

This will make sure that all your submodules are updated to their correct commit (the one intended for DaisyExamples project) as well.

… and then rebuild the libraries.

1 Like

Thanks.

I wound up just doing a full recursive “git clone” of the libraries in a different directory and then realizing that I needed to rebuild the libraries.

All is working again.