PDA

View Full Version : bluetooth tennis example???



mahsa
7th August 2012, 06:42
Hi guys

I can not find BLUETOOTH TENNIS in Qt creator examples .

can anyone attach its FOLDER here so that i can download it?

thanx a lotin advance

ChrisW67
7th August 2012, 08:22
That would be because it is part of neither the base Qt libraries nor Qt Creator. That example is part of Qt Mobility.

Here is the source:
http://qt.gitorious.org/qt-mobility/qt-mobility/trees/master/demos/bttennis

mahsa
7th August 2012, 08:47
now that i simply want to Build this example there are 20 errors!!!!

one of them says :
QAbstractSocket: no such file or directory

what should I do ?
is it because of my Qt creator , I mean may be it is an old version,I don't know what to do:confused:

ChrisW67
7th August 2012, 23:11
one of them says :
QAbstractSocket: no such file or directory

I bet that was not the first error message. qmake will probably have generated some... and that is before the compiler is run. If you read all the error messages and warnings you will get a clue that perhaps you need more than just the sources in the folder I linked to. Read the *.pro file. You need all of Qt Mobility.

If you are using the Qt SDK then you can probably download it using the SDK updater.

mahsa
10th August 2012, 06:24
thanx for ur help but it didn't work:(
there are lots of files and I do not know whatelse I should include and where i should paste new .h files
I know that it's all about QtMobility but I do not know where to put this folder exactly

ChrisW67
10th August 2012, 07:06
Download Qt Mobility as an archive or using git
Unzip the archive if needed
Build Qt Mobility, like almost every other package:

./configure
qmake
make
make install



Use the --help option to "configure" and you might see some options regarding demos and examples.