Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Talk:QBluetoothZero - A Qt bluetooth library

From Wiki
Jump to: navigation, search

Couple of minor issues that caused building QBluetooth to fail:


QBluetooth.pro:

INCLUDEPATH = $$deploy.path$$exportheaders.path/QBlueTooth/

and

INCLUDEPATH = BlueSoleil_SDK_2.0.5/include \

These definitions override the existing include path(s), should use '+=' instead of "=".

And also

\QBluetooth\Connection\ObjectExchange\Server\QBtObjectExchangeServer.h: missing forward declaration:

class QBtObjectExchangeServerPrivate;

-- treinio 11:04, 9 June 2010 (UTC)



The ZIP file is updated, the issues reported are fixed. Thanks!

favoritas37 15:20, 9 June 2010 (UTC)


About this guideline to include the dll in an application:

INCLUDEPATH += /epoc32/include/QBlueTooth
LIBS += -lQBluetooth \
TARGET.CAPABILITY = LocalServices \
NetworkServices \
ReadUserData \
UserEnvironment \
WriteUserData
addFiles.sources = $(EPOCROOT)Epoc32\release\$(PLATFORM)\$(CFG)\QBluetooth.dll
addFiles.path = \sys\bin
DEPLOYMENT += addFiles

What if two different applications need to use QBluetooth.dll ? Suppose we install the first one. If we try to install the second one, we'll get an "update error", and won't be able to install it. This is due that the two installer try to copy the same file to the same location, and then the second try fails. How to solve that?

One way could be renaming the dlls for the separate applications (e.g. using the app uid to rename to something like QBluetooth_0x12345678.dll for an application with uid 0x12345678), but I don't know if this is possible. Any suggestions?

lpvalente

TunSym - PB with libs

Hi, i get 1 error: Could not ind -lBluetoothZero.

the same case with the simulator or desktop. Look, i copied *.dll under Qutemessenger project file/ even under /installqt/mingw/ but i still get this message. .../installqt/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQBluetoothZero

Thanks for any help!!

TunSym 12:51, 8 October 2012 (EEST)

Favoritas37 - Suggestion

Hello TunSym,

About your error, you have a spelling mistake. it is -lQBluetoothZero, not -lBluetoothZero (missing 'Q'). Moreover you can't test it to the simulator because it doesn't support Bluetooth Symulation and when targeting Windows platform you need to use the VS compiler in the Qt Creator, not Mingw (at the time of the creation of the library i was having problems with Mingw and i have not tested to compile it ever since)

PS. check the comment that i have posted in your other question http://www.developer.nokia.com/Community/Wiki/Discovering_Bluetooth_devices_with_the_QBluetoothZero_library#Favoritas37_-_Discovery_example

favoritas37 15:30, 8 October 2012 (EEST)

 

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×