newbie question Firmware ProW

Post Reply
giovanni.anfossy
Posts: 3
Joined: Sat May 20, 2017 4:11 am

newbie question Firmware ProW

Post by giovanni.anfossy » Tue Nov 19, 2019 9:51 pm

Hi,

I just put my hands on a ProW and somehow I manage to flush a standard Marlin FW to my i3 Pro W, and after uploading it the LCD went blank. I then tried to compile the ProW firmware I just downloaded from this website and still can not compile it. I've tried using Arduino 1.8.5, 1.8.10 and many other on a Mac with High Sierra and on other Mac with Catalina, both with same outcome.

This is the error I'm getting:

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

Code: Select all

Arduino:1.8.10 (Mac OS X), Tarjeta:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch/Marlin.h:23:0,
                 from sketch/Marlin_main.cpp:30:
sketch/pins.h:2956:0: warning: "X_MAX_PIN" redefined
 #define X_MAX_PIN          -1
 
sketch/pins.h:1363:0: note: this is the location of the previous definition
 #define X_MAX_PIN 24
 
sketch/pins.h:2957:0: warning: "Y_MAX_PIN" redefined
 #define Y_MAX_PIN          -1
 
sketch/pins.h:1369:0: note: this is the location of the previous definition
 #define Y_MAX_PIN 28
 
sketch/pins.h:2958:0: warning: "Z_MAX_PIN" redefined
 #define Z_MAX_PIN          -1
 
sketch/pins.h:1375:0: note: this is the location of the previous definition
 #define Z_MAX_PIN 32
 
In file included from sketch/Marlin.h:23:0,
                 from sketch/thermistortables.h:4,
                 from sketch/Configuration.h:792,
                 from /Users/giovanni/Documents/ProW/ProW.ino:33:
sketch/pins.h:2956:0: warning: "X_MAX_PIN" redefined
 #define X_MAX_PIN          -1
 
sketch/pins.h:1363:0: note: this is the location of the previous definition
 #define X_MAX_PIN 24
 
sketch/pins.h:2957:0: warning: "Y_MAX_PIN" redefined
 #define Y_MAX_PIN          -1
 
sketch/pins.h:1369:0: note: this is the location of the previous definition
 #define Y_MAX_PIN 28
 
sketch/pins.h:2958:0: warning: "Z_MAX_PIN" redefined
 #define Z_MAX_PIN          -1
 
sketch/pins.h:1375:0: note: this is the location of the previous definition
 #define Z_MAX_PIN 32
 
In file included from sketch/Marlin.h:23:0,
                 from sketch/SdFile.cpp:20:
sketch/pins.h:2956:0: warning: "X_MAX_PIN" redefined
 #define X_MAX_PIN          -1
 
sketch/pins.h:1363:0: note: this is the location of the previous definition
 #define X_MAX_PIN 24
 
sketch/pins.h:2957:0: warning: "Y_MAX_PIN" redefined
 #define Y_MAX_PIN          -1
 
sketch/pins.h:1369:0: note: this is the location of the previous definition
 #define Y_MAX_PIN 28
 
sketch/pins.h:2958:0: warning: "Z_MAX_PIN" redefined
 #define Z_MAX_PIN          -1
 
sketch/pins.h:1375:0: note: this is the location of the previous definition
 #define Z_MAX_PIN 32
 
In file included from sketch/Marlin.h:23:0,
                 from sketch/SdBaseFile.cpp:21:
sketch/pins.h:2956:0: warning: "X_MAX_PIN" redefined
 #define X_MAX_PIN          -1
 
sketch/pins.h:1363:0: note: this is the location of the previous definition
 #define X_MAX_PIN 24
 
sketch/pins.h:2957:0: warning: "Y_MAX_PIN" redefined
 #define Y_MAX_PIN          -1
 
sketch/pins.h:1369:0: note: this is the location of the previous definition
 #define Y_MAX_PIN 28
 
sketch/pins.h:2958:0: warning: "Z_MAX_PIN" redefined
 #define Z_MAX_PIN          -1
 
sketch/pins.h:1375:0: note: this is the location of the previous definition
 #define Z_MAX_PIN 32
 
