zorxx / micro-builder

Build system for microcontroller projects
MIT License
3 stars 1 forks source link

make error #1

Open kiralikbeyin opened 5 years ago

kiralikbeyin commented 5 years ago

I installed git mercurial subversion unzip python libusb-dev libusb-1.0.0-dev gperf texinfo help2man flex bison with "brew install" on mac. (brew didnt find libusb-dev libusb-1.0.0-dev so i changed it to brew install ibusb)

Building dependency: /Users/kira/Documents/micro-builder/package/xtensa/ztool
Download (git): ztool
Cloning into 'ztool_source'...
remote: Enumerating objects: 104, done.
remote: Total 104 (delta 0), reused 0 (delta 0), pack-reused 104
Receiving objects: 100% (104/104), 50.30 KiB | 0 bytes/s, done.
Resolving deltas: 100% (55/55), done.
Checking connectivity... done.
Default version
Making ztool...
CC ztool.c
CC ztool_elf.c
LD ztool
Undefined symbols for architecture x86_64:
  "_error", referenced from:
      _main in ztool.o
      _GetElfSectionData in ztool_elf.o
      _LoadElf in ztool_elf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [ztool] Error 1
make[1]: *** [.ztool_build.generic] Error 2
make: *** [/Users/kira/Documents/micro-builder/package/xtensa/ztool/.done_xtensa_nodemcu] Error 2

If we can solve make error my goal:

run esp-open-rtos based app firmware size:666k can run OTA update app will be on 1mb esp8266

I want to use arduino based OTA updater app : two steps update 666k esp-open-rtos -> 250k arduino updater -> new 667k esp-open-rtos

Do you have an example like this or is there any easy way to update esp-open-rtos with OTA?

kiralikbeyin commented 5 years ago

Did you try to make this lib on a Raspbian? Will it work?

I really need to make OTA update in a esp-open-rtos app..