Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compiling for board Arduino Nano #8

Open
ghost opened this issue Aug 5, 2017 · 3 comments
Open

error compiling for board Arduino Nano #8

ghost opened this issue Aug 5, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 5, 2017

desktop 08 05 2017 - 17 55 43 03

Hi i am mostly new to arduino and this is my first real "project". I have purchased an arduino nano and an Ethernet shield, however when i try to upload the sketch it says error compiling for board arduino nano. my arduino is most likely fake, (since i got it for £2) yet i can successfully upload the "blink" example without any issues.
The fake board has an ATmega328 chip on it and CH340G on the bottom.

The error message says:

Arduino: 1.8.2 (Windows 10), Board: "Arduino Nano, ATmega328"

A:\programs\arduino\arduino-builder -dump-prefs -logger=machine -hardware A:\programs\arduino\hardware -tools A:\programs\arduino\tools-builder -tools A:\programs\arduino\hardware\tools\avr -built-in-libraries A:\programs\arduino\libraries -libraries A:\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10802 -build-path C:\Users\COLEFO1\AppData\Local\Temp\arduino_build_461032 -warnings=none -build-cache C:\Users\COLEFO1\AppData\Local\Temp\arduino_cache_920256 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=A:\programs\arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=A:\programs\arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=A:\programs\arduino\hardware\tools\avr -verbose C:\Users\cole foster\Documents\my documents\cole foster\ArduinoARPspoof-master\ARPspoofer\ARPspoofer.ino
A:\programs\arduino\arduino-builder -compile -logger=machine -hardware A:\programs\arduino\hardware -tools A:\programs\arduino\tools-builder -tools A:\programs\arduino\hardware\tools\avr -built-in-libraries A:\programs\arduino\libraries -libraries A:\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10802 -build-path C:\Users\COLEFO1\AppData\Local\Temp\arduino_build_461032 -warnings=none -build-cache C:\Users\COLEFO1\AppData\Local\Temp\arduino_cache_920256 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=A:\programs\arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=A:\programs\arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=A:\programs\arduino\hardware\tools\avr -verbose C:\Users\cole foster\Documents\my documents\cole foster\ArduinoARPspoof-master\ARPspoofer\ARPspoofer.ino
Using board 'nano' from platform in folder: A:\programs\arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: A:\programs\arduino\hardware\arduino\avr
Detecting libraries used...
"A:\programs\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IA:\programs\arduino\hardware\arduino\avr\cores\arduino" "-IA:\programs\arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\COLEFO1\AppData\Local\Temp\arduino_build_461032\sketch\ARPspoofer.ino.cpp" -o "nul"
"A:\programs\arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IA:\programs\arduino\hardware\arduino\avr\cores\arduino" "-IA:\programs\arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\COLEFO
1\AppData\Local\Temp\arduino_build_461032\sketch\ARPspoofer.ino.cpp" -o "C:\Users\COLEFO~1\AppData\Local\Temp\arduino_build_461032\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\cole foster\Documents\my documents\cole foster\ArduinoARPspoof-master\ARPspoofer\ARPspoofer.ino:8:22: fatal error: enc28j60.h: No such file or directory

#include <enc28j60.h>

                  ^

compilation terminated.

exit status 1
Error compiling for board Arduino Nano.

@spacehuhn
Copy link
Owner

Looks like you forgot to install the library:

2. Install library

You will need to add the ethercard library in Arduino.
Ho to do that is explained here: https://github.com/jcw/ethercard

@ghost
Copy link
Author

ghost commented Aug 6, 2017

Yeah thanks man for responding so fast but i am sorry to waste your time. Earlier i thaught i installed the library but i only downloaded it, however i have done it this time and it works great!
Thanks for the amazing projects man you really inspired me into using arduino!

@clement6665
Copy link

Hi i am mostly new to arduino and this is my first real "project". I have purchased an arduino nano
however when i try to upload the sketch it says error compiling
Arduino: 1.8.10 (Windows 7), Board: "Arduino Nano, ATmega328P"

Multiple libraries were found for "SoftwareSerial.h"
Car_accident (3):2:10: error: TinyGPS.h: No such file or directory

Used: C:\Program
#include <TinyGPS.h>

      ^~~~~~~~~~~

compilation terminated.

exit status 1
TinyGPS.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

please show me the out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants