-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem Compiling #4
Comments
I had not previously tested on anything higher than Arduino 1.6.11, however just tonight tried 1.8.1 and seems to build OK. I have not had any other build complaints and can't seem to reproduce the issue. If you sort out what the root cause is, please check back in so it may help others. |
It's odd, it just doesn't seem to recognise DIYinoSoundSerial. USaber/sound/DFPlayer.h:120:2: error: 'DIYinoSoundSerial' does not name a type It's definitely in the include chain. Perhaps some compiler incompatibility with some type definition? Unfortunately I'm not an expert in c/c++. gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) I'm assuming this is using gcc/g++. I can get the library to build by commenting out "#define BUILD_DIYINOSOUNDPLAYER" but that doesn't solve the real problem. |
Yeah, it must be the include paths for your build environment. I've been depending on the Arduino IDE to set all that up when I add the library to my sketch. I never tried it under Linux, so maybe there are differences. Try modifying line 13 in sound/DFPlayer.h. From : If that works for you, I'll make the change part of the library. |
I tried that already... failed to include it after the change (diff error message). |
Hi there, I know i am joining this conversation late but i am having some weird issues with compiling the DFplayer test sketch and i am wondering if a solution was ever found for your problem here. I am able to compile the DIYino and the WT588D test sketches but the DFplayer which i am choosing to use is giving a 'DFPlayerSoundMap' does not name a type error. Sorry if this is unrelated or a dumb question. I have been building sabers for a long time but am a complete noob to coding. |
No problem, ChadMik. DFPlayerSoundPlayer is depreciated, so it is disabled from the build by default. DIYinoSoundPlayer is identical (and in fact DFPlayerSoundPlayer is essentially just a copy of DIYinoSoundPlayer at this point). DIYinoSoundPlayer is 100% compatible with the DFPlayer Mini MP3 modules, so use that and it should be smooth sailing if it's wired correctly. Good luck with your build! |
Hi, USaber won't compile for me, I'm wondering if it's a version or compiler issue. I'm just compiling the WT588 player example.
The text was updated successfully, but these errors were encountered: