Open mrSilkie opened 3 years ago
Hi @mrSilkie
The ble_mesh_example_init.h
is included in the common_components. When trying to include the header file, the extra component needs to be added into the CMakeLists.txt
or Makefile
.
@chegewara Thanks for the update.
Thanks.
Hi @mrSilkie
The
ble_mesh_example_init.h
is included in the common_components. When trying to include the header file, the extra component needs to be added into theCMakeLists.txt
orMakefile
.Like this:
@chegewara Thanks for the update.
Thanks.
Great reply. I'm still a bit stuck. My CMakeLists.txt looks like;
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/bluetooth/esp_ble_mesh/common_components/example_init
EXTRA_COMPONENT_DIRS ~/esp/esp-idf-lib/components/
EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/components/bt/esp_ble_mesh/api
EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/bluetooth/esp_ble_mesh/common_components/example_init)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(smartbucket)
Which fixed the ble_mesh_example_init.h not found error but the following line produces a second BLE related error.
../main/smartbucket.c:27:10: fatal error: esp_ble_mesh_defs.h: No such file or directory
#include "esp_ble_mesh_defs.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[856/992] Building C object esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c.obj
ninja: build stopped: subcomma
I really appreciate your first reply but I feel like I'm still a bit useless here. How am i meant to know to include /common_components/example_init to resolve ble_mesh_example_init.h?
I am asking as I now want to resolve esp_ble_mesh_defs.h and have already included EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/components/bt/esp_ble_mesh/api
Please list the structure of project.
And, try to add private requirements components. Reference.
I have IDF v4.1 installed
results in many familiar lines...
Any help will be much appreciated!:+1:
I am also trying to incorporate the mesh example into a folder in my own directory so any pointers to what changes i need to make to my CMakeLists is appreciated. I have already tried the following
with no success