Comments (6)
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.
from usaber.
It's odd, it just doesn't seem to recognise DIYinoSoundSerial.
USaber/sound/DFPlayer.h:120:2: error: 'DIYinoSoundSerial' does not name a type
DIYinoSoundSerial * mp3Serial;
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.
from usaber.
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 :
#include <sound/DIYinoSoundSerial.h>
To:
#include "DIYinoSoundSerial.h"
If that works for you, I'll make the change part of the library.
from usaber.
I tried that already... failed to include it after the change (diff error message).
from usaber.
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.
from usaber.
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!
from usaber.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usaber.