HomeACcessoryKid / life-cycle-manager

Initial install, WiFi settings and over the air firmware upgrades for any esp-open-rtos repository on GitHub
Apache License 2.0
60 stars 11 forks source link

compile #9

Closed AchimPieters closed 5 years ago

AchimPieters commented 5 years ago

Hi there!

Great job on your LCM project. But I have a question. How to compile your code myself? When I compile I says#error You must set OTAVERSION=x.y.z of the ota code to match github version tag x.y.z is missing on line 17 form main.c witch refers to OTA.h line 6?

Could you help me compile your code myself? I would be great full. Thanks in advance.

AchimPieters commented 5 years ago

Here's the whole error description: CC /home/achim/life-cycle-manager/main.c In file included from /home/achim/life-cycle-manager/main.c:17:0: ./ota.h:6:3: error: #error You must set OTAVERSION=x.y.z of the ota code to match github version tag x.y.z

error You must set OTAVERSION=x.y.z of the ota code to match github version tag x.y.z

^ In file included from /home/achim/life-cycle-manager/main.c:18:0: /home/achim/life-cycle-manager/main.c: In function 'ota_task': /home/achim/life-cycle-manager/main.c:37:28: error: 'OTAVERSION' undeclared (first use in this function) UDPLGP("VERSION: %s\n",OTAVERSION); //including the compile time makes comparing binaries impossible, so don't ^ ./udplogger.h:9:50: note: in definition of macro 'UDPLGP'

define UDPLGP(format, ...) do {printf(format,##__VA_ARGS__); \

                                              ^

/home/achim/life-cycle-manager/main.c:37:28: note: each undeclared identifier is reported only once for each function it appears in UDPLGP("VERSION: %s\n",OTAVERSION); //including the compile time makes comparing binaries impossible, so don't ^ ./udplogger.h:9:50: note: in definition of macro 'UDPLGP'

define UDPLGP(format, ...) do {printf(format,##__VA_ARGS__); \

                                              ^

make: *** [/home/achim/esp/esp-open-rtos/common.mk:219: build/program//main.o] Error 1

AchimPieters commented 5 years ago

never mind found it.