Building error when adding the test of component
Posted: Wed Aug 08, 2018 6:58 am
Hello,all:
I just has a problem when building my project with ESP-IDF.
First:
Everything is good, no test dir in this time.
The code tree like this:
├── esp32_app
│ └── main
└── platform
├── inc
│ └── public
├── localhooks
├── src
│ ├── fs
│ │ ├── inc
│ │ ├── src
│ │ └── ws
│ ├── log
│ │ ├── inc
│ │ └── ws
│ ├── osal
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── param
│ │ └── ws
│ ├── shell
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── swm
│ │ └── ws
│ └── trace
│ ├── inc
│ ├── src
│ └── ws
└── ws
The project in eps32_app, and make flash work good.
After add a test dir, something happend...the test dir testing the source code.
And the tree like this:
├── esp32_app
│ └── main
└── platform
├── inc
│ └── public
├── localhooks
├── src
│ ├── fs
│ │ ├── inc
│ │ ├── src
│ │ └── ws
│ ├── log
│ │ ├── inc
│ │ └── ws
│ ├── osal
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── param
│ │ └── ws
│ ├── shell
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── swm
│ │ └── ws
│ └── trace
│ ├── inc
│ ├── src
│ └── ws
├── test
└── ws
OK, just add the bold test,and its work bad.
When I make flash,the error is:
CC build/tcpip_adapter/tcpip_adapter_lwip.o
AR build/tcpip_adapter/libtcpip_adapter.a
CC build/test/test_fy_timer.o
D:/Code/fish/platform/test/test_fy_timer.c:11:19: fatal error: unity.h: No such file or directory
compilation terminated.
make[1]: *** [/d/Code/esp-idf/esp-idf/make/component_wrapper.mk:286:test_fy_tim er.o] 错误 1
make: *** [D:/Code/esp-idf/esp-idf/make/project.mk:468:component-test-build] 错 误 2
They build the test dir and tell some error.
So I make list-components, show:
*******************************************************************************
COMPONENT_DIRS (components searched for here)
/d/Code/fish/esp32_app/components
D:/Code/fish/platform
/d/Code/esp-idf/esp-idf/components
/d/Code/fish/esp32_app/main
*******************************************************************************
COMPONENTS (list of component names)
app_trace app_update aws_iot bootloader bootloader_support bt coap console cxx d river esp-tls esp32 esp_adc_cal esp_http_client esptool_py ethernet expat fatfs freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns micro-ecc newlib nghttp nvs_flash openssl partition_table platform pthread sdmmc smartconf ig_ack soc spi_flash spiffs tcpip_adapter test ulp vfs wear_levelling wpa_suppli cant xtensa-debug-module
*******************************************************************************
EXCLUDE_COMPONENTS (list of excluded names)
D:/Code/esp-idf/esp-idf/make/project.mk:541: 警告:未定义的变量“EXCLUDE_COMPONEN TS”
(none provided)
*******************************************************************************
COMPONENT_PATHS (paths to all components):
/d/Code/esp-idf/esp-idf/components/app_trace
/d/Code/esp-idf/esp-idf/components/app_update
/d/Code/esp-idf/esp-idf/components/aws_iot
/d/Code/esp-idf/esp-idf/components/bootloader
/d/Code/esp-idf/esp-idf/components/bootloader_support
/d/Code/esp-idf/esp-idf/components/bt
/d/Code/esp-idf/esp-idf/components/coap
/d/Code/esp-idf/esp-idf/components/console
/d/Code/esp-idf/esp-idf/components/cxx
/d/Code/esp-idf/esp-idf/components/driver
/d/Code/esp-idf/esp-idf/components/esp-tls
/d/Code/esp-idf/esp-idf/components/esp32
/d/Code/esp-idf/esp-idf/components/esp_adc_cal
/d/Code/esp-idf/esp-idf/components/esp_http_client
/d/Code/esp-idf/esp-idf/components/esptool_py
/d/Code/esp-idf/esp-idf/components/ethernet
/d/Code/esp-idf/esp-idf/components/expat
/d/Code/esp-idf/esp-idf/components/fatfs
/d/Code/esp-idf/esp-idf/components/freertos
/d/Code/esp-idf/esp-idf/components/heap
/d/Code/esp-idf/esp-idf/components/idf_test
/d/Code/esp-idf/esp-idf/components/jsmn
/d/Code/esp-idf/esp-idf/components/json
/d/Code/esp-idf/esp-idf/components/libsodium
/d/Code/esp-idf/esp-idf/components/log
/d/Code/esp-idf/esp-idf/components/lwip
/d/Code/fish/esp32_app/main
/d/Code/esp-idf/esp-idf/components/mbedtls
/d/Code/esp-idf/esp-idf/components/mdns
/d/Code/esp-idf/esp-idf/components/micro-ecc
/d/Code/esp-idf/esp-idf/components/newlib
/d/Code/esp-idf/esp-idf/components/nghttp
/d/Code/esp-idf/esp-idf/components/nvs_flash
/d/Code/esp-idf/esp-idf/components/openssl
/d/Code/esp-idf/esp-idf/components/partition_table
D:/Code/fish/platform
/d/Code/esp-idf/esp-idf/components/pthread
/d/Code/esp-idf/esp-idf/components/sdmmc
/d/Code/esp-idf/esp-idf/components/smartconfig_ack
/d/Code/esp-idf/esp-idf/components/soc
/d/Code/esp-idf/esp-idf/components/spi_flash
/d/Code/esp-idf/esp-idf/components/spiffs
/d/Code/esp-idf/esp-idf/components/tcpip_adapter
D:/Code/fish/platform/test
/d/Code/esp-idf/esp-idf/components/ulp
/d/Code/esp-idf/esp-idf/components/vfs
/d/Code/esp-idf/esp-idf/components/wear_levelling
/d/Code/esp-idf/esp-idf/components/wpa_supplicant
/d/Code/esp-idf/esp-idf/components/xtensa-debug-module
the list contain the test.
I am so confused why esp-idf source code could contains a test dir and build exclude test, my project contains a test dir is error?How could they done?
Thanks~
I just has a problem when building my project with ESP-IDF.
First:
Everything is good, no test dir in this time.
The code tree like this:
├── esp32_app
│ └── main
└── platform
├── inc
│ └── public
├── localhooks
├── src
│ ├── fs
│ │ ├── inc
│ │ ├── src
│ │ └── ws
│ ├── log
│ │ ├── inc
│ │ └── ws
│ ├── osal
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── param
│ │ └── ws
│ ├── shell
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── swm
│ │ └── ws
│ └── trace
│ ├── inc
│ ├── src
│ └── ws
└── ws
The project in eps32_app, and make flash work good.
After add a test dir, something happend...the test dir testing the source code.
And the tree like this:
├── esp32_app
│ └── main
└── platform
├── inc
│ └── public
├── localhooks
├── src
│ ├── fs
│ │ ├── inc
│ │ ├── src
│ │ └── ws
│ ├── log
│ │ ├── inc
│ │ └── ws
│ ├── osal
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── param
│ │ └── ws
│ ├── shell
│ │ ├── inc
│ │ ├── lib
│ │ ├── src
│ │ └── ws
│ ├── swm
│ │ └── ws
│ └── trace
│ ├── inc
│ ├── src
│ └── ws
├── test
└── ws
OK, just add the bold test,and its work bad.
When I make flash,the error is:
CC build/tcpip_adapter/tcpip_adapter_lwip.o
AR build/tcpip_adapter/libtcpip_adapter.a
CC build/test/test_fy_timer.o
D:/Code/fish/platform/test/test_fy_timer.c:11:19: fatal error: unity.h: No such file or directory
compilation terminated.
make[1]: *** [/d/Code/esp-idf/esp-idf/make/component_wrapper.mk:286:test_fy_tim er.o] 错误 1
make: *** [D:/Code/esp-idf/esp-idf/make/project.mk:468:component-test-build] 错 误 2
They build the test dir and tell some error.
So I make list-components, show:
*******************************************************************************
COMPONENT_DIRS (components searched for here)
/d/Code/fish/esp32_app/components
D:/Code/fish/platform
/d/Code/esp-idf/esp-idf/components
/d/Code/fish/esp32_app/main
*******************************************************************************
COMPONENTS (list of component names)
app_trace app_update aws_iot bootloader bootloader_support bt coap console cxx d river esp-tls esp32 esp_adc_cal esp_http_client esptool_py ethernet expat fatfs freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns micro-ecc newlib nghttp nvs_flash openssl partition_table platform pthread sdmmc smartconf ig_ack soc spi_flash spiffs tcpip_adapter test ulp vfs wear_levelling wpa_suppli cant xtensa-debug-module
*******************************************************************************
EXCLUDE_COMPONENTS (list of excluded names)
D:/Code/esp-idf/esp-idf/make/project.mk:541: 警告:未定义的变量“EXCLUDE_COMPONEN TS”
(none provided)
*******************************************************************************
COMPONENT_PATHS (paths to all components):
/d/Code/esp-idf/esp-idf/components/app_trace
/d/Code/esp-idf/esp-idf/components/app_update
/d/Code/esp-idf/esp-idf/components/aws_iot
/d/Code/esp-idf/esp-idf/components/bootloader
/d/Code/esp-idf/esp-idf/components/bootloader_support
/d/Code/esp-idf/esp-idf/components/bt
/d/Code/esp-idf/esp-idf/components/coap
/d/Code/esp-idf/esp-idf/components/console
/d/Code/esp-idf/esp-idf/components/cxx
/d/Code/esp-idf/esp-idf/components/driver
/d/Code/esp-idf/esp-idf/components/esp-tls
/d/Code/esp-idf/esp-idf/components/esp32
/d/Code/esp-idf/esp-idf/components/esp_adc_cal
/d/Code/esp-idf/esp-idf/components/esp_http_client
/d/Code/esp-idf/esp-idf/components/esptool_py
/d/Code/esp-idf/esp-idf/components/ethernet
/d/Code/esp-idf/esp-idf/components/expat
/d/Code/esp-idf/esp-idf/components/fatfs
/d/Code/esp-idf/esp-idf/components/freertos
/d/Code/esp-idf/esp-idf/components/heap
/d/Code/esp-idf/esp-idf/components/idf_test
/d/Code/esp-idf/esp-idf/components/jsmn
/d/Code/esp-idf/esp-idf/components/json
/d/Code/esp-idf/esp-idf/components/libsodium
/d/Code/esp-idf/esp-idf/components/log
/d/Code/esp-idf/esp-idf/components/lwip
/d/Code/fish/esp32_app/main
/d/Code/esp-idf/esp-idf/components/mbedtls
/d/Code/esp-idf/esp-idf/components/mdns
/d/Code/esp-idf/esp-idf/components/micro-ecc
/d/Code/esp-idf/esp-idf/components/newlib
/d/Code/esp-idf/esp-idf/components/nghttp
/d/Code/esp-idf/esp-idf/components/nvs_flash
/d/Code/esp-idf/esp-idf/components/openssl
/d/Code/esp-idf/esp-idf/components/partition_table
D:/Code/fish/platform
/d/Code/esp-idf/esp-idf/components/pthread
/d/Code/esp-idf/esp-idf/components/sdmmc
/d/Code/esp-idf/esp-idf/components/smartconfig_ack
/d/Code/esp-idf/esp-idf/components/soc
/d/Code/esp-idf/esp-idf/components/spi_flash
/d/Code/esp-idf/esp-idf/components/spiffs
/d/Code/esp-idf/esp-idf/components/tcpip_adapter
D:/Code/fish/platform/test
/d/Code/esp-idf/esp-idf/components/ulp
/d/Code/esp-idf/esp-idf/components/vfs
/d/Code/esp-idf/esp-idf/components/wear_levelling
/d/Code/esp-idf/esp-idf/components/wpa_supplicant
/d/Code/esp-idf/esp-idf/components/xtensa-debug-module
the list contain the test.
I am so confused why esp-idf source code could contains a test dir and build exclude test, my project contains a test dir is error?How could they done?
Thanks~