Coder Social home page Coder Social logo

Comments (5)

jloi avatar jloi commented on June 22, 2024 2

Apple removed the IOBluetoothLocalDeviceReadAddress and IOBluetoothLocalDeviceReadClassOfDevice, among others from IOBluetoothUserLib.h since MacOS 10.8 (see API diff). I don't know what to replace those methods with. Using LightBlue may be a dead end for MacOS 11.

from lightblue-0.4.

JuliusNmn avatar JuliusNmn commented on June 22, 2024 2

I have replaced the deprecated function references. The framework builds without errors and seems to be working for my use cases (PyBluez), but I don't know how to properly test it. I have opened a pull request anyway.

from lightblue-0.4.

burricks avatar burricks commented on June 22, 2024 1

Can you please add the link to the PR? I'd like to modify my code in the same way @JuliusNmn

from lightblue-0.4.

jloi avatar jloi commented on June 22, 2024

I got it to compile by changing line 66 in setup.py to

os.system("xcodebuild install -arch 'x86_64' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES ALWAYS_SEARCH_USER_PATHS=NO GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS=NO OTHER_CFLAGS='-Wno-implicit-function-declaration'")

The key here is OTHER_CFLAGS='-Wno-implicit-function-declaration'.

But after that I got a linking error.

"_IOBluetoothLocalDeviceReadAddress", referenced from:
      +[BBLocalDevice getAddressString] in BBLocalDevice.o
  "_IOBluetoothLocalDeviceReadClassOfDevice", referenced from:
      +[BBLocalDevice getClassOfDevice] in BBLocalDevice.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1

from lightblue-0.4.

JuliusNmn avatar JuliusNmn commented on June 22, 2024

Here you go: Pull request 19

from lightblue-0.4.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.