I’m trying to build the BluetoothSensorTag sample project from the mangOH/mangOH repository. Unfortunately, this project fails to build. Before building, I synced the repo to the latest. I also updated my leaf profile, which is currently mangOH-yellow-wp77xx_0.3.0.
Source:
When I run mkapp -t wp77xx bluetoothSensorTag.adef, I get the following error.
You need to set the BSEC_DIR environment variable to the file system path where the Bosch Bsec library can be found. If you run make yellow_wp77xx, it should give you some more helpful error messages. But, basically, you download the zip file from the link below and unzip it in your components/boschBsec directory.
Alternatively, if you don’t care about using the environmental sensor, you can comment-out the environment app and the related bindings in yellow.sdef.
As @jchitty mentioned, you can likely fix your problem by setting $BSEC_DIR and building the whole system. If you just want to build the bluetoothSensorTag app, then you need to let the mkapp program know where to find the bluezDBus component. That component is located in the components subdirectory of the mangOH repository. So you want to run:
I have a quick follow up question for you or @dfrey. If I need to use the bluezDBus component in a custom project, do I need to put the component directory in my project, or is there a way to reference it?
For example, I target the Legato Root directory using $LEGATO_ROOT to include the curl component, but the Legato components directory does not contain bluezDBus.
I’m assuming the MangOH project is a layer above Legato so the bluezDBUS component needs to be dropped into my project. Is this correct?
You either have to put the parent directory (the one that contains the directory that contains Component.cdef into the componentSearch: { } section of your SDEF or you can pass --source-search /path/to/parent/dir to mksys or mkapp.