Arduino ile makefile derleyemiyorum

Reklam Alanı #5

emre205

Yeni üye
Katılım
26 Eki 2018
Mesajlar
29
Tepkime puanı
1
Puanları
1
Konum
Erzurum
Merhaba, arduino projemi makefile ile derlemek istiyorum. Ancak değişkenlerle ilgili sorunlar oluşuyor. Konuya tam hakim olamadığım için kaynak arıyorum fakat yeterli kaynakta bulamıyorum açıkçası. Hata kodu aşağıdaki gibi. Sizce sorunun kaynağı ne olabilir?

Kod:
    -------------------------
    Arduino.mk Configuration:
    - [AUTODETECTED] CURRENT_OS = LINUX
    - [COMPUTED] ARDMK_DIR = /usr/share/arduino (relative to Common.mk)
    - [USER] ARDUINO_DIR = /usr/share/arduino
    - [AUTODETECTED] ARDUINO_VERSION = 105
    - [DEFAULT] ARDUINO_SKETCHBOOK = /sketchbook
    - [BUNDLED] AVR_TOOLS_DIR = /usr/share/arduino/hardware/tools/avr (in Arduino distribution)
    - [COMPUTED] ARDUINO_LIB_PATH = /usr/share/arduino/libraries (from ARDUINO_DIR)
    - [DEFAULT] ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino/cores/arduino
    - [COMPUTED] ARDUINO_VAR_PATH = /usr/share/arduino/hardware/arduino/variants (from ARDUINO_DIR)
    - [COMPUTED] BOARDS_TXT = /usr/share/arduino/hardware/arduino/boards.txt (from ARDUINO_DIR)
    - [DEFAULT] USER_LIB_PATH = /sketchbook/libraries (in user sketchbook)
    - [USER] BOARD_TAG = uno
    - [COMPUTED] OBJDIR = build-uno (from BOARD_TAG)
    - [ASSUMED] MONITOR_BAUDRATE = 9600
    - [DEFAULT] OPTIMIZATION_LEVEL = s
    - [DEFAULT] MCU_FLAG_NAME = mmcu
    - [DEFAULT] CFLAGS_STD = -std=gnu99
    - [AUTODETECTED] Size utility: AVR-aware for enhanced output
    -
    - ARDUINO_LIBS =
    - [SYSTEM] Wire
    - [SYSTEM] EEPROM
    - [SYSTEM] Esplora
    - [SYSTEM] Ethernet
    - [SYSTEM] Firmata
    - [SYSTEM] GSM
    - [SYSTEM] LiquidCrystal
    - [SYSTEM] Robot_Control
    - [SYSTEM] Robot_Motor
    - [SYSTEM] SD
    - [SYSTEM] Servo
    - [SYSTEM] SoftwareSerial
    - [SYSTEM] SPI
    - [SYSTEM] Stepper
    - [SYSTEM] TFT
    - [SYSTEM] WiFi
    - [SYSTEM] Wire
    - [SYSTEM] Wire/utility
    - [SYSTEM] Ethernet/utility
    - [SYSTEM] Robot_Control/utility
    - [SYSTEM] SD/utility
    - [SYSTEM] TFT/utility
    - [SYSTEM] WiFi/utility
    - [SYSTEM] Wire/utility
    - [COMPUTED] BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino/bootloaders (from ARDUINO_DIR)
    -------------------------
    /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=105 -I. -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Wire -I/usr/share/arduino/libraries/EEPROM -I/usr/share/arduino/libraries/Esplora -I/usr/share/arduino/libraries/Ethernet -I/usr/share/arduino/libraries/Firmata -I/usr/share/arduino/libraries/GSM -I/usr/share/arduino/libraries/LiquidCrystal -I/usr/share/arduino/libraries/Robot_Control -I/usr/share/arduino/libraries/Robot_Motor -I/usr/share/arduino/libraries/SD -I/usr/share/arduino/libraries/Servo -I/usr/share/arduino/libraries/SoftwareSerial -I/usr/share/arduino/libraries/SPI -I/usr/share/arduino/libraries/Stepper -I/usr/share/arduino/libraries/TFT -I/usr/share/arduino/libraries/WiFi -I/usr/share/arduino/libraries/Wire -I/usr/share/arduino/libraries/Wire/utility -I/usr/share/arduino/libraries/Ethernet/utility -I/usr/share/arduino/libraries/Robot_Control/utility -I/usr/share/arduino/libraries/SD/utility -I/usr/share/arduino/libraries/TFT/utility -I/usr/share/arduino/libraries/WiFi/utility -I/usr/share/arduino/libraries/Wire/utility -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions main.cpp -o build-uno/main.o
    main.cpp: In function 'void setup()':
    main.cpp:17:16: error: 'OUTPUT' was not declared in this scope
    pinMode(led, OUTPUT);
    ^
    main.cpp:17:22: error: 'pinMode' was not declared in this scope
    pinMode(led, OUTPUT);
    ^
    main.cpp: In function 'void loop()':
    main.cpp:23:30: error: 'analogWrite' was not declared in this scope
    analogWrite(led, brightness);
    ^
    main.cpp:33:11: error: 'delay' was not declared in this scope
    delay(30);
    ^
    make: *** [build-uno/main.o] Error 1
 

Reklam Alanı #6

Reklam Alanı #1

Yeni konular

Reklam Alanı #2

Üst