Arduino Polska Forum

Pełna wersja: arduino mega 2560 Chińskie problem z wgraniem marlina
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Stron: 1 2
Witam posiadam problem z wgraniem oprogramowania Marlin do mojego (Chińskiego zamiennika Arduino mega 2560. Wyskakuje mi błąd Błąd kompilacji dla płytki Arduino/Genuino Mega or Mega 2560. I niestety nigdzie nie mogę znaleźć odpowiedzi na ten błąd. załączam pliki marlina już gotowe do wgrania przygotowane przez jednego z użytkowników.
marlin: https://mega.nz/#!HY90jYrY!EJLAijbGGU18Q...K6NRtJQhRE
(16-11-2017, 15:20)Jocik napisał(a): [ -> ]Wyskakuje mi błąd Błąd kompilacji dla płytki Arduino/Genuino Mega or Mega 2560. I niestety nigdzie nie mogę znaleźć odpowiedzi na ten błąd.
Jeśli wyskakuje błąd kompilacji to nie jest to problem z wgraniem tylko z kompilacją.
Dlaczego nie podałeś tego błędu?
Przypuszczam że brakuje biblioteki ale odpowiedź na to jest w komunikacie błędu.
ok mój błąd nie rozwinąłem błędu ale nadal nie wiem jakiego pliku potrzebuje. to jest pełen błąd:
C:\Users\Jocik\Desktop\Marlin\Marlin.ino:51:110: fatal error: U8glib.h: No such file or directory

#include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)

^

compilation terminated.

exit status 1
Błąd kompilacji dla płytki Arduino/Genuino Mega or Mega 2560.
z góry dzięki za poświęcony czas
(16-11-2017, 20:13)Jocik napisał(a): [ -> ]fatal error: U8glib.h: No such file or directory

    #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)
Przecież masz wyraźnie napisane czego brakuje.
ściągnij bibliotekę, zainstaluj i kompilacja przejdzie prawidłowo.
ok wgrałem ale teraz coś takiego i wklejam tylko część bo więcej sie nie mieści

Kod:
libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

c:/users/jocik/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initHWSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initI2C(_u8g_dev_t*, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::init8Bit(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::init8BitFixedPort(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initRW8Bit(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':

(.text+0x0): multiple definition of `ce_FindPawnPiece'

sketch\src\clib\chessengine.c.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':

(.text+0x0): multiple definition of `mnu_pos'

sketch\src\clib\chessengine.c.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':

(.text+0x0): multiple definition of `mnu_Step'

sketch\src\clib\chessengine.c.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':
Jaka wersja arduino IDE?
Kompilowałem to na 1.8.4. i było OK.
Dołącz log z kompilacji jako załącznik.
ja akurat mam wersje 1.8.5 więc pobiorę 1.8.4 i zobaczę czy zadziała.
sory ale nie wiem czym jest log czy to jest ta główna strona? jeśli tak to proszę
Kod:
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*/

/**
* About Marlin
*
* This firmware is a mashup between Sprinter and grbl.
*  - https://github.com/kliment/Sprinter
*  - https://github.com/simen/grbl/tree
*
* It has preliminary support for Matthew Roberts advance algorithm
*  - http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
*/

/* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */
/* Use this file to help the Arduino IDE find which Arduino libraries are needed and to keep documentation on GCode */

#include "MarlinConfig.h"

#if ENABLED(ULTRA_LCD)
#if ENABLED(LCD_I2C_TYPE_PCF8575)
  #include <Wire.h>
  #include <LiquidCrystal_I2C.h>
#elif ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)
  #include <Wire.h>
  #include <LiquidTWI2.h>
#elif ENABLED(LCM1602)
  #include <Wire.h>
  #include <LCD.h>
  #include <LiquidCrystal_I2C.h>
#elif ENABLED(DOGLCD)
  #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)
#else
  #include <LiquidCrystal.h> // library for character LCD
#endif
#endif

#if HAS_DIGIPOTSS
#include <SPI.h>
#endif

#if ENABLED(DIGIPOT_I2C)
#include <Wire.h>
#endif

#if ENABLED(HAVE_TMCDRIVER)
#include <SPI.h>
#include <TMC26XStepper.h>
#endif

#if ENABLED(HAVE_TMC2130DRIVER)
#include <SPI.h>
#include <Trinamic_TMC2130.h>
#endif

#if ENABLED(HAVE_L6470DRIVER)
#include <SPI.h>
#include <L6470.h>
#endif
Jako załącznik masz podać to co w poprzednim poście ale całość!!! Skopiuj zawartość do pliku i dołącz jako załącznik!!!
A jeśli nie wiesz co zrobić to proponuje przerobić jakiś kurs arduino i dopiero wtedy tu wrócić.
mam nadzieję ze o to chodzi
Stron: 1 2