Trinket servo compiling error

Post test messages here

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Wrightjk284
 
Posts: 6
Joined: Wed Feb 03, 2016 1:52 pm

Trinket servo compiling error

Post by Wrightjk284 »

I am a newbie to Trinket and have copied the code in the Trinket and Gemma Servo Control tutorial. I am getting a compiling error and don't know how to fix it. The message is:
Arduino: 1.6.7 (Windows 7), Board: "Adafruit Trinket 8MHz"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Owner\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Owner\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Owner\Documents\Arduino\libraries" -fqbn=adafruit:avr:trinket3 -ide-version=10607 -build-path "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Owner\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Owner\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Owner\Documents\Arduino\libraries" -fqbn=adafruit:avr:trinket3 -ide-version=10607 -build-path "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Owner\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.5\variants\tiny8" "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp\sketch\Trinket_Library__Servo_Code.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_TRINKET3 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Owner\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.5\variants\tiny8" "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp\sketch\Trinket_Library__Servo_Code.ino.cpp" -o "C:\Users\Owner\AppData\Local\Temp\build09f275e0bf69cb40775c32e6ff3ae63a.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino:27:32: fatal error: Adafruit_SoftServo.h: No such file or directory

#include "Adafruit_SoftServo.h"

^

compilation terminated.

exit status 1
Error compiling.

Can anyone help?

Thank you!

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Trinket servo compiling error

Post by adafruit_support_bill »

C:\Users\Owner\Documents\Arduino\Trinket\Trinket_Library__Servo_Code\Trinket_Library__Servo_Code.ino:27:32: fatal error: Adafruit_SoftServo.h: No such file or directory
Have you installed the library according to the the instructions here http://learn.adafruit.com/adafruit-all- ... nstall-use

User avatar
Wrightjk284
 
Posts: 6
Joined: Wed Feb 03, 2016 1:52 pm

Re: Trinket servo compiling error

Post by Wrightjk284 »

That worked!
I had to install the library in the right place. Thank you!

Locked
Please be positive and constructive with your questions and comments.

Return to “Test Message Forum (closed)”