Contact me: hankecnc@gmail.com

PlatformIO 与“limit.h”编译冲突 #74

推推 grbl 3年前 (2023-01-29) 399次浏览
关闭
lienbacher 打开了这个问题 2018 年 12 月 29 日 · 15条评论
关闭

PlatformIO 与“limit.h”编译冲突#74

lienbacher 打开了这个问题 2018 年 12 月 29 日 · 15条评论

注释

PlatformIO 与“limit.h”编译冲突 #74
贡献者

你好!
首先,多么伟大的工程!非常感谢你!我最近放弃了 Arduino IDE,转而使用 PlatformIO 和 VSCode。许多东西很容易互换。所以我尝试用 PIO 编译代码并得到一个编译器错误,指出 INT_MAX 没有在 Tasks.h 的这个范围内定义。所以我去检查,发现 Tasks.h 包含一个 limits.h 但似乎恰好包含 grbl_esp32s 自己的 limits.h 而不是其中一个 esp32 库因此无法编译。

我已将本地 limits.h 重命名为 grbl_limits.h,对 grbl_limits.cpp 执行相同操作并编辑 grbl.h 中的包含,现在它编译正常,只有一堆关于未使用变量(主要是任务句柄)的警告。

认为这可能是值得考虑的事情。

再次,出色的项目!非常感谢你!

PlatformIO 与“limit.h”编译冲突 #74
合作者
luc-github 评论了 2018 年 12 月 29 日  

我用 Arduino 和所有警告编译,自上次清理以来没有问题,到目前为止没有警告
我不使用 platformIO 所以你能分享哪些limits.h文件有冲突吗?(您引用的 Tasks.h)错误应该显示其他文件所在的位置。

你也可以分享你在身边看到的警告吗?

谢谢

PlatformIO 与“limit.h”编译冲突 #74
合作者

刚刚更新了 ESP32 的最新 git 并且没有冲突 – 可能是您正在使用的本地库?

PlatformIO 与“limit.h”编译冲突 #74
贡献者作者

是的,我看到该项目专注于 Arduino IDE,所以它在那里编译得很好也就不足为奇了,很确定它只是使用不同的 IDE 弹出的东西。但事实上这很容易解决问题,这让我觉得消除常见文件名的歧义可能是个好主意。task.h 位于 ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos(使用 MacOS)。

这是构建输出的粘贴:https ://pastebin.com/8Zddh1nb

PlatformIO 与“limit.h”编译冲突 #74
贡献者

我不想劫持这个问题,但我也尝试使用 platformio 但失败了。
已将它发布在这里espressif/arduino-esp32#2083但没有成功。
所以不确定这是否有一点帮助(有另一个构建输出)。

问题仍然存在,这里是一个带有当前代码的新构建输出:

