Page 1 of 2

Compiling with btree module support

Posted: Tue Apr 06, 2021 11:01 am
by beka
Hi All,

This is my first time posting. I needed to use a WROVER module with 8MB external flash so I attempted to compile code from https://github.com/micropython/micropython. While I finally managed to compile without errors I found that I could not import the btree module which is essential for my application. I could not find an option in menuconfig. Can anyone help on how I can compile in btree module support.

Best

Re: Compiling with btree module support

Posted: Tue Apr 06, 2021 9:09 pm
by marcidy
reproduced.

Looks like it's getting compiled, but I don't think it's getting linked. If I had to guess, the transition to cmake overlooked this.

I'm poking at it, but maybe worth raising an issue on GH.

Re: Compiling with btree module support

Posted: Tue Apr 06, 2021 11:15 pm
by marcidy
seems like the lib/berkeley-db-1.xx isn't getting picked up. I couldn't find a quick solution, and i suspect it needs to be adapted for cmake

Re: Compiling with btree module support

Posted: Thu Apr 08, 2021 5:49 am
by beka
Thanks for following up...

Re: Compiling with btree module support

Posted: Thu Apr 08, 2021 2:55 pm
by wangshujun@tom.com
BTREE module should be built-in. Do you need the support of 8 MB flash? If so, consider trying the firmware linked below, both 8 and 16 megabytes

These firmware only changed the frame buffer module,Added Chinese support and big font support

https://github.com/wangshujun-tj/mpy-Framebuf-boost

Re: Compiling with btree module support

Posted: Thu Apr 08, 2021 6:13 pm
by Roberthh
The btree module is about to be included again for the ESP32. Damien is working on it.

Re: Compiling with btree module support

Posted: Fri Apr 09, 2021 8:56 am
by beka
Great that the btree module is going to be included, I will try wangshujun's branch in the meantime.

Best

Re: Compiling with btree module support

Posted: Fri Apr 09, 2021 9:08 am
by Roberthh
Btree is included now. You should have it in the daily build tomorrow.

Re: Compiling with btree module support

Posted: Fri Apr 09, 2021 9:39 am
by beka
Many thanks to all!

Re: Compiling with btree module support

Posted: Sat Apr 10, 2021 7:12 am
by beka
Just to confirm that I have compiled the daily build and I can now import the btree module - problem solved!

Best!