I just downloaded all the demo and library files for the MusicShield and I can’t get even the simplest program to compile correctly.
I’m trying to run playWithName.ino and I get these errors:
playWithName.ino:27:25: error: pins_config.h: No such file or directory
playWithName.ino:28:20: error: vs10xx.h: No such file or directory
playWithName.ino:29:22: error: newSDLib.h: No such file or directory
playWithName.ino:30:25: error: MusicPlayer.h: No such file or directory
playWithName:31: error: ‘MusicPlayer’ does not name a type
playWithName.ino: In function ‘void setup()’:
playWithName:35: error: ‘myplayer’ was not declared in this scope
playWithName.ino: In function ‘void loop()’:
playWithName:39: error: ‘myplayer’ was not declared in this scope
playWithName:39: error: ‘MODE_REPEAT_ONE’ was not declared in this scope\
The NewSoftSerial and music_v1_14 libraries appear in the GUI drop down menu.
What else do I have to do so that all the right library and header files can be found?
Also, why are the folders (music_v1_14, MusicPlayer_v1_7, and NewSoftSerial) filled with cpp (C++) and pde (Processing) files??
Thanks in advance…
I moved all the MusicPlayer_v1_7 files into the library directory and now I’m getting these errors:
In file included from playWithName.ino:29:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.h:68: error: expected class-name before ‘{’ token
In file included from playWithName.ino:30:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDLib.h:29: error: ‘SdCard’ does not name a type
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDLib.h:30: error: ‘Fat16’ does not name a type
It wasn’t clear to me that MusicPlayer_v1_7 was a library.
Why is there also a music_v1_14 library?
Do you need them both?
Hey , please delete all libraries about the music shield(some libraries can’t exist simustaneously in a folder,you need read the note on the wiki more carefully), and then uncompress the attachment in the library folder of Arduino.
Good luck.
libraries.rar (85.7 KB)
I have removed all old libraries and installed only the ones in the RAR file given above.
When I try to compile playWithName I get the huge list of errors shown below.
The only version I have been able to get to compile successfully was MusicShieldNewSDLib but when I run playWithName I get a constant “error opening file”.
Why are there so many versions of the libraries?
Why do none of them work?
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::deleteSong(unsigned char)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:240: multiple definition of
MusicPlayer::deleteSong(unsigned char)’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:240: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o:(.bss.playingState+0x0): multiple definition of playingState' MusicPlayer.cpp.o:(.bss.playingState+0x0): first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::playlistIsEmpty()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:279: multiple definition of MusicPlayer::playlistIsEmpty()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:279: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::playlistInit()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:284: multiple definition of MusicPlayer::playlistInit()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:284: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::scanAnalogSensor()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:344: multiple definition of MusicPlayer::scanAnalogSensor()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:344: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::playlistIsFull()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:382: multiple definition of MusicPlayer::playlistIsFull()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:382: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::controlLED()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:365: multiple definition of MusicPlayer::controlLED()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:365: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::scanDigitalSensor()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:348: multiple definition of MusicPlayer::scanDigitalSensor()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:348: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o:(.bss._DigitPinNum+0x0): multiple definition of
_DigitPinNum’
MusicPlayer.cpp.o:(.bss._DigitPinNum+0x0): first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o:(.bss._DigitPinLeval+0x0): multiple definition of _DigitPinLeval' MusicPlayer.cpp.o:(.bss._DigitPinLeval+0x0): first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::scanKey()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:295: multiple definition of MusicPlayer::scanKey()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:295: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::AvailableProcessorTime()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:271: multiple definition of MusicPlayer::AvailableProcessorTime()' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:271: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o: In function
MusicPlayer::attachAnalogOperation(int, void ()())’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:264: multiple definition of MusicPlayer::attachAnalogOperation(int, void (*)())' MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:264: first defined here MusicPlayer_v1_7\MusicPlayer.cpp.o:(.bss._AnalogPinNum+0x0): multiple definition of
_AnalogPinNum’
MusicPlayer.cpp.o:(.bss._AnalogPinNum+0x0): first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::attachDigitOperation(int, void (*)(), int)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:256: multiple definition of
MusicPlayer::attachDigitOperation(int, void ()(), int)’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:256: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::addToPlaylist(unsigned int)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:197: multiple definition of
MusicPlayer::addToPlaylist(unsigned int)’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:197: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::addToNewPlaylist()': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:233: multiple definition of
MusicPlayer::addToNewPlaylist()’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:233: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::addToPlaylist(char*)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:221: multiple definition of
MusicPlayer::addToPlaylist(char*)’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:221: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::creatPlaylist()': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:177: multiple definition of
MusicPlayer::creatPlaylist()’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:177: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::adjustVolume(unsigned char, unsigned char)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:159: multiple definition of
MusicPlayer::adjustVolume(unsigned char, unsigned char)’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:159: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::playSong(unsigned int)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:104: multiple definition of
MusicPlayer::playSong(unsigned int)’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:104: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::playList()': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:51: multiple definition of
MusicPlayer::playList()’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:51: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::playSong(char*)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:95: multiple definition of
MusicPlayer::playSong(char*)’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:95: first defined here
MusicPlayer_v1_7\MusicPlayer.cpp.o: In function MusicPlayer::begin()': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/MusicPlayer.cpp:39: multiple definition of
MusicPlayer::begin()’
MusicPlayer.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/MusicPlayer.cpp:39: first defined here
MusicPlayer_v1_7\newSDlib.cpp.o:(.bss.file+0x0): multiple definition of file' newSDlib.cpp.o:(.bss.file+0x0): first defined here MusicPlayer_v1_7\newSDlib.cpp.o: In function
newSD::ucharArray2String(unsigned char const*)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:179: multiple definition of newSD::ucharArray2String(unsigned char const*)' newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:179: first defined here MusicPlayer_v1_7\newSDlib.cpp.o: In function
newSD::findIndex(char*, unsigned int&)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:158: multiple definition of newSD::findIndex(char*, unsigned int&)' newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:158: first defined here MusicPlayer_v1_7\newSDlib.cpp.o: In function
newSD::traverseRootSong(unsigned int*, unsigned char&)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:119: multiple definition of newSD::traverseRootSong(unsigned int*, unsigned char&)' newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:119: first defined here MusicPlayer_v1_7\newSDlib.cpp.o: In function
newSD::readFile(unsigned char*, unsigned int)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:115: multiple definition of newSD::readFile(unsigned char*, unsigned int)' newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:115: first defined here MusicPlayer_v1_7\newSDlib.cpp.o: In function
error_P(char const*)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:60: multiple definition of error_P(char const*)' newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:60: first defined here MusicPlayer_v1_7\newSDlib.cpp.o:(.bss.card+0x0): multiple definition of
card’
newSDlib.cpp.o:(.bss.card+0x0): first defined here
MusicPlayer_v1_7\newSDlib.cpp.o: In function newSD::openFile(unsigned int)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:101: multiple definition of
newSD::openFile(unsigned int)’
newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:101: first defined here
MusicPlayer_v1_7\newSDlib.cpp.o: In function newSD::openFile(char*)': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:86: multiple definition of
newSD::openFile(char*)’
newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:86: first defined here
MusicPlayer_v1_7\newSDlib.cpp.o: In function newSD::init()': C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/newSDlib.cpp:72: multiple definition of
newSD::init()’
newSDlib.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/newSDlib.cpp:72: first defined here
MusicPlayer_v1_7\newSDlib.cpp.o:(.bss.newsd+0x0): multiple definition of newsd' newSDlib.cpp.o:(.bss.newsd+0x0): first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::readRegister(unsigned char)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:66: multiple definition of VS10XX::readRegister(unsigned char)' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:66: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::writeRegister(unsigned char, unsigned char, unsigned char)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:43: multiple definition of VS10XX::writeRegister(unsigned char, unsigned char, unsigned char)' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:43: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::setVolume(unsigned char, unsigned char)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:129: multiple definition of VS10XX::setVolume(unsigned char, unsigned char)' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:129: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::sendZerosToVS10xx()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:134: multiple definition of VS10XX::sendZerosToVS10xx()' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:134: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::softReset()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:112: multiple definition of VS10XX::softReset()' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:112: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::writeData(unsigned char*, unsigned char)’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:55: multiple definition of VS10XX::writeData(unsigned char*, unsigned char)' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:55: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::reset()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:86: multiple definition of VS10XX::reset()' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:86: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::initIO()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:35: multiple definition of VS10XX::initIO()' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:35: first defined here MusicPlayer_v1_7\vs10xx.cpp.o: In function
VS10XX::init()’:
C:\arduino-1.0.2\libraries\MusicPlayer_v1_7/vs10xx.cpp:27: multiple definition of VS10XX::init()' vs10xx.cpp.o:C:\DOCUME~1\CVecchio\LOCALS~1\Temp\build8525375058516020483.tmp/vs10xx.cpp:27: first defined here MusicPlayer_v1_7\vs10xx.cpp.o:(.bss.vs1053+0x0): multiple definition of
vs1053’
vs10xx.cpp.o:(.bss.vs1053+0x0): first defined here
I deleted and reinstalled the latest 1.0.5 version of Arduino and now I’m getting this compilation error list:
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp: In constructor ‘RobotControl::RobotControl()’:
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: ‘LCD_CS’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: ‘DC_LCD’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: ‘RST_LCD’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp: In member function ‘void RobotControl::begin()’:
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: ‘MUXA’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: ‘MUXB’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: ‘MUXC’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: ‘MUXD’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:19: error: ‘MUX_IN’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:22: error: ‘BUZZ’ was not declared in this scope
C:\Program Files\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:25: error: ‘Serial1’ was not declared in this scope
The music shield is poorly designed and tech support is nonexistent.
Having Jacket (or whatever his name is) just keep accusing people of “not reading the wiki more carefully” is not customer support.
A good product would have a few clear examples that can be easily installed and up and running quickly - not multiple libraries that are incompatible with one another and require replacing the standard Arduino libraries with modified versions.
I played around with this thing on and off for two weeks and never got it to do anything.
Do not buy this shield!
If you did then my advice is to throw it away and BUY A WAVE SHIELD!!
I just did and got the Wave Shield to work in under 5 minutes.
Install the library - run the examples - done!
I can’t believe Radio Shack sells this unsupported piece of crap.
Do they test anything?