2 Easy fixes to Arduino error: “.h: No such file or directory"

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • 🤩 FREE Arduino Crash Course 👇👇
    bit.ly/get_Ard...
    Want to learn more? Check out our courses!
    bit.ly/33ceYv4
    We designed this circuit board for beginners!
    Kit-On-A-Shield: amzn.to/3lfWClU
    SHOP OUR FAVORITE STUFF! (affiliate links)
    ---------------------------------------------------
    Get your Free Trial of Altium PCB design Software
    www.altium.com...
    We use Rev Captions for our subtitles
    bit.ly/39trLeB
    Arduino UNO R3:
    Amazon: amzn.to/37eP4ra
    Newegg: bit.ly/3fahas8
    Budget Arduino Kits:
    Amazon:amzn.to/3C0VqsH
    Newegg:bit.ly/3j4tISX
    Multimeter Options:
    Amazon: amzn.to/3rRo3E0
    Newegg: bit.ly/3rJoekA
    Helping Hands:
    Amazon: amzn.to/3C8IYXZ
    Newegg: bit.ly/3fb03X1
    Soldering Stations:
    Amazon: amzn.to/2VawmP4
    Newegg: bit.ly/3BZ6oio
    AFFILIATES & REFERRALS
    ---------------------------------------------------
    ►Audible Plus Free trial: amzn.to/3j5IGrV
    ►Join Honey- Save Money bit.ly/3xmj7rH
    ►Download Glasswire for Free:bit.ly/3iv1fql
    FOLLOW US ELSEWHERE
    ---------------------------------------------------
    Facebook: / programmingelectronics...
    Twitter: / progelecacademy
    Website: www.programmin...
    2 Easy fixes to Arduino error: “.h: No such file or directory"
    Are you trying to run an Arduino sketch, but keep coming across a "No such file or directory" error? This is a pretty common error! Keep watching to learn more about 2 easy fixes for this error.
    **Get the code, transcript, challenges, etc for this lesson on our website**
    bit.ly/2K32YAM
    **About Us:**
    This Arduino tutorial was created by Programming Electronics Academy. We are an education company who seek to help people learn about electronics and programming through the ubiquitous Arduino development board.
    **We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

