Hello everyone,
I’m writing some code to manage a GPS sensor that relies on its own sdk.
This is what I did:
I created a new package in ISACC_ROOT/packages /Sensor/ with it’s Sensor.hpp and Sensor.cpp and BUILD file.
There is a folder in ISAAC_ROOT/packages/Sensor/SensorSDK that contains several folders and subfolders with .h and .c to manage the sensor.
The BUILD file I wrote looks like this:
load("//engine/build:isaac.bzl", "isaac_cc_module")
isaac_cc_module(
name = "Sensor",
srcs = ["Sensor.cpp"],
hdrs = ["Sensor.hpp"],
deps = [":SensorSDK"]
)
cc_library(
name = "SensorSDK",
srcs = glob(["SensorSDK/**/*.c", "SensorSDK/**/*.h"]),
includes = ["SensorSDK/library/include/", "SensorSDK/library/user_functions/", "SensorSDK/utilities/include/"]
)
Everything seems to compile, however when I try to run any app that includes this module, I get an undefined symbol at runtime. The undefined symbol is one of the functions of the SDK so this seems a linking problem, but I have no clues on what I’m doing wrong.
Thanks for your help!