1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Solved RepRapDiscount Full Ghraphic Controller compiling error

Discussion in 'Troubleshooting' started by Muhammad Amir, Nov 12, 2016.

Thread Status:
Not open for further replies.
  1. Muhammad Amir

    Muhammad Amir Member

    Joined:
    Aug 15, 2016
    Messages:
    100
    Likes Received:
    13
    i have plug everything as youtube videos and other help i found not issue us when i plug USB screen show light only.

    after adding u8glib library when im compiling im getting this error

    -------------------------------------------------------











    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Program Files (x86)\Arduino\libraries\Auto_Level_7_17_516inch_\Auto_Level_7_17_516inch_.ino:33:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Program Files (x86)\Arduino\libraries\Auto_Level_7_17_516inch_\Auto_Level_7_17_516inch_.ino:33:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Program Files (x86)\Arduino\libraries\Auto_Level_7_17_516inch_\Auto_Level_7_17_516inch_.ino:33:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Program Files (x86)\Arduino\libraries\Auto_Level_7_17_516inch_\Auto_Level_7_17_516inch_.ino:33:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Program Files (x86)\Arduino\libraries\Auto_Level_7_17_516inch_\Auto_Level_7_17_516inch_.ino:33:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\thermistortables.h:4,

    from sketch\Configuration.h:710,

    from C:\Program Files (x86)\Arduino\libraries\Auto_Level_7_17_516inch_\Auto_Level_7_17_516inch_.ino:33:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

    #define X_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:445:0: note: this is the location of the previous definition

    #define X_MAX_PIN 2

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

    #define Y_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:451:0: note: this is the location of the previous definition

    #define Y_MAX_PIN 15

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

    #define Z_MAX_PIN -1

    ^

    In file included from sketch\Marlin.h:23:0,

    from sketch\Marlin_main.cpp:30:

    sketch\pins.h:457:0: note: this is the location of the previous definition

    #define Z_MAX_PIN 19

    ^

    sketch\Marlin_main.cpp:2090:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

    LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");

    ^

    In file included from sketch\Marlin_main.cpp:44:0:

    cardreader.h:56: error: 'LONG_FILENAME_LENGTH' was not declared in this scope

    char longFilename[LONG_FILENAME_LENGTH];

    ^

    cardreader.h:60: error: 'SdFile' does not name a type

    SdFile root,*curDir,workDir,workDirParents[MAX_DIR_DEPTH];

    ^

    cardreader.h:62: error: 'Sd2Card' does not name a type

    Sd2Card card;

    ^

    cardreader.h:63: error: 'SdVolume' does not name a type

    SdVolume volume;

    ^

    cardreader.h:64: error: 'SdFile' does not name a type

    SdFile file;

    ^

    cardreader.h:80: error: 'SdFile' has not been declared

    void lsDive(const char *prepend,SdFile parent);

    ^

    sketch\cardreader.h: In member function 'bool CardReader::isFileOpen()':

    cardreader.h:43: error: 'file' was not declared in this scope

    FORCE_INLINE bool isFileOpen() { return file.isOpen(); }

    ^

    sketch\cardreader.h: In member function 'int16_t CardReader::get()':

    cardreader.h:45: error: 'file' was not declared in this scope

    FORCE_INLINE int16_t get() { sdpos = file.curPosition();return (int16_t)file.read();};

    ^

    sketch\cardreader.h: In member function 'void CardReader::setIndex(long int)':

    cardreader.h:46: error: 'file' was not declared in this scope

    FORCE_INLINE void setIndex(long index) {sdpos = index;file.seekSet(index);};

    ^

    sketch\cardreader.h: In member function 'char* CardReader::getWorkDirName()':

    cardreader.h:48: error: 'workDir' was not declared in this scope

    FORCE_INLINE char* getWorkDirName(){workDir.getFilename(filename);return filename;};

    ^

    sketch\Marlin_main.cpp: In function 'void set_bed_level_equation_lsq(double*)':

    sketch\Marlin_main.cpp:842:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

    planeNormal.debug("planeNormal");

    ^

    exit status 1
    'LONG_FILENAME_LENGTH' was not declared in this scope
     
  2. Muhammad Amir

    Muhammad Amir Member

    Joined:
    Aug 15, 2016
    Messages:
    100
    Likes Received:
    13
    Here is my config.h

    ------------------------------------
     

    Attached Files:

  3. danzca6

    danzca6 Well-Known Member

    Joined:
    Jul 27, 2015
    Messages:
    2,161
    Likes Received:
    1,077
    Fist issue I see in the configuration.h file is that you didn't comment out the following line. You need to add // at the very beginning of the line. You did define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER and that's good, but both REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER and REPRAP_DISCOUNT_SMART_CONTROLLER can't be defined at the same time. Try commenting out the line and see if it is still throwing any errors when you compile.

    #define REPRAP_DISCOUNT_SMART_CONTROLLER //robo
     
  4. Muhammad Amir

    Muhammad Amir Member

    Joined:
    Aug 15, 2016
    Messages:
    100
    Likes Received:
    13
    thanks for quick response now error changed :).. when im commenting
    #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
    Works fine.

    -----------------










    Build options changed, rebuilding all
    In file included from sketch\SdFile.h:27:0,

    from sketch\cardreader.h:8,

    from sketch\Marlin_main.cpp:44:

    SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

    struct fpos_t {

    ^

    In file included from sketch\Marlin.h:10:0,

    from sketch\Marlin_main.cpp:30:

    c:\program files (x86)\arduino\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

    __extension__ typedef long long fpos_t;

    ^

    exit status 1
    using typedef-name 'fpos_t' after 'struct'
     
  5. danzca6

    danzca6 Well-Known Member

    Joined:
    Jul 27, 2015
    Messages:
    2,161
    Likes Received:
    1,077
    I hate that error. Do a global search and replace across the whole sketch changing fpos_t to filepos_t. That struct name conflicts with a global library on the newer arduino libraries. Hopefully that will get you to compile.

    fpos_t err.PNG
     
    #5 danzca6, Nov 12, 2016
    Last edited: Nov 12, 2016
  6. Muhammad Amir

    Muhammad Amir Member

    Joined:
    Aug 15, 2016
    Messages:
    100
    Likes Received:
    13
    I don't know how should I thank you .... Thank you so .......... Much .. It's working I'm really happy and excited ...


    Sent from my iPhone using Tapatalk
     
  7. danzca6

    danzca6 Well-Known Member

    Joined:
    Jul 27, 2015
    Messages:
    2,161
    Likes Received:
    1,077
    Glad to hear you got it working. The LCD is a great addition to the Robo. You can change print speed on the fly when printing, pause the print to maybe add like a nut or other object, change filament during a print, change temps during print, and a lot more. Also printing via SD card is so much better than having your PC tied up printing and having an issue with communication mid print and it stuttering or killing the print. Enjoy and cheers!
     
    Muhammad Amir likes this.
Thread Status:
Not open for further replies.

Share This Page