QSerialPort
-
Hi tried to get to the code for Serial Port but it very complicated. Have to do a lot of registration and because I started with Linux just last month it will take more time that I have. Project have to be ready yesterday so I'm in trouble. If it possible can I found the famous SerialPort source code on the other way. You put changed *.cpp file but without all others file I can't do much with it.
-
- download and install Git
- enter command to download sources:
@git clone git://gitorious.org/qt/qtserialport.git@ - enter command to change directory:
@cd qtserialport@ - enter command to fetch a patch:
@git fetch https://codereview.qt-project.org/p/qt/qtserialport refs/changes/14/85414/2 && git checkout FETCH_HEAD@ - Run QtCreator and open
@qtserialport/qtserialport.pro@
file in root directory - From the QtCreator, select your Kit with your desired Qt version (5.2) and re-build library
- Open the console and go-to to the "shadow" build directory of the QtCreator
- enter command:
@sudo make install@ - re-run your application and check again
-
Thank you, I'll try right now.
-
had some problem with git but now is OK
-
Now project opens but I have message:
@Executable /home/***/Documents/qtserialport/build-qtserialport-Desktop_Qt_5_2_1_GCC_64bit-Debug/examples/serialport/blockingmaster/blockingmaster does not exist.@
I have correct Kit information. "Shadow" build directory I spouse is "//build-qtserialport-Desktop_Qt_5_2_1_GCC_64bit-Debug" ? -
bq. “Shadow” build directory I spouse is “//build-qtserialport-Desktop_Qt_5_2_1_GCC_64bit-Debug” ?
Yes. Now you should to run "sudo make install" to install QtSerialPort into your Qt 5.2 place (you can check it, see new qserialport*.so in your Qt 5.2 directory).
bq. Now project opens but I have message:
By default, the "make" command build only the library, without the examples.
To build examples you should to enter "make all", or, is more simple - try to open blockingmaster.pro file from QtCreator and re-build an example and to run. :)
-
Thank you. I tried "Terminal" from examples and it not gives error messages but just stop to receive data. Nothing like this happens if I read data from Linux terminal.
-
Thank you for all your time. I really appreciate that. But it seams that QSerialPort have problems. I switched to QBluetooth and now I receive all data as it have to be.
Best regards. -
Can you please repeat again but with the new :
@git fetch https://codereview.qt-project.org/p/qt/qtserialport refs/changes/14/85414/3 && git checkout FETCH_HEAD@
command?
-
***** ~/Documents/qtserialport $ git clone git://gitorious.org/qt/qtserialport.git
Cloning into 'qtserialport'...
remote: Counting objects: 5574, done.
remote: Compressing objects: 100% (2815/2815), done.
remote: Total 5574 (delta 3819), reused 3756 (delta 2719)
Receiving objects: 100% (5574/5574), 1.46 MiB | 840 KiB/s, done.
Resolving deltas: 100% (3819/3819), done.***** ~/Documents $ cd qtserialport
***** ~/Documents/qtserialport $ git fetch https://codereview.qt-project.org/p/qt/qtserialport refs/changes/14/85414/3 && git checkout FETCH_HEAD
fatal: Not a git repository (or any of the parent directories): .git -
Need to do change directory from "~/Documents/qtserialport"
~/Documents/qtserialport $ cd qtserialport
because you do pull into ~/Documents/qtserialport but not into ~/Documents
please try again :)
-
hi again.
Now I tried the new one you sent me. But unfortunately I have the same result. No error messaged but data stops after a few seconds. -
Ok. Many thanks for your time. Seems that the solution of this problem should be postponed until I won't get an Bluetooth dongle and so on.
-
Thank you. If you need to know so use I "Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)" and Qstarz 818XT GPS on
"Linux Mint 14 Nadia". Have a nice weekend.