hackgnar / ble_ctf

A Bluetooth low energy capture the flag
671 stars 97 forks source link

gatts_table_creat_demo.c:25:29: fatal error #20

Closed freqyXin closed 5 years ago

freqyXin commented 5 years ago

Encountered during make step of flashing process.

/ble_ctf# make
Toolchain path: /root/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /root/esp/esp-idf/requirements.txt are satisfied.

App "gatt_server_service_table_demo" version: 1.0-5-g366122b
CC build/main/gatts_table_creat_demo.o
/root/Addons/ble_ctf/main/gatts_table_creat_demo.c:25:29: fatal error: esp_gap_ble_api.h: No such file or directory
compilation terminated.
make[1]: *** [/root/esp/esp-idf/make/component_wrapper.mk:290: gatts_table_creat_demo.o] Error 1
make: *** [/root/esp/esp-idf/make/project.mk:552: component-main-build] Error 2
freqyXin commented 5 years ago

I found my error.

For those that may encounter the same, be sure you have selected the Bluetooth components in the makeconfig menu.

image