Closed thirtythreeforty closed 8 years ago
Have you tried using link_directories to make sure the dependencies are loaded from the correct location?
link_directories(/Users/$ENV{USER}/Documents/Arduino/libraries/)
Also, if a library has dependencies on standard libs, you may need to configure recursive scan of dependencies. In some of my sketches I needed this for the aJSON library. In your case, it might be:
set(RF24_RECURSE True)
Both directives need to be placed after the project definition, before the generate_arduino_firmware
call that needs the libs in question.
I haven't messed with this in a while, but I seem to recall that I was doing something incorrectly. I'll close this if you don't mind.
I have run into an issue when trying to build the RF24 Arduino library. According to some other issues I've read, Arduino library dependencies are supposed to be detected automatically, but as far as I can tell that isn't happening correctly.
The output looks like this:
My sample repository demonstrates the issue. You will have to run a recursive clone if you want a copy, as I'm pulling the dependencies (including this repository itself) in via submodules.
Am I doing something incorrectly, or is there an issue?