ESP32-DU1906编译失败!Error: missing binary operator before token "("

adrianlio
Posts: 2
Joined: Sat Apr 02, 2022 4:41 am

ESP32-DU1906编译失败!Error: missing binary operator before token "("

Postby adrianlio » Sat Apr 02, 2022 4:51 am

xxx@ubuntu:~/esp/korvo_du1906$ make -j4 all
Toolchain path: /home/adrian/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
App "korvo_du1906" version: v1.4.0
Python requirements from /home/adrian/esp-idf/requirements.txt are satisfied.
BIN phy_init_data.bin
CC build/wifi_service/airkiss_config/airkiss_config.o
/home/adrian/esp/esp-adf/components/wifi_service/airkiss_config/airkiss_config.c:44:44: error: missing binary operator before token "("
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0))

按例程里的步骤一项项过,试过idf.py 也是一直过不了,有人说 Make可以过,就试了下还是出错

xxx@ubuntu:~/esp/korvo_du1906$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

高手帮忙查下这是什么错?
^

adrianlio
Posts: 2
Joined: Sat Apr 02, 2022 4:41 am

Re: ESP32-DU1906编译失败!Error: missing binary operator before token "("

Postby adrianlio » Sat Apr 02, 2022 5:19 am

将对应源文件里 #if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)) 注释掉竟稀里糊涂过了。 :D

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: ESP32-DU1906编译失败!Error: missing binary operator before token "("

Postby ESP_HengYC » Wed Apr 20, 2022 2:45 am

adrianlio wrote:
Sat Apr 02, 2022 5:19 am
将对应源文件里 #if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)) 注释掉竟稀里糊涂过了。 :D
你要注意下, readme.md 说明文档里需要编译提及的 IDF 版本, https://github.com/espressif/esp-adf/bl ... 6%E6%94%AF

Who is online

Users browsing this forum: Google [Bot] and 38 guests