December 23, 2011

ksiedzulek ksiedzulek
Lab Rat
17 posts

Demos and examples problem

 

‘Demos and Examples’ problem
Hi,

Qt is something new for me, but I like power it has I have created one project for school but I want more I can’t figure out why examples don’t work:/ I have installed Qt SDK on mac and linux and I have these same problems on mac and linux with these same examples.

I try tu run ‘Bluetooth Scanner Example’ and these are errors:
error: qmobilityglobal.h: No such file or directory

error: qbluetoothlocaldevice.h: No such file or directory

error: expected constructor, destructor, or type conversion before ‘class’

error: ‘QTM_END_NAMESPACE’ does not name a type

error: ‘DeviceDiscoveryDialog’ was not declared in this scope

error: expected `;’ before ‘d’

error: ‘d’ was not declared in this scope

I am sure that I have to configure something to work properly.
I hope U help me

8 replies

December 23, 2011

ksiedzulek ksiedzulek
Lab Rat
17 posts

please help me

December 24, 2011

Volker Volker
Robot Herder
5428 posts

Patience is a virtue. It’s acceptable to bump a topic after waiting a few days, not a few hours.

December 24, 2011

Bananas Bananas
Lab Rat
2 posts

Same issues here.

Documented example missing.
Existing examples fails to compile.
The example that did compile and run had text overwriting other text. Can’t read. (Flikr) And it throws an error “invalid drawable.”

See my longish rant in response to “What should be downloaded to use Qt?”

December 25, 2011

010110102 010110102
Lab Rat
18 posts

you should perhaps look into this right here:
http://doc.qt.nokia.com/qtmobility/btscanner.html
I presume it is your example?
There is no such file as: “qbluetoothlocaldevice.h” … sooo why is it included somewhere in your project? ;)
I would strongly advice you (this is what I do when my examples don’t work)
Just make a new project, get the code from the link above and just copy+paste.
Afterwards its normally fine.

have a nice day.

December 25, 2011

010110102 010110102
Lab Rat
18 posts

Ok, now after trying this myself… it simply does not work :D
Which brings us to the question, where are the missing libraries…
They are probably in (as stated in .pro file:)
INCLUDEPATH += ../../src/connectivity/bluetooth DEPENDPATH += ../../src/connectivity/bluetooth

well I don’t have this “connectivity” BUT you should have a closer look at the auto updater of Qt Creator, perhaps you will be lucky :)

cheers mate.

December 25, 2011

ksiedzulek ksiedzulek
Lab Rat
17 posts

There is no such file as: “qbluetoothlocaldevice.h” … sooo why is it included somewhere in your project? ;)

there is,

under device.cpp. it’s one of a headers.

I believe that on this forum must be at least one person who develop bluetooth application and know how to set up Qt to run examples.

I think that problem is because compiler doesn’t know where are libraries. I also, don’t have this paths:

INCLUDEPATH += ../../src/connectivity/bluetooth DEPENDPATH += ../../src/connectivity/bluetooth

i found this path in file “qt-mobility-opensource-src-1.2.0.tar.gz”, but why install it if qtmobility is part of Qt SDK? Ignoring this fact, I have tried install qmobility from open source but there are some errors:/

I also did some experiment:
‘Bluetooth scanner example’ is desktop app, but I add simulator and run and build for simulator. And it works-but not properly:/ scan button is not active:/

now ,because it’s my 12 attempt I also confused about what should I install:/ I reinstall Xcode and I thought after downloading Qt SDK everything will be fine. I have found these files:
http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.8.0.dmg
http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.8.0-debug-libs.dmg ,I am very confused what to do:/ I need instruction what install and in what order.

December 25, 2011

010110102 010110102
Lab Rat
18 posts

ksiedzulek wrote:
bq. There is no such file as: “qbluetoothlocaldevice.h” … sooo why is it included somewhere in your project? ;)

there is,

under device.cpp. it’s one of a headers.

I believe that on this forum must be at least one person who develop bluetooth application and know how to set up Qt to run examples.

I think that problem is because compiler doesn’t know where are libraries. I also, don’t have this paths:

INCLUDEPATH += ../../src/connectivity/bluetooth DEPENDPATH += ../../src/connectivity/bluetooth

i found this path in file “qt-mobility-opensource-src-1.2.0.tar.gz”, but why install it if qtmobility is part of Qt SDK? Ignoring this fact, I have tried install qmobility from open source but there are some errors:/

I also did some experiment:
‘Bluetooth scanner example’ is desktop app, but I add simulator and run and build for simulator. And it works-but not properly:/ scan button is not active:/

now ,because it’s my 12 attempt I also confused about what should I install:/ I reinstall Xcode and I thought after downloading Qt SDK everything will be fine. I have found these files:
http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.8.0.dmg
http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.8.0-debug-libs.dmg ,I am very confused what to do:/ I need instruction what install and in what order.

Ok, first of all, I stated… the FILE is missing. The header is declared, yes but that is the error.
I searched my libraries and you should too and there are no “connectivity” libraries, sooo you should probably update your Qt application and get those libraries.

And I Just installed one package for mac back in the days sooo…. why do you need those two? :)

December 27, 2011

ksiedzulek ksiedzulek
Lab Rat
17 posts

ok, I have set it up. I compile from source library and qtmobile,.. but there are still little problems-I try to get answer in second topic I create:)

 
  ‹‹ include path added but still not able to include files      problems with mixing openGL and native painting ››

You must log in to post a reply. Not a member yet? Register here!