romixlab / ble-buddy

Qt BLE device discovery and basic services
MIT License
0 stars 0 forks source link

Undefined reference #1

Open wiesener opened 4 years ago

wiesener commented 4 years ago

Hi,

I am trying to use your code on a MAC. I've included it into QtCreator but I get: Undefined symbols for architecture x86_64: "BLEServiceInfo::characteristic(QString const&) const", referenced from: UARTService::serviceStateChanged(QLowEnergyService::ServiceState) in uartservice.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [nusinterfacetest] Error 1

Any suggestion? Cheers,

C.W.

romixlab commented 4 years ago

Hi! Sorry for late answer, try latest commit. I've successfully used this code in two not-so-serious projects with nrf51822, device and service discovery + characteristics read/write/notify should work. If you need examples, I can refine one of the projects a bit and upload it.

wiesener commented 4 years ago

Okay I've also managed it but only by adding two methods. Yes if you could provide an example would be great.

romixlab commented 4 years ago

Uploaded simple example and reworked cmake build scripts a little bit.