Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Marlin 2.0.X Bugfix Platformio error compilation (2 replies)

$
0
0
Hello all,

I tried to compile a marlin 2.0.x for an SKR 1.3 +TMC5160 V1.1 for a delta printer type kossel K800XL ...
I use visual studio code + pio platform

I suppose there is missing something somewhere... But I don't know what is missing and in wich file.
Could someone help me ?
I can provide You other files / informations if needed

Here is what I received as message :


CIompiling .pio\build\LPC1768\src\src\lcd\menu\menu_ubl.cpp.o
n file included from Marlin\src\lcd\menu\menu_sdcard.cpp:31:
Marlin\src\lcd\menu\menu_sdcard.cpp: In function 'void menu_sdcard()':
Marlin\src\lcd\menu\menu_sdcard.cpp:128:29: error: 'MSG_CARD_MENU' was not declared in this scope
C ompiling .pio\build\LPC1768\src\src\lcd\ultralcd.cpp.o
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
Compiling .pio\build\LPC1768\src\src\libs\L6470\L6470_Marlin.cpp.o
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:128:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
^~~~~~~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:128:29: note: suggested alternative: 'MSG_INFO_MENU'
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:128:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
^~~~~~~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:27: error: 'MSG_CARD_MENU' was not declared in this scope
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:27: note: suggested alternative: 'MSG_INFO_MENU'
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~
*** [.pio\build\LPC1768\src\src\lcd\menu\menu_sdcard.cpp.o] Error 1











-----------------------------------------------------------------------------------------------------
PROBLEMS 4
{
"resource": "/c:/3dprinter/BIGTREETECH-SKR-V1.3-master/firmware/Marlin-bugfix-2.0.x/Marlin/src/lcd/menu/menu_sdcard.cpp",
"owner": "cpp",
"severity": 8,
"message": "'MSG_CARD_MENU' was not declared in this scope",
"startLineNumber": 130,
"startColumn": 27,
"endLineNumber": 130,
"endColumn": 27
}


----------------------------------------------------------------------------------------------------------
Here is part of the file menu_sdcard.ccp


if (ui.should_draw()) for (uint16_t i = 0; i < fileCnt; i++) {
if (_menuLineNr == _thisItemNr) {
const uint16_t nr =
#if ENABLED(SDCARD_RATHERRECENTFIRST) && DISABLED(SDCARD_SORT_ALPHA)
fileCnt - 1 -
#endif
i;

card.getfilename_sorted(nr);

if (card.flag.filenameIsDir)
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
else
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
}
else {
MENU_ITEM_DUMMY();
}
}

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>