PocketSprite / 8bkc-sdk

SDK for programming apps for the PocketSprite
64 stars 20 forks source link

error: 'ESP_PARTITION_TABLE_ADDR' undeclared #12

Closed rorosaurus closed 6 years ago

rorosaurus commented 6 years ago

I'm trying to build the chooser. It seems to be getting stuck on building the bootloader, which surprises me, since this code hasn't been touched in 2 months, it seems.

rory@RORY-DESKTOP:/mnt/f/OneDrive/Projects/GitHub/8bkc-bmo-chooser$ make
CC /mnt/f/OneDrive/Projects/GitHub/8bkc-bmo-chooser/build/bootloader/main/bootloader_start.o
/home/rory/~esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c: In function 'load_partition_table':
/home/rory/~esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:166:34: error: 'ESP_PARTITION_TABLE_ADDR' undeclared (first use in this function)
     partitions = bootloader_mmap(ESP_PARTITION_TABLE_ADDR, ESP_PARTITION_TABLE_DATA_LEN);
                                  ^
/home/rory/~esp/8bkc-sdk/8bkc-components/bootloader/subproject/main/bootloader_start.c:166:34: note: each undeclared identifier is reported only once for each function it appears in
/home/rory/~esp/esp-idf/make/component_wrapper.mk:285: recipe for target 'bootloader_start.o' failed
make[2]: *** [bootloader_start.o] Error 1
/home/rory/~esp/esp-idf/make/project.mk:468: recipe for target 'component-main-build' failed
make[1]: *** [component-main-build] Error 2
/home/rory/~esp/8bkc-sdk/8bkc-components/bootloader/Makefile.projbuild:40: recipe for target '/mnt/f/OneDrive/Projects/GitHub/8bkc-bmo-chooser/build/bootloader/bootloader.bin' failed
make: *** [/mnt/f/OneDrive/Projects/GitHub/8bkc-bmo-chooser/build/bootloader/bootloader.bin] Error 2
rory@RORY-DESKTOP:/mnt/f/OneDrive/Projects/GitHub/8bkc-bmo-chooser$

The above snippet is from my second run. On my first make, I was prompted for lots of options, which I said n to all. You can see that full version here: full-make-error.txt

rorosaurus commented 6 years ago

Of course, I solve the issue 14 minutes later. 😄 I had modified the Makefile in the chooser repo to specify the IDF_PATH from the setup docs. I shouldn't have done that! (I was testing something and forgot - whoops!)