maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
803 stars 233 forks source link

error when executing `make -C /example/led error_flash` #370

Closed Vardaan2048 closed 3 years ago

Vardaan2048 commented 3 years ago

Hi Folks,

After running make -C /example/led error_flash i am getting the following errors.

make: Entering directory '/home/vardaan/Documents/Projects/Home-Kit-POC/esp-homekit-demo/examples/led' Makefile:13: /home/user/projects/esp-open-rtos/common.mk: No such file or directory make: *** No rule to make target '/home/user/projects/esp-open-rtos/common.mk'. Stop. make: Leaving directory '/home/vardaan/Documents/Projects/Home-Kit-POC/esp-homekit-demo/examples/led'

I have checked if the env variables are set, following are the results for that:

echo $PATH /home/user/projects/esp-open-sdk/xtensa-lx106-elf/bin:/home/user/projects/esp-open-sdk/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

echo $SDK_PATH /home/user/projects/esp-open-rtos

echo $ESPPORT /dev/ttyUSB0

echo $FLASH_SIZE 8

echo $FLASH_MODE dout

Running on Ubuntu 20.04 LTS in virtualbox

Can anybody help with issue? Thanks in advance

Vardaan2048 commented 3 years ago

Resolved the issue.

Izac9 commented 3 years ago

where was the problem ? I have same Issue

maximkulkin commented 3 years ago

@Izac9 I guess the solution was to follow development guide and pay attention to what you type. From the original description I see a couple of issues: "/example/led" should be just "example/led" (since it is a relative directory where to look for Makefile), "error_flash" is not actually a valid target (I guess it was supposed to be "erase_flash"... or just "flash").