labplus-cn / mpython

mpython掌控板文档和固件源码
MIT License
129 stars 54 forks source link

编译报错 #18

Closed yinnianlong closed 4 years ago

yinnianlong commented 4 years ago

/home/yin/esp1/esp-idf/esp-idf/components/bootloader_support/src/bootloader_common.c: In function 'bootloader_common_get_partition_description': /home/yin/esp1/esp-idf/esp-idf/components/log/include/esp_log.h:117:26: error: 'CONFIG_LOG_BOOTLOADER_LEVEL' undeclared (first use in this function)

define LOG_LOCAL_LEVEL CONFIG_LOG_BOOTLOADER_LEVEL

lgnativs commented 4 years ago

ESP-IDF的helloworld能否编译成功?

yinnianlong commented 4 years ago

非常感谢您的回复  我编译helloworld和micropython源码都可以编译生成bin

------------------ 原始邮件 ------------------ 发件人: "ZhangKaihua"<notifications@github.com>; 发送时间: 2019年10月7日(星期一) 上午10:42 收件人: "labplus-cn/mPython"<mPython@noreply.github.com>; 抄送: "流云"<106312845@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [labplus-cn/mPython] 编译报错 (#18)

ESP-IDF的helloworld能否编译成功?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

yinnianlong commented 4 years ago

请问这个开源项目有组织吗?我如何找到组织的联系方式一起学习交流 非常感谢

------------------ 原始邮件 ------------------ 发件人: "ZhangKaihua"<notifications@github.com>; 发送时间: 2019年10月7日(星期一) 上午10:42 收件人: "labplus-cn/mPython"<mPython@noreply.github.com>; 抄送: "流云"<106312845@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [labplus-cn/mPython] 编译报错 (#18)

ESP-IDF的helloworld能否编译成功?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lgnativs commented 4 years ago

可以直接在这里提问的. 你编译的源码有修改吗?我们这里编译都是没有问题的.

yinnianlong commented 4 years ago

非常感谢!

我又重试了 还是有错误

1 编译micropython 正常生成bin 无错误

2 编译mPython

3 提示IDF分支不一致

Current git hash:   6ccb4cf5b7d1fdddb8c2492f9cbc926abaf230df

Supported git hash: 5c88c5996dbde6208e3bec05abc21ff6cd822d26

4 切换分支到5c88c5996dbde6208e3bec05abc21ff6cd822d26

5 再编译报如下错误

/home/yin/esp1/esp-idf/esp-idf/components/bootloader_support/src/bootloader_flash.c: In function 'bootloader_mmap':

/home/yin/esp1/esp-idf/esp-idf/components/log/include/esp_log.h:117:26: error: 'CONFIG_LOG_BOOTLOADER_LEVEL' undeclared (first use in this function)

 #define LOG_LOCAL_LEVEL  CONFIG_LOG_BOOTLOADER_LEVEL

图片见附件

------------------ 原始邮件 ------------------ 发件人: "ZhangKaihua"<notifications@github.com>; 发送时间: 2019年10月7日(星期一) 中午11:39 收件人: "labplus-cn/mPython"<mPython@noreply.github.com>; 抄送: "流云"<106312845@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [labplus-cn/mPython] 编译报错 (#18)

可以直接在这里提问的. 你编译的源码有修改吗?我们这里编译都是没有问题的.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lgnativs commented 4 years ago

建议清空ESP-IDF文件夹,再checkout到匹配的版本

yinnianlong commented 4 years ago

好的 我试试 

------------------ 原始邮件 ------------------ 发件人: "ZhangKaihua"<notifications@github.com>; 发送时间: 2019年10月7日(星期一) 下午3:21 收件人: "labplus-cn/mPython"<mPython@noreply.github.com>; 抄送: "流云"<106312845@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [labplus-cn/mPython] 编译报错 (#18)

建议清空ESP-IDF文件夹,再checkout到匹配的版本

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .

yinnianlong commented 4 years ago

按照port/ESP32/makefile文件里的描述 我克隆5c88c5996dbde6208e3bec05abc21ff6cd822d26这个分支 说未发现

the git hash of the currently supported ESP IDF version

ESPIDF_SUPHASH := 5c88c5996dbde6208e3bec05abc21ff6cd822d26

root@yin-virtual-machine:/home/yin# cd '/home/yin/esp1'  root@yin-virtual-machine:/home/yin/esp1# git clone -b 5c88c5996dbde6208e3bec05abc21ff6cd822d26 https://github.com/espressif/esp-idf.git 正克隆到 'esp-idf'... fatal: 远程分支 5c88c5996dbde6208e3bec05abc21ff6cd822d26 在上游 origin 未发现 root@yin-virtual-machine:/home/yin/esp1# 

------------------ 原始邮件 ------------------ 发件人:  "ZhangKaihua"<notifications@github.com>; 发送时间:  2019年10月7日(星期一)下午3:21 收件人:  "labplus-cn/mPython"<mPython@noreply.github.com>; 抄送:  "流云"<106312845@qq.com>;"Author"<author@noreply.github.com>; 主题:  Re: [labplus-cn/mPython]编译报错(#18)

建议清空ESP-IDF文件夹,再checkout到匹配的版本

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .

yinnianlong commented 4 years ago

谢谢 问题已解决是我的IDF下载有问题

---原始邮件--- 发件人: "ZhangKaihua"<notifications@github.com> 发送时间: 2019年10月7日(星期一) 中午11:39 收件人: "labplus-cn/mPython"<mPython@noreply.github.com>; 抄送: "yinnianlong"<106312845@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [labplus-cn/mPython] 编译报错 (#18)

可以直接在这里提问的. 你编译的源码有修改吗?我们这里编译都是没有问题的.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.