Комментарии • 357

  • @programmingelectronics
    @programmingelectronics  4 года назад +11

    ****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB

    • @ramijali6964
      @ramijali6964 9 месяцев назад +1

      ❤❤❤ nice video

    • @charlesinventorpitso
      @charlesinventorpitso 5 месяцев назад +1

      what if the library is installed but still getting the similar massege

    • @programmingelectronics
      @programmingelectronics  5 месяцев назад

      @@charlesinventorpitso I'd double check that you have spelled the name of the library correct on the include line (all though I guessing you already checked that )

  • @2goXD
    @2goXD Год назад +5

    If you are using OneDrive cloud storage and you are syncing your documents, there is a possibility that your Arduino IDE is pointing to some random old location. In my case i unlinked one of my OneDrive accounts and my ArduinoIDE remembered the old location of Documents. It would create sketches and upload them normally, but it wasn't able to include header files (.h).
    You can fix it by clicking File/ Prefferences/ and then you correct the "Sketchbook location" to your new desired location. In case of OneDrive users, default should be %USERPROFILE%\OneDrive\Documents\Arduino\ . Others have it in %USERPROFILE%\Documents\Arduino\

  • @windlo3906
    @windlo3906 Год назад +3

    You helped me being able to overcome the difficult coding situation that I had for my automatic chopsticks... THANKS! YOU ARE AN ABSOLUTE LIFE SAVER!!!

  • @iandawkins2182
    @iandawkins2182 5 лет назад +17

    I love your down to earth explanation and approach, so helpful for a new coder like me. Please keep them coming as I am learning so much.

    • @programmingelectronics
      @programmingelectronics  5 лет назад +1

      Thanks Ian! And thanks for watching!

    • @iandawkins2182
      @iandawkins2182 5 лет назад +1

      No pain, always gain. Really can't express how much the channel and your clear explanations means to me and so many makers. Respect Bro.

  • @GlobalHealthSI
    @GlobalHealthSI 4 года назад +1

    This worked...thanks!!! Doing a side project [outside PROGRAMMING ELECTRONICS ACADEMY] using IRremote and it was not finding it. Took old one [IRremote] out, and followed your example of SKETCH -> INCLUDE LIBRARY -> MANAGE LIBRARY -> searched for IRremote, found it, and downloaded. Error gone. Will do this with the "header missing" error [as you stated in the past, but thought my IRremote missing was different] get rid of current one and reload. Thanks

  • @lawtraf8008
    @lawtraf8008 2 года назад +2

    Thank you so much, you save my life. I was stuck on this issue for hours. The library I needed wasn't in the software's library so I followed your second tip and just type it's name on Google, I downloaded the zip file and then added the file in the Arduino library, the color of it changed instantly from black to orange. I run the program and no mistakes were founded, everything went well. I can't thank you enough.

  • @get_outdoors
    @get_outdoors 2 года назад +1

    First time user downloading from the internet, thank you so much 😊

  • @suli976
    @suli976 8 месяцев назад +2

    that was really helpful, I did not know that it is case sensitive

  • @carlosdavidfalconi599
    @carlosdavidfalconi599 2 года назад +1

    The type of video that cures headaches. Thank you!

  • @hemanthkumar8129
    @hemanthkumar8129 4 года назад +3

    i just have no words for your great explanation of everything in this video keep it up

  • @palrishabhFoundation
    @palrishabhFoundation 2 года назад +2

    It helped me solve the issue, it was much easier than going to GITHUB and installing the library. Thankyou

  • @annayevchun3519
    @annayevchun3519 Год назад +2

    Thank you so much, the scenario 2 worked out for us perfectly! My son tried to deal it on his own because it was written on the kit 10+, but looks like it's 30+ hahah. The file in our case was called, say XXX.h, while the folder with the file was XXX-ver.3.h... Have no idea why the authors decided to name the directory differently but it cost us 2 hours to find the answer. Thanks again, you really helped!

  • @Axel-zg8yc
    @Axel-zg8yc 4 года назад +7

    THANK YOU SO MUCH! You're amazing! You make everything so simple and can help people like me who are new to this understand!

  • @ahmadyusof4071
    @ahmadyusof4071 Год назад +2

    Can't describe my word , All night try to fix....thx for this video for changing my life, i can sleep ,,my heart began cold. i having bright ftuture

  • @khiemanghoang4195
    @khiemanghoang4195 Год назад

    I am Vietnamese. I am glad to watch your this video. Thank you so much ! .

  • @benjamimpedro8503
    @benjamimpedro8503 3 года назад +1

    thank you very much, so now im able to run my program correctly. we do need youtubers like you, may god bless you.

  • @tantuniswindler7087
    @tantuniswindler7087 Год назад +1

    dude thank you so much i finally finished my school project. im in high school and this was my first project you helped me so much have a good day

  • @chimpspecialist
    @chimpspecialist 4 года назад +5

    I just found another reason! Look under Tools and make sure you have the right board checked. If you don't, the Arduino IDE won't see the libraries appropriate for your board.

  • @basshuntet6128
    @basshuntet6128 4 года назад +3

    You are a legend! Very nice and easy to understand. Btw how do you put the command into arduino nano? I'm a beginner here

  • @matsudaindustries2530
    @matsudaindustries2530 2 года назад +1

    Man I owe you a couple beers, been stuck with this problem for hours, I'm a novice but I realized how silly the problem was and how I didn't think of that ( 2nd solution) thank you very much

    • @programmingelectronics
      @programmingelectronics  2 года назад +1

      So glad it helped! Sometimes I think it’s the small problems that trip me up the most!

  • @barondebug
    @barondebug 3 года назад +2

    Being very new to this and what I have just completed. This video helped me complete the last stepping stone to my project and is now alive lol. Fantastic thank you for posting this.

  • @nemonims7241
    @nemonims7241 Год назад +2

    THANK YOU SO MUCH!

  • @takeraparterer
    @takeraparterer 3 года назад +3

    still does not work, and the file exists. please help. the name is fontALL

  • @rawana356
    @rawana356 3 года назад +4

    Great explanation. Yet, I already uploaded the libraries and let the software add (include ) to make sure there is no misspelling, however, the error still appears. How could I fix it?

  • @高宗煒-b6c
    @高宗煒-b6c 2 года назад +1

    Hello, thank u your video. I learn of several knowledge. But there is still a bit of trouble. I cannot add the library . Hope u would help me. sincerely thank u

  • @sharppixpencilart
    @sharppixpencilart 3 года назад +1

    Keep it up bro good luck for your future

  • @butterfly.bibobu
    @butterfly.bibobu Год назад +1

    THIS SAVED ME, THANK YOU

  • @yadusolparterre
    @yadusolparterre 4 года назад +13

    the real video starts at 4:30
    You could have made a 1- minute video instead of 11 minute. But apart from that, it's good content.

  • @pranavgowd953
    @pranavgowd953 4 года назад +1

    Greatest video I have seen. It clarified all doubts I had. Thank you so much brooooo!

  • @anakarinaglamour191
    @anakarinaglamour191 4 года назад +2

    Thanks, Thanks, Thanks. You don't know how much I was needing this kind of explanation.

  • @guavajuice4918
    @guavajuice4918 3 года назад +2

    Sir I would like to thank you for doing this video. it has worked. I was trying to upload but i had not downloaded the library thanks it worked you deserve five star.
    keep doing what you doing ! let me stop emotion got me writing !!!!! but thanks

  • @3flyingkitty3
    @3flyingkitty3 3 года назад +4

    Thank you, I kept getting stuck on this! Now I know!

  • @selflearning9244
    @selflearning9244 4 года назад +2

    Thanks a lot. You have helped me with my first few steps towards working with Arduino. Again thank you

  • @vaishnanandpuppala8585
    @vaishnanandpuppala8585 4 года назад +1

    Thanks for the video it's really and really helpful

  • @SantaDragon
    @SantaDragon 2 года назад +1

    7:25 helped me. Thanks!

  • @novarampage69
    @novarampage69 5 лет назад +2

    Hi i have seen you lots of video and it inspires me but today i am getting an issue when i uploded a program which has #include data.h file but in error it shows that no such file what can i do plz provide me a great solution with explanation

  • @stiefbeen22
    @stiefbeen22 5 лет назад +3

    In the first include brackets are used in the second stringquotes. Perhaps you could mention the difference?

    • @chimpspecialist
      @chimpspecialist 4 года назад

      When in quotes, the referenced and the referencing file are in the same directory. I'm a noob but I think that's right.

    • @ee_16_sourishhalder2
      @ee_16_sourishhalder2 3 года назад

      Actually in c programming if you use an in built header file we use brackets.
      Ex:#include
      But if we want to use our own header file made by us we use
      " "
      Like #include"my header.h".
      Hope this helps.

  • @ScottFerguson16
    @ScottFerguson16 2 года назад +1

    I've been trying to upload a library (MaxMatrix.h seems like a common library use with led matrix boards) but I keep getting greeted with an error message saying [] Error: no sketch name [example] Error: no ino file. Do you know what I can do to fix this? I just don't know what wrong.

  • @somnukar8946
    @somnukar8946 3 года назад +2

    Really great and very helpful, Thank you so much.

  • @khaledayasmin272
    @khaledayasmin272 2 года назад +1

    thank you. the information was really helpful

  • @Webprof68
    @Webprof68 2 года назад +1

    Oh my goodness. YOU ARE AMAZING. I am from germany and sorry for my bad english. but would i hve this problem with this error in your video. I look it your video and i think:
    " with my little english i dont unterstand nothing from this complicated stuff". But you tell it and explain it so easy that every stupid guy ( ME ) understand that. Thank you so much for that video. greetings from germany from FRANKIE

  • @126abarth
    @126abarth 3 года назад +1

    Thank you, for me as a beguinner helped a lot. I was stuck not knowing what to do.

  • @mr.bubbles2039
    @mr.bubbles2039 4 года назад +2

    Thank you so much I've been stuck on that problem for days

  • @android4cg
    @android4cg 3 года назад

    Thanks! Really great and helpful video! Anyhow i have the issue that i found arduino on Github and beside the code also the *.h (pgmstrings.h) file is available. But how to add the *.h file manually to the Arduino IDE so that the file is found for compiling? Unfortunately there is no full zip library available.

  • @harshmishratechnology4403
    @harshmishratechnology4403 2 года назад +1

    Thank you sir for solving my problem

  • @stevenbond2891
    @stevenbond2891 Год назад +1

    Thank you. Very new to the sketch scene. You were right with my error. I was missing a library. Didn't know they were a thing. But now I do. 😀 👍

  • @aliegebozkurt4050
    @aliegebozkurt4050 Год назад +1

    Thank you so much! You helped a lot!

  • @captainprototype187
    @captainprototype187 3 года назад +1

    after3 weeks of trying, this makes sense of most things Ive tried since.

  • @stevesonntag3142
    @stevesonntag3142 4 года назад +1

    In one library example, the name was enclosed in < >, and the other example was enclosed in " ". You didn't mention that and I found it confusing. I assume those are interchangeable when calling up libraries?

    • @ee_16_sourishhalder2
      @ee_16_sourishhalder2 3 года назад

      Actually in c/c++ programming if you use an in built header file we use brackets.
      Ex:#include
      But if we want to use our own header file made by us we use
      " "
      Like #include"my header.h".
      Hope this helps.

  • @Calvine_The_Rockers
    @Calvine_The_Rockers 2 года назад +1

    5:40 yes that's right. when I checked it again, I got a misspelling in my code. Thank you for the explanation sir. Very helpful

  • @matthewtarvin3675
    @matthewtarvin3675 2 года назад +2

    I felt like it was going to be something trivial and I'd end up feeling dumb. Lol. I didn't have the MFRC522 file in my library and wasn't sure where to access it. Thanks for lending a helping hand!

    • @programmingelectronics
      @programmingelectronics  2 года назад

      You're in good company! Every time I code I feel like I do a lot of dumb stuff :)

  • @oigreS_serolF_12.
    @oigreS_serolF_12. 2 года назад +1

    Thank you so much, you help me so much!!!
    Sorry for my english, im not a native speaker.

  • @wertawonka
    @wertawonka 2 года назад +1

    Thank you so so much. This has switched a light on for me. Now i can play 😁😁😁

  • @EvoGamer0380
    @EvoGamer0380 2 года назад +1

    Thank you soo much for this beautiful information .

  • @DodgyBrothersEngineering
    @DodgyBrothersEngineering 3 года назад

    Quick question about the .zip file. Does it copy if from the downloads folder to the library folder? and what happens if you don't have a zip file, do you have to zip it, or can you just copy raw files across?

  • @stevesonntag3142
    @stevesonntag3142 4 года назад +1

    Love your videos. You have a great teaching style.

  • @alaafantazia7718
    @alaafantazia7718 4 года назад +4

    I have probleem for several days. What I can do 😭😭😭
    For this library. We don't have zip file

  • @rizkyzaelan220
    @rizkyzaelan220 2 года назад +1

    awasome bro, I'm waiting for an explanation post about programming internet of thing

  • @thestarkfan5429
    @thestarkfan5429 2 года назад

    i'm facing this issue while using the blynk app... can you suggest something? I followed all your steps still I'm getting same error... what do you suggest?

  • @yasaswinigummadi8039
    @yasaswinigummadi8039 4 года назад +1

    Thanks a lot.... This really helped me a lot.

  • @sarba85528
    @sarba85528 5 лет назад +4

    After trying everything, including the Zip Library, the last thing I got is : "specified folder/zip doesn't contain a valid library". But again, thank you for your help!

    • @tushyaneilrudr5619
      @tushyaneilrudr5619 4 года назад

      dude if you had selected the file without extracting it then this error message wouldn't have come

  • @AllAboutCeleste
    @AllAboutCeleste 4 года назад +1

    thank you for this. It really helps!

  • @ayushshukla1258
    @ayushshukla1258 3 года назад +1

    Can you make the any more longer!

  • @MightyMike
    @MightyMike 4 года назад +2

    this ia my first try with copy-paste code, and you saved me tons of hours and sweat. Thank you! o7

  • @allthingssummary9958
    @allthingssummary9958 3 года назад

    you video was awesome . how can i add a library to tinkercad that isn't availaible ?

  • @SakibulIslam--
    @SakibulIslam-- 2 года назад +1

    thank u , love from bangladesh

  • @INFOMIXOFFICIAL
    @INFOMIXOFFICIAL 2 года назад +1

    thanks bro it's very useful to me

  • @Noet-bm2vg
    @Noet-bm2vg 6 месяцев назад

    Do I need to unzip the library to make the sketch work well? Bc i downloaded the lib and install, but it still showed me that error.

  • @animangafan342
    @animangafan342 Год назад

    so pitches.h library loads fine for the example code however it gives this error when i try to make my own code on a separate new project

  • @mikelee1906
    @mikelee1906 2 года назад +1

    I am familiar with everything you stated in the video. However it did not address my reoccurring problem, When I get an error for a missing file such as kick_int8.h No such file or
    directory, I add the needed file in a tab. But it is never found. I keep on
    getting the same error even though it is in the sketch. I have tried to resave.
    Tried to move the files to the arduino sketch folder. Nothing works. Anyone
    know why this is? Drives me crazy I can see it right there. Why does the IDE not
    compile it? I deal with making musical instruments so usually it is a instrument.h I am missing.

    • @rajeshmassab
      @rajeshmassab 10 месяцев назад

      Same problem here, but no solution

  • @muradhasan5984
    @muradhasan5984 3 года назад +1

    THANKS BOSS .IT,S VERY HELPFUL VEDIO

  • @ShwetaSingh-uo8nw
    @ShwetaSingh-uo8nw 4 года назад +1

    Please make a video of gcc (sama problem)

  • @lipinghe40
    @lipinghe40 4 года назад +2

    Great video, I learned a lot. Thank you and GOD bless.

  • @TheGibsonmark
    @TheGibsonmark 5 лет назад +1

    Just got to write and say thanks. I know it is stupid but 3 hours looking for something when all along it was merely a typo error.

  • @worrierhazard499
    @worrierhazard499 2 года назад +1

    Very good Video. Thanks for help

  • @victoramerico5008
    @victoramerico5008 2 года назад +1

    Thank you so much! I love you

  • @undercover_cat
    @undercover_cat 4 года назад +9

    This dude tried to make a 5 minute video in an exhausting 11-minute video just to make money out of many minutes of viewship. Damn !

    • @undercover_cat
      @undercover_cat 4 года назад +1

      @ Completely agree with what you're saying. Although as far as I am concerned, a troubleshooting video as this was should be brief rather than extended. The majority of the people didn't come here because they love this person's content . Instead they came here to find a quick solution to their problem as I did ; and oh boy it was literally if not exhausting, then boring to wait for the solution to come. Additionally, I would say that the phrase : 'Easy fixes' predisposes you for a short and pleasant video, so the actual content has to correspond to the title.

  • @tushyaneilrudr5619
    @tushyaneilrudr5619 4 года назад +1

    This helped a lot

  • @wahibblt1598
    @wahibblt1598 4 года назад +2

    you're a life saver thumb up!!! :)

  • @leonidasapostolidis4898
    @leonidasapostolidis4898 3 года назад

    Hi! I tried these 2 ways to fix my problem ("Shal.h") but it didn't work, so do you have another way to fix it?

  • @ammarabbas520
    @ammarabbas520 4 года назад

    Many thanks dear, but i still have [ error Error compiling for board NodeMCU 1.0 (ESP-12E Module).] i install the board and library???

  • @gangeshwarmaurya147
    @gangeshwarmaurya147 3 года назад +1

    thank u so much..it help me lot

  • @DodgyBrothersEngineering
    @DodgyBrothersEngineering 3 года назад

    The one that catches me out from time to time is using #include when I should have used #include "SDHT.h"

  • @AsadSiddiqui0104
    @AsadSiddiqui0104 11 месяцев назад +1

    I am very Thankful to you brother 😁😁

  • @kimberlycarreon1129
    @kimberlycarreon1129 3 года назад

    Good day sir, I was wondering about the grbl file, when I search it to the Arduino libraries, nothing comes out, and the only port I've got to choose for my Arduino is COM3, am i missing something sir or there are step by step procedures to get away from grbl fatal error: No such file or directorgy, thank you sir and God bless you

  • @sibaramdatta5625
    @sibaramdatta5625 3 года назад

    Sir please help me to install the "Rf24 Audio h" library. It is actually in the page where no download option there but raw of this file but trying to add not successful. Sir please answer me.

  • @sophiebolinski665
    @sophiebolinski665 3 года назад

    Hi, I have the error message if I want to include something from the driver folder, do you know something about that?
    #include "driver/i2s.h" -> no such file or directory

  • @pavansai3602
    @pavansai3602 2 года назад

    Hello could you please help me out with this error
    Arduino: 1.8.19 (Mac OS X), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
    exec: "python": executable file not found in $PATH
    Error compiling for board ESP32 Dev Module.
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  • @khaledgame
    @khaledgame 2 года назад +1

    Thank you soo much it worked 5/5

  • @3twic
    @3twic 2 года назад +1

    when i type in the libary i need ( RTClib.h ) it is not getting colored. In the video I saw the code the libary was colored blue. pls help ps. I downloaded the libary already so idk whats the problem

    • @programmingelectronics
      @programmingelectronics  2 года назад

      Quick question, does the library work for you even though the coloring is not there? Or does the library not work?

    • @3twic
      @3twic 2 года назад

      @@programmingelectronics i think the library is working

  • @Mewdrew4K
    @Mewdrew4K 3 года назад

    your a life saver

  • @drelectronics13
    @drelectronics13 3 года назад +1

    Thankyou so much god bless u

  • @naveendadwal1110
    @naveendadwal1110 3 года назад

    Thank you buddy ❤️
    Helped a lot

    • @programmingelectronics
      @programmingelectronics  3 года назад

      Glad it was helpful! Are there any specific Arduino topics you would like covered?

  • @meriemanoo3475
    @meriemanoo3475 Год назад

    thank you very much; this video is very useful; it helped me a lot. I downloaded the libraries via github as you did

  • @the-tech-guy7127
    @the-tech-guy7127 Год назад

    Hi I have been try to Checkm8 on Mac
    But it keep getting
    error "never include usbhost.h directly; include usb.h instead
    Everything seems to be in place can’t crack it

  • @DanialADHOfficial
    @DanialADHOfficial Год назад

    Compilation error: FS.h: No such file or directory please help me what is FS.h library

  • @michaelstraub9085
    @michaelstraub9085 5 лет назад +1

    My software is completely gone! I had the new marlin uploaded and then when I was in the settings switch I settings I hit transfer on the marlin file at the beginning and my screens now just blank!

  • @jasonstation
    @jasonstation Год назад +1

    Re-installing the board from boards manager seemed to get mine working again.

  • @mohamadyuzril6224
    @mohamadyuzril6224 Год назад

    in my case, the library missing was "esp_arduino_version.h". can you help solve this sir?

  • @Wildwildmint
    @Wildwildmint 2 года назад +1

    this really halped thx dude