maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.12k stars 170 forks source link

Project directory structure and compiling the program #114

Closed mkilinskidev closed 4 years ago

mkilinskidev commented 4 years ago

Hello. My problem is not an issue, but I don't know where I can write about it. I have a problem with the project's directory structure and I can't compile my program. Here is a whole environment structure:

CleanShot 2019-11-24 at 16 40 17@2x

All files are in /Volumes/esp8266 directory. Project which I would like to compile is in Projects/homekit directory. Here is a Makefile

PROGRAM=homekit
include /Volumes/esp8266/esp-open-rtos/common.mk
include /Volumes/esp8266/esp-open-rtos/extras/http-parser/component.mk
include components/common/wolfssl/component.mk
include components/esp-8266/cJSON/component.mk

include /Volumes/esp8266/libs/esp-homekit/component.mk

Now, while compiling there is an error:

...
CC /Volumes/esp8266/esp-open-rtos/core/esp_phy.c
CC /Volumes/esp8266/esp-open-rtos/core/esp_spi.c
CC /Volumes/esp8266/esp-open-rtos/core/esp_timer.c
CC /Volumes/esp8266/esp-open-rtos/core/newlib_syscalls.c
CC /Volumes/esp8266/esp-open-rtos/core/phy_info.c
CC /Volumes/esp8266/esp-open-rtos/core/sdk_compat.c
CC /Volumes/esp8266/esp-open-rtos/core/spiflash.c
CC /Volumes/esp8266/esp-open-rtos/core/sysparam.c
AS /Volumes/esp8266/esp-open-rtos/core/exception_vectors.S
AS /Volumes/esp8266/esp-open-rtos/core/spiflash-cache-enable.S
C++ /Volumes/esp8266/esp-open-rtos/core/cplusplus_operators.cpp
AR build/core.a
AR build/open_esplibs.a
Removing unwanted objects from /Volumes/esp8266/esp-open-rtos/lib/libgcc.a
Removing unwanted objects from /Volumes/esp8266/esp-open-rtos/libc/xtensa-lx106-elf/lib/libc.a
SDK processing stage 1: Removing unwanted objects from /Volumes/esp8266/esp-open-rtos/lib/libmain.a
SDK processing stage 2: Renaming symbols in SDK library build/sdklib/libmain_stage1.a -> build/sdklib/libmain.a
SDK processing stage 1: Removing unwanted objects from /Volumes/esp8266/esp-open-rtos/lib/libnet80211.a
SDK processing stage 2: Renaming symbols in SDK library build/sdklib/libnet80211_stage1.a -> build/sdklib/libnet80211.a
SDK processing stage 1: Removing unwanted objects from /Volumes/esp8266/esp-open-rtos/lib/libphy.a
SDK processing stage 2: Renaming symbols in SDK library build/sdklib/libphy_stage1.a -> build/sdklib/libphy.a
SDK processing stage 1: Removing unwanted objects from /Volumes/esp8266/esp-open-rtos/lib/libpp.a
SDK processing stage 2: Renaming symbols in SDK library build/sdklib/libpp_stage1.a -> build/sdklib/libpp.a
SDK processing stage 1: Removing unwanted objects from /Volumes/esp8266/esp-open-rtos/lib/libwpa.a
SDK processing stage 2: Renaming symbols in SDK library build/sdklib/libwpa_stage1.a -> build/sdklib/libwpa.a
LD build/homekit.out
xtensa-lx106-elf-gcc: error: ./build/http-parser.a: No such file or directory
xtensa-lx106-elf-gcc: error: ./build/wolfssl.a: No such file or directory
xtensa-lx106-elf-gcc: error: ./build/cjson.a: No such file or directory
xtensa-lx106-elf-gcc: error: ./build/homekit.a: No such file or directory
make: *** [build/homekit.out] Error 1
mati@MBP-mati homekit % 

What am I doing wrong?

maximkulkin commented 4 years ago

Check Makefile from any esp-homekit example, try using EXTRA_COMPONENTS instead of including component.mk directly