******************************************************************************************************************************************************************************************************************
Obsolete PIO Core v3.6.1 is used (previous was 3.6.2a3)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/page/faq.html#multiple-pio-cores-in-a-system
******************************************************************************************************************************************************************************************************************
Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/nodemcu-32s.html
PLATFORM: Espressif 32 > NodeMCU-32S
SYSTEM: ESP32 240MHz 320KB RAM (4MB Flash)
DEBUG: CURRENT(esp-prog) EXTERNAL(esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
Converting Grbl_Esp32.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <BluetoothSerial> 1.0
|-- <ArduinoOTA> 1.0
|   |-- <ESPmDNS> 1.0
|   |   |-- <WiFi> 1.0
|   |-- <Update> 1.0
|   |-- <WiFi> 1.0
|-- <Update> 1.0
|-- <FS> 1.0
|-- <WebServer> 1.0
|   |-- <WiFi> 1.0
|   |-- <FS> 1.0
|-- <SPI> 1.0
|-- <DNSServer> 1.1.0
|   |-- <WiFi> 1.0
|-- <Preferences> 1.0
|-- <EEPROM> 1.0
|-- <SPIFFS> 1.0
|   |-- <FS> 1.0
|-- <WiFi> 1.0
|-- <WebSockets> 2.1.2
|   |-- <WiFi> 1.0
|   |-- <SPI> 1.0
|   |-- <WiFiClientSecure> 1.0
|   |   |-- <WiFi> 1.0
|-- <SD(esp32)> 1.0.5
|   |-- <FS> 1.0
|   |-- <SPI> 1.0
|-- <ESP32SSPD> 1.0
|   |-- <WiFi> 1.0
Compiling .pioenvs/nodemcu-32s/src/Grbl_Esp32.ino.cpp.o
Compiling .pioenvs/nodemcu-32s/src/coolant_control.cpp.o
Compiling .pioenvs/nodemcu-32s/src/eeprom.cpp.o
Compiling .pioenvs/nodemcu-32s/src/gcode.cpp.o
In file included from Grbl_Esp32/grbl.h:36:0,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from /home/user/Bastelprojekte/3rd/Grbl_Esp32/Grbl_Esp32/Grbl_Esp32.ino:21:
Grbl_Esp32/nuts_bolts.h:60:0: warning: "bit" redefined
#define bit(n) (1 << n)
^
In file included from /tmp/tmpWr4ox2:1:0:
/home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:105:0: note: this is the location of the previous definition
#define bit(b) (1UL << (b))
^
In file included from Grbl_Esp32/grbl.h:36:0,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/coolant_control.cpp:24:
Grbl_Esp32/nuts_bolts.h:60:0: warning: "bit" redefined
#define bit(n) (1 << n)
^
In file included from Grbl_Esp32/grbl.h:26:0,
from Grbl_Esp32/coolant_control.cpp:24:
/home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:105:0: note: this is the location of the previous definition
#define bit(b) (1UL << (b))
^
In file included from Grbl_Esp32/grbl.h:36:0,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/eeprom.cpp:21:
Grbl_Esp32/nuts_bolts.h:60:0: warning: "bit" redefined
#define bit(n) (1 << n)
^
In file included from Grbl_Esp32/grbl.h:26:0,
from Grbl_Esp32/eeprom.cpp:21:
/home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:105:0: note: this is the location of the previous definition
#define bit(b) (1UL << (b))
^
In file included from Grbl_Esp32/grbl.h:36:0,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/gcode.cpp:25:
Grbl_Esp32/nuts_bolts.h:60:0: warning: "bit" redefined
#define bit(n) (1 << n)
^
In file included from Grbl_Esp32/grbl.h:26:0,
from Grbl_Esp32/gcode.cpp:25:
/home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:105:0: note: this is the location of the previous definition
#define bit(b) (1UL << (b))
^
In file included from /home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33:0,
from Grbl_Esp32/grbl.h:26,
from Grbl_Esp32/coolant_control.cpp:24:
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h: In function 'BaseType_t xTaskCreate(TaskFunction_t, const char*, uint32_t, void*, UBaseType_t, void**)':
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:96:24: error: 'INT_MAX' was not declared in this scope
#define tskNO_AFFINITY INT_MAX
^
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:438:110: note: in expansion of macro 'tskNO_AFFINITY'
return xTaskCreatePinnedToCore( pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask, tskNO_AFFINITY );
^
In file included from /home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33:0,
from /tmp/tmpWr4ox2:1:
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h: In function 'BaseType_t xTaskCreate(TaskFunction_t, const char*, uint32_t, void*, UBaseType_t, void**)':
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:96:24: error: 'INT_MAX' was not declared in this scope
#define tskNO_AFFINITY INT_MAX
^
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:438:110: note: in expansion of macro 'tskNO_AFFINITY'
return xTaskCreatePinnedToCore( pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask, tskNO_AFFINITY );
^
In file included from /home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33:0,
from Grbl_Esp32/grbl.h:26,
from Grbl_Esp32/eeprom.cpp:21:
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h: In function 'BaseType_t xTaskCreate(TaskFunction_t, const char*, uint32_t, void*, UBaseType_t, void**)':
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:96:24: error: 'INT_MAX' was not declared in this scope
#define tskNO_AFFINITY INT_MAX
^
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:438:110: note: in expansion of macro 'tskNO_AFFINITY'
return xTaskCreatePinnedToCore( pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask, tskNO_AFFINITY );
^
In file included from /home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33:0,
from Grbl_Esp32/grbl.h:26,
from Grbl_Esp32/gcode.cpp:25:
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h: In function 'BaseType_t xTaskCreate(TaskFunction_t, const char*, uint32_t, void*, UBaseType_t, void**)':
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:96:24: error: 'INT_MAX' was not declared in this scope
#define tskNO_AFFINITY INT_MAX
^
/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/task.h:438:110: note: in expansion of macro 'tskNO_AFFINITY'
return xTaskCreatePinnedToCore( pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask, tskNO_AFFINITY );
^
In file included from Grbl_Esp32/grbl.h:77:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/coolant_control.cpp:24:
Grbl_Esp32/servo_pen.h: At global scope:
Grbl_Esp32/servo_pen.h:70:21: warning: 'servoSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t servoSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:78:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/coolant_control.cpp:24:
Grbl_Esp32/solenoid_pen.h:47:21: warning: 'solenoidSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t solenoidSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:54:0,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/coolant_control.cpp:24:
Grbl_Esp32/serial.h:40:21: warning: 'serialCheckTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t serialCheckTaskHandle = 0;
^
*** [.pioenvs/nodemcu-32s/src/coolant_control.cpp.o] Error 1
In file included from Grbl_Esp32/grbl.h:77:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/eeprom.cpp:21:
Grbl_Esp32/servo_pen.h: At global scope:
Grbl_Esp32/servo_pen.h:70:21: warning: 'servoSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t servoSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:78:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/eeprom.cpp:21:
Grbl_Esp32/solenoid_pen.h:47:21: warning: 'solenoidSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t solenoidSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:54:0,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/eeprom.cpp:21:
Grbl_Esp32/serial.h:40:21: warning: 'serialCheckTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t serialCheckTaskHandle = 0;
^
*** [.pioenvs/nodemcu-32s/src/eeprom.cpp.o] Error 1
In file included from Grbl_Esp32/grbl.h:77:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from /home/user/Bastelprojekte/3rd/Grbl_Esp32/Grbl_Esp32/Grbl_Esp32.ino:21:
Grbl_Esp32/servo_pen.h: At global scope:
Grbl_Esp32/servo_pen.h:70:21: warning: 'servoSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t servoSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:78:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from /home/user/Bastelprojekte/3rd/Grbl_Esp32/Grbl_Esp32/Grbl_Esp32.ino:21:
Grbl_Esp32/solenoid_pen.h:47:21: warning: 'solenoidSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t solenoidSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:54:0,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from /home/user/Bastelprojekte/3rd/Grbl_Esp32/Grbl_Esp32/Grbl_Esp32.ino:21:
Grbl_Esp32/serial.h:40:21: warning: 'serialCheckTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t serialCheckTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:77:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/gcode.cpp:25:
Grbl_Esp32/servo_pen.h: At global scope:
Grbl_Esp32/servo_pen.h:70:21: warning: 'servoSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t servoSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:78:0,
from Grbl_Esp32/jog.h:26,
from Grbl_Esp32/grbl.h:57,
from Grbl_Esp32/stepper.h:34,
from Grbl_Esp32/grbl.h:56,
from Grbl_Esp32/spindle_control.h:24,
from Grbl_Esp32/grbl.h:55,
from Grbl_Esp32/serial.h:24,
from Grbl_Esp32/grbl.h:54,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/gcode.cpp:25:
Grbl_Esp32/solenoid_pen.h:47:21: warning: 'solenoidSyncTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t solenoidSyncTaskHandle = 0;
^
In file included from Grbl_Esp32/grbl.h:54:0,
from Grbl_Esp32/report.h:24,
from Grbl_Esp32/grbl.h:53,
from Grbl_Esp32/motion_control.h:30,
from Grbl_Esp32/grbl.h:49,
from Grbl_Esp32/eeprom.h:24,
from Grbl_Esp32/grbl.h:46,
from Grbl_Esp32/system.h:23,
from Grbl_Esp32/grbl.h:42,
from Grbl_Esp32/settings.h:28,
from Grbl_Esp32/grbl.h:41,
from Grbl_Esp32/tdef.h:4,
from Grbl_Esp32/grbl.h:38,
from Grbl_Esp32/config.h:40,
from Grbl_Esp32/grbl.h:35,
from Grbl_Esp32/gcode.cpp:25:
Grbl_Esp32/serial.h:40:21: warning: 'serialCheckTaskHandle' defined but not used [-Wunused-variable]
static TaskHandle_t serialCheckTaskHandle = 0;
^
*** [.pioenvs/nodemcu-32s/src/Grbl_Esp32.ino.cpp.o] Error 1
*** [.pioenvs/nodemcu-32s/src/gcode.cpp.o] Error 1
PlatformIO 与“limit.h”编译冲突 #74
贡献者作者

正是这个问题。将 limits.h 和 limits.cpp 重命名为 grbl_limits,更改 grbl.h 中的 include,如果将 #ifndef LIMITS_H 更改为 GRBL_LIMITS_H 则不会受到影响,它应该可以编译。

PlatformIO 与“limit.h”编译冲突 #74
贡献者

@lienbacher你是对的,这解决了问题。
构建贯穿始终。无法检查二进制文件是否正确,因为我目前不在家,但看起来很有希望。

你要做公关吗?

PlatformIO 与“limit.h”编译冲突 #74
所有者

我之前还必须处理其他一些类似的问题。继续做公关。由于旅行,我可能需要一个多星期才能合并它。

请在每个文件的顶部附近放置一条注释,说明文件重命名的原因。

PlatformIO 与“limit.h”编译冲突 #74
贡献者作者

再次提交 PR,感谢这项伟大的工作!