Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile from command line. #2

Open
shmohawk opened this issue Jul 22, 2024 · 1 comment · May be fixed by #3
Open

Doesn't compile from command line. #2

shmohawk opened this issue Jul 22, 2024 · 1 comment · May be fixed by #3

Comments

@shmohawk
Copy link

shmohawk commented Jul 22, 2024

Mostly because ld can't find symbols. Adding a blueutil.h with following content fixed it for me:

//
//  blueutil.h
//  blueutil
//
//  Created by Brian Reiter on 4/27/15.
//
//

#ifndef blueutil_blueutil_h
#define blueutil_blueutil_h

int BTPowerState();
int BTSetPowerState(int powerState);
void BTStatus();

#endif

Now it compiles with clang -framework Foundation -framework IOBluetooth -o blueutil blueutil.c (or clang++ -framework Foundation -framework IOBluetooth -o blueutil blueutil.m for the ObjC version).

It may also be noted that if Bluetooth can't be activated via the control panel, neither can blueutil. But that's a different issue.

@shmohawk
Copy link
Author

shmohawk commented Jul 24, 2024

But that's a different issue.

BrcmPatchRAM. Afterwards blueutil works fine on 10.15.

@shmohawk shmohawk linked a pull request Jul 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant