Hello
I am trying to build some BLE example
in order to do so I need to add BLE component to the cdef file
the problem is that build does not find the BLE libraries
this is my define file:
sources:
{
bluetoothSensorTagComponent.c
}
cflags:
{
-std=c99
// pkg-config --cflags glib-2.0 gio-2.0 gio-unix-2.0
-pthread
-I${LEGATO_SYSROOT}/usr/include/glib-2.0
-I${LEGATO_SYSROOT}/usr/lib/glib-2.0/include
-I${LEGATO_SYSROOT}/usr/include/gio-unix-2.0
}
// Bind resources from the target module into your application.
requires:
{
// IPC APIs used by this component.
api:
{
}
// File paths local to your target module.
file:
{
}
// Directories on your target module to make accessible to the app.
dir:
{
}
// Linux filesystem device paths.
device:
{
}
// Shared libraries pre-installed on the module.
lib:
{
gio-2.0
gobject-2.0
glib-2.0
}
component:
{
bluezDBus
json
}
}
this is the error I get:
Executing task: mksys ${LEGATO_DEF_FILE} -s components -t ${LEGATO_TARGET} -w ${LEGATO_OBJECT_DIR} -o ${LEGATO_OUTPUT_DIR} -d ${LEGATO_DEBUG_DIR} && update ${LEGATO_UPDATE_FILE} <
[1/1] Regenerating build script
FAILED: /home/administrator/myWorkspace/_build_mySystem/wp77xx/build.ninja
mksys --dont-run-ninja “/home/administrator/myWorkspace/mySystem.sdef” “-s” “components” “-t” “wp77xx” “-w” “./_build_mySystem/wp77xx” “-o” “.” “-d” “.debug”
** ERROR:
/home/administrator/myWorkspace/components/bluetoothSensorTagComponent/Component.cdef:35:8: error: * Couldn’t find file ‘io.api.’
ninja: error: rebuilding ‘/home/administrator/myWorkspace/_build_mySystem/wp77xx/build.ninja’: subcommand failed
The terminal process “bash ‘-c’, ‘mksys ${LEGATO_DEF_FILE} -s components -t ${LEGATO_TARGET} -w ${LEGATO_OBJECT_DIR} -o ${LEGATO_OUTPUT_DIR} -d ${LEGATO_DEBUG_DIR} && update ${LEGATO_UPDATE_FILE}’” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Executing task: mksys ${LEGATO_DEF_FILE} -s components -t ${LEGATO_TARGET} -w ${LEGATO_OBJECT_DIR} -o ${LEGATO_OUTPUT_DIR} -d ${LEGATO_DEBUG_DIR} && update ${LEGATO_UPDATE_FILE} <
[1/1] Regenerating build script
FAILED: /home/administrator/myWorkspace/_build_mySystem/wp77xx/build.ninja
mksys --dont-run-ninja “/home/administrator/myWorkspace/mySystem.sdef” “-s” “components” “-t” “wp77xx” “-w” “./_build_mySystem/wp77xx” “-o” “.” “-d” “.debug”
** ERROR:
/home/administrator/myWorkspace/components/bluetoothSensorTagComponent/Component.cdef:62:8: error: Couldn’t find component ‘bluezDBus’.
ninja: error: rebuilding ‘/home/administrator/myWorkspace/_build_mySystem/wp77xx/build.ninja’: subcommand failed
The terminal process “bash ‘-c’, ‘mksys ${LEGATO_DEF_FILE} -s components -t ${LEGATO_TARGET} -w ${LEGATO_OBJECT_DIR} -o ${LEGATO_OUTPUT_DIR} -d ${LEGATO_DEBUG_DIR} && update ${LEGATO_UPDATE_FILE}’” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.