sketch/Marlin_main.cpp:2667: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/SdFile.h:27:0,
                 from sketch/SdFile.cpp:23:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
 struct fpos_t {
        ^~~~~~
In file included from sketch/Marlin.h:10:0,
                 from sketch/SdFile.cpp:20:
/private/var/folders/1v/3bmtz0w53bvfnc0dtg7ctznw0000gn/T/AppTranslocation/1FFC6AD9-3911-4FEF-BECF-C7FDB019B833/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
 __extension__ typedef long long fpos_t;
                                 ^~~~~~
In file included from sketch/SdBaseFile.cpp:24:0:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
 struct fpos_t {
        ^~~~~~
In file included from sketch/Marlin.h:10:0,
                 from sketch/SdBaseFile.cpp:21:
/private/var/folders/1v/3bmtz0w53bvfnc0dtg7ctznw0000gn/T/AppTranslocation/1FFC6AD9-3911-4FEF-BECF-C7FDB019B833/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
 __extension__ typedef long long fpos_t;
                                 ^~~~~~
sketch/SdBaseFile.cpp: In member function 'void SdBaseFile::getpos(fpos_t*)':
SdBaseFile.cpp:298:8: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
   pos->position = curPosition_;
        ^~~~~~~~
SdBaseFile.cpp:299:8: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
   pos->cluster = curCluster_;
        ^~~~~~~
In file included from sketch/SdFile.h:27:0,
                 from sketch/cardreader.h:8,
                 from sketch/Marlin_main.cpp:44:
SdBaseFile.h:38:8: 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:
/private/var/folders/1v/3bmtz0w53bvfnc0dtg7ctznw0000gn/T/AppTranslocation/1FFC6AD9-3911-4FEF-BECF-C7FDB019B833/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
 __extension__ typedef long long fpos_t;
                                 ^~~~~~
In file included from sketch/Marlin.h:23:0,
                 from sketch/thermistortables.h:4,
                 from sketch/Configuration.h:792,
                 from sketch/Servo.cpp:44:
sketch/pins.h:2956:0: warning: "X_MAX_PIN" redefined
 #define X_MAX_PIN          -1
 
sketch/pins.h:1363:0: note: this is the location of the previous definition
 #define X_MAX_PIN 24
 
sketch/pins.h:2957:0: warning: "Y_MAX_PIN" redefined
 #define Y_MAX_PIN          -1
 
sketch/pins.h:1369:0: note: this is the location of the previous definition
 #define Y_MAX_PIN 28
 
sketch/pins.h:2958:0: warning: "Z_MAX_PIN" redefined
 #define Z_MAX_PIN          -1
 
sketch/pins.h:1375:0: note: this is the location of the previous definition
 #define Z_MAX_PIN 32
 
sketch/SdBaseFile.cpp: In member function 'void SdBaseFile::setpos(fpos_t*)':
SdBaseFile.cpp:1496:23: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
   curPosition_ = pos->position;
                       ^~~~~~~~
SdBaseFile.cpp:1497:22: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'
   curCluster_ = pos->cluster;
                      ^~~~~~~
In file included from sketch/Marlin.h:23:0,
                 from sketch/cardreader.cpp:1:
sketch/pins.h:2956:0: warning: "X_MAX_PIN" redefined
 #define X_MAX_PIN          -1
 
sketch/pins.h:1363:0: note: this is the location of the previous definition
 #define X_MAX_PIN 24
 
sketch/pins.h:2957:0: warning: "Y_MAX_PIN" redefined
 #define Y_MAX_PIN          -1
 
sketch/pins.h:1369:0: note: this is the location of the previous definition
 #define Y_MAX_PIN 28
 
sketch/pins.h:2958:0: warning: "Z_MAX_PIN" redefined
 #define Z_MAX_PIN          -1
 
sketch/pins.h:1375:0: note: this is the location of the previous definition
 #define Z_MAX_PIN 32
 
In file included from sketch/SdFile.h:27:0,
                 from sketch/cardreader.h:8,
                 from sketch/cardreader.cpp:2:
SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
 struct fpos_t {
        ^~~~~~
In file included from sketch/Marlin.h:10:0,
                 from sketch/cardreader.cpp:1:
/private/var/folders/1v/3bmtz0w53bvfnc0dtg7ctznw0000gn/T/AppTranslocation/1FFC6AD9-3911-4FEF-BECF-C7FDB019B833/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
 __extension__ typedef long long fpos_t;
                                 ^~~~~~
Se encontraron varias bibliotecas para "LiquidCrystal.h"
Usado: /private/var/folders/1v/3bmtz0w53bvfnc0dtg7ctznw0000gn/T/AppTranslocation/1FFC6AD9-3911-4FEF-BECF-C7FDB019B833/d/Arduino.app/Contents/Java/libraries/LiquidCrystal
exit status 1
using typedef-name 'fpos_t' after 'struct'

Este informe podría contener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
----------------------------------------------------------------------------------------------------------------------------

Please can anyone point me in the right direction?

Thanks in advance,
Giovanni

User avatar
William
Site Admin
Posts: 6331
Joined: Tue Jun 07, 2016 9:38 am

Re: newbie question Firmware ProW

Post by William » Wed Nov 20, 2019 9:33 am

:D Hi, If you are referring to updating the firmware of PRO W,
Need to compile with Arduino 1.0.1 version,
For the mac version, you need to refer to this method: viewtopic.php?f=20&t=17181
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

giovanni.anfossy
Posts: 3
Joined: Sat May 20, 2017 4:11 am

Re: newbie question Firmware ProW

Post by giovanni.anfossy » Wed Nov 20, 2019 11:05 am

Just found out the way to make it work... Renaming fpos_t variables in SdBaseFile.h and SdBaseFile.cpp to another name like pos fixes it fully.

Found that solution on this link ...
https://reprap.org/forum/read.php?146,691608

I finally did use arduino 1.8.10 on a Mac with Catalina 10.15.1.

User avatar
William
Site Admin
Posts: 6331
Joined: Tue Jun 07, 2016 9:38 am

Re: newbie question Firmware ProW

Post by William » Wed Nov 20, 2019 11:15 am

wow, bravo!
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

giovanni.anfossy
Posts: 3
Joined: Sat May 20, 2017 4:11 am

Re: newbie question Firmware ProW

Post by giovanni.anfossy » Wed Nov 27, 2019 8:58 am

I just found an even better solution. Download this files and use the proper Geeetech config files in the example configurations folder, and get a perfect compilation, no warnings no errors at all.

TheMacSmack1
Posts: 1
Joined: Thu Apr 30, 2020 6:46 pm

Re: newbie question Firmware ProW

Post by TheMacSmack1 » Thu Apr 30, 2020 6:53 pm

How to turn off iMessage on Mac


Hello, dear friends and fans. Hope you all would be fine and having a great time. I am your very own Steve Sadiq with the ultimate Apple solutions. Today I am going to discuss with you a very important article that is linked to our everyday life.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest