In my OOT module, I am using `libbluetooth-dev` library by BlueZ. I am using a couple of APIs of it such as `hci_read_clock`. I am using FindBluetooth cmake module (
https://github.com/greatscottgadgets/ubertooth/blob/master/host/cmake/modules/FindBLUETOOTH.cmake) and I thought that I correctly linked the library.
find_package(Bluetooth REQUIRED)
if(NOT LIBBLUETOOTH_FOUND)
message(FATAL_ERROR "bluez (libbluetooth-dev) required")
endif()
include_directories(
${CMAKE_SOURCE_DIR}/lib
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/lib
${CMAKE_BINARY_DIR}/include
${Boost_INCLUDE_DIRS}
${CPPUNIT_INCLUDE_DIRS}
${GNURADIO_ALL_INCLUDE_DIRS}
${LIBBLUETOOTH_INCLUDE_DIR}B
)
link_directories(
${Boost_LIBRARY_DIRS}
${CPPUNIT_LIBRARY_DIRS}
${GNURADIO_RUNTIME_LIBRARY_
DIRS}
${LIBBLUETOOTH_LIBRARIES}
)
And I successfully built and installed my OOT module. To test it, I made a simple flow graph but it fails to run. After some debugging, It seems that I reached at the dead end.