Notifications
Clear all

Having an issue with library in the CG9A01 tutorial on YouTube

21 Posts
2 Users
0 Likes
1,208 Views
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

SUCCESS!!!!!!!!!!!!

I removed all instances that I could find, most of which were in the arduino-esp32_master file and the LITTLEFS folder. I then rebooted and no dice.

So I reread the error message and realized that this sketch was looking for the LittleFS.h file in the TJpg_decoder folder and that was a big clue.

OK, I moved the LittleFS folder to the TFT_eSPI/TJpg_decoder folder and now it loads up. I am now breathing better. This issue is now closed as far as I'm concerned.

Ron, You were a great help. It was most likely those other two things that were interfering and I would not have removed them had you not suggested it

Cheers

David M


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6658
 

@david-m Sorry, but you have it wrong. LittleFS.h is installed when you FIRST install the IDE. You have fixed this sketch, but it's very likely the next will fail on another include. Read my previous posts. That aeduino_esp_master is the code that the developers of the arduino IDE are working on. Clean up your environment and properly install the IDE.

Don't expect any more help with a non-standard installation.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

Hi, 

Obviously I don’t understand what you mean by non standard install. I installed the IDE from Arduino’s website. I installed it on my iMac years ago and have updated it from Arduino many times. I think I am currently running 1.8.16. 

I went looking for LittleFS.h when this problem first cropped up a month or so ago. I found Arduino_esp32_master and installed it in the docs/Arduino/library folder as I have always done. And it didn’t work. So I went looking again and installed LITTLEFS which made no difference either. So when you said those were useless I removed them. Reinstalled the IDE and still nothing. So I found a copy and dropped it in the folder. Restarted and all was roses.

I don’t want you to think for one second that I was ignoring your advice. I just didn’t understand what you meant by nonstandard install. I didn’t know any other way to install the IDE except from Arduino themselves.

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6658
 

@david-m I said non standard as the Arduino_esp32_master is the source code for the IDE.

If you could scan my docs/arduino/library folder you would NOT find LittleFS.h, yet if I create a sketch that includes that it compiles. The reason is that LitleFS.h is installed in the system libraries with the IDE. In fact the one you found in Arduino_esp32_master is the exact one that is installed in the system libraries. You got your sketch to work by manually putting a copy somewhere in the include path. If you create a new empty sketch with just #include I am pretty sure it will fail, but mine will succeed.

The important thing is if one (LittleFS.h) of the standard libraries is missing, maybe more are. It would be nice to get to the bottom of why some are missing, but at the very least re-installing the IDE should restore the system libraries.

Now that I know you are not a flagrant abuser of library management I will give you the exact path to search. I too am a Mac user so our paths will be the same.

Use finder to navigate to (user)/Library/Arduino15/packages/esp32 and enter LittleFS.h in the search box. The result should look like attached pic. Then select the only entry that is just LittleFS.h and look at the bottom for the full path, it should look like 2nd pic. 

IMPORTANT: These are the SYSTEM libraries, they are NOT maintained by us, the IDE install and updates populate them.

3rd pic is search of my library folder, the LittleFS.h is NOT found, the 4th picture is a compile of an empty sketch that only includes LittleFS.h

The last picture is from the compiler listing that shows WHERE it got the include for LittleFS.h.

I have been messing with computers since 1959 and owned my own company before retiring 20 years ago. I know my way around these critters, but my social skills suck (on the spectrum)

If you want to fix your environment, send me a PM and I will work with you. You need to make 2 or 3 more posts before you can use PM, just make some random replies to this.

 

Screen Shot 2022 09 11 at 13.48.57
Screen Shot 2022 09 11 at 13.49.14
Screen Shot 2022 09 11 at 13.52.35
Screen Shot 2022 09 11 at 13.54.30
Screen Shot 2022 09 11 at 13.55.06

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@david-m)
Member
Joined: 2 years ago
Posts: 9
Topic starter  

Hi Ron,

I have teaching duties tomorrow (Basic Circuits Lab, always a trip) and on Tuesday as well. So I won't be back on it until Wednesday only have Digital Logic Lab but that's in the PM.(Which is a load of BOOL...HEHE)

But rest assured I and going to follow your advice. So until then Thanks a bunch....I know this problem is wearing you out.

David M

This post was modified 2 years ago by David M

   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6658
 

@david-m Trust me I have had more difficult problems. 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Page 2 / 2