The demo sketch "SDWebBrowse" is giving me errors and what I have tried so far hasn't work. The start of the program has include files that can't be found.
This is a few line from the sketch:
(the line numbers are not part of the sketch)
1) #include <SdFat.h>
2) #include <SdFatUtil.h>
3) #include <Ethernet.h>
...
7) Sd2Card card;
8) SdVolume volume;
...
In line 3 above, the filename 'Ethernet' is in orange. I have compared this to other example sketches and it seems that this is okay. Lines 1 and 2 are not and this is what I believe to be the problem. Because I get an error on line 7 that says " 'Sd2Card' does not name a type" and "error: SdFat.h: No such file or directory" also the same for SdFatUtil.h.
I have copied the SdFat.h file to just about all possible folders and still get the same errors. And I also looked in the Preferences.txt file but I have no idea what to do in there.
What am I missing? Any help will be valued greatly.
Arne
SDWebBrowse error: No such file
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: SDWebBrowse error: No such file
Sounds like you don't have the SDFat library installed correctly. See the tutorial here: http://www.ladyada.net/library/arduino/libraries.html
- arne32
- Posts: 16
- Joined: Thu Sep 22, 2011 1:09 pm
Re: SDWebBrowse error: No such file
Thank you for pointing me in the right direcrtion.
I was able to resolve the errors up to a point. I have another issue that I will keep trying with or will start a new topic if needed.
However, I am still not understanding the directoy structure. The way I read it is that all support files should be in there root directory. Nothing is mentioned about a 'utility' directory. Or did I miss something again? Please confirm.
If a 'utility' folder is needed, how do you know which files go to the root dir or the utility dir?
I was trying the demo 'DumpFile' that is included and it gives an error that it can't find the 'SD.h' file. The 'SD.h' file is in the utility dir which it appears not able to find. When I copy this file to the root location, it works. So why did the author put it in the utility folder?
By the way, I am using V22.
So, where are the header files to be located, the root dir or the utility dir?
Thanks for any help you can provide.
Arne
P.S. Maybe the tutorial could be updated which includes some info about the 'utility' folder for other newbies like myself.
I was able to resolve the errors up to a point. I have another issue that I will keep trying with or will start a new topic if needed.
However, I am still not understanding the directoy structure. The way I read it is that all support files should be in there root directory. Nothing is mentioned about a 'utility' directory. Or did I miss something again? Please confirm.
If a 'utility' folder is needed, how do you know which files go to the root dir or the utility dir?
I was trying the demo 'DumpFile' that is included and it gives an error that it can't find the 'SD.h' file. The 'SD.h' file is in the utility dir which it appears not able to find. When I copy this file to the root location, it works. So why did the author put it in the utility folder?
By the way, I am using V22.
So, where are the header files to be located, the root dir or the utility dir?
Thanks for any help you can provide.
Arne
P.S. Maybe the tutorial could be updated which includes some info about the 'utility' folder for other newbies like myself.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: SDWebBrowse error: No such file
Where do you see a reference to the "utility" directory?
Libraries are installed in the "Libraries" folder under your "Arduino" sketchbook folder as described here: http://www.ladyada.net/library/arduino/libraries.html
Libraries are installed in the "Libraries" folder under your "Arduino" sketchbook folder as described here: http://www.ladyada.net/library/arduino/libraries.html
- arne32
- Posts: 16
- Joined: Thu Sep 22, 2011 1:09 pm
Re: SDWebBrowse error: No such file
This is what happens when one doesn't know what they are doing. One starts to peek into all the folders to see what's there. And then get into trouble!
However, when I installed Arduino it had set up the directory for the example sketches like this;
'c:\arduino\libraries\SD' with SD being a grouping of SD card demo sketches.
Here I have the folders 'examples' and 'utility'. The 'examples' folder holds the sketches , the root dir and utility dir have the header files as well as some cpp files. This is also the way it was on my Mac that I compared with last night.
I am using a pc, but I have noticed that the same DumpFile project that I have been examing, when opened on the Mac shows the 'SD' part of "#include <SD.h>" is orange. When it turns orange and other times it doesn't, what does this mean?
I also have a 'Arduino' directory in 'My Documents' folder. This is where all my saved projects go.
However, when I installed Arduino it had set up the directory for the example sketches like this;
'c:\arduino\libraries\SD' with SD being a grouping of SD card demo sketches.
Here I have the folders 'examples' and 'utility'. The 'examples' folder holds the sketches , the root dir and utility dir have the header files as well as some cpp files. This is also the way it was on my Mac that I compared with last night.
I am using a pc, but I have noticed that the same DumpFile project that I have been examing, when opened on the Mac shows the 'SD' part of "#include <SD.h>" is orange. When it turns orange and other times it doesn't, what does this mean?
I also have a 'Arduino' directory in 'My Documents' folder. This is where all my saved projects go.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: SDWebBrowse error: No such file
In older versions of the IDE, you had to install the libraries in the arduino install directory. This meant that you had to re-install them all whenever you updated to a new version of the IDE. Since version 17 or so, the standard distribution libraries are installed with the IDE and any others go under your My Documents/Arduino/Libraries folder.
Each library can contain a file called "keywords.txt" The words from this file are highlighted in your code whenever you include the library.
Each library can contain a file called "keywords.txt" The words from this file are highlighted in your code whenever you include the library.
- arne32
- Posts: 16
- Joined: Thu Sep 22, 2011 1:09 pm
Re: SDWebBrowse error: No such file
okay, first time using arduino and I installed version 22.
And, I have a 'utility' folder that holds some header files and the link you sent me to says that all header files should be in the root dir.
And, I have a 'utility' folder that holds some header files and the link you sent me to says that all header files should be in the root dir.
- arne32
- Posts: 16
- Joined: Thu Sep 22, 2011 1:09 pm
Re: SDWebBrowse error: No such file
so does the IDE create the 'keywords.txt' file for the sketch you are working on?
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: SDWebBrowse error: No such file
The directory structure of the library and the inclusion of a keywords file is up to the author of each library. At a minimum, this means a header file in the root of the folder and an examples folder for examples. They library author may add whatever other files and folders needed.
Just take the folder structure as-is and copy it to the Libraries folder under MyDocuments/Libraries.
Just take the folder structure as-is and copy it to the Libraries folder under MyDocuments/Libraries.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: SDWebBrowse error: No such file
note that this example is deprecated, it will be rewritten shortly for the new IDE and libraries. it may not work at all!
Please be positive and constructive with your questions and comments.