Coder Social home page Coder Social logo

Problem Compiling about usaber HOT 6 OPEN

jakes0ft avatar jakes0ft commented on August 10, 2024
Problem Compiling

from usaber.

Comments (6)

JakeS0ft avatar JakeS0ft commented on August 10, 2024

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.

HotPepperDaddy avatar HotPepperDaddy commented on August 10, 2024

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.

JakeS0ft avatar JakeS0ft commented on August 10, 2024

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.

HotPepperDaddy avatar HotPepperDaddy commented on August 10, 2024

I tried that already... failed to include it after the change (diff error message).

from usaber.

ChadMik avatar ChadMik commented on August 10, 2024

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.

JakeS0ft avatar JakeS0ft commented on August 10, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.