QSerialPort Library for Qt creator 4.8 on Debian 9
-
Hi @aha_1980
Thanks for the reply. Now i can build the library but it is still not visible to Qt creator. When i add CONFIG += serialport to .pro file it is giving the error as follows
Project MESSAGE: Warning: unknown QT: serialport
So still what is going wrong??
Also can you please tell me how to install Qt 5.8 on 32 bit debian 9?? Because i do not want change my windows based GUI every time. I want directly compile project. I do not want to work in lnux environment as i am not familiar with it.Regards,
Digvijay -
Hi @aha_1980
Thanks for the reply. Now i can build the library but it is still not visible to Qt creator. When i add CONFIG += serialport to .pro file it is giving the error as follows
Project MESSAGE: Warning: unknown QT: serialport
So still what is going wrong??
Also can you please tell me how to install Qt 5.8 on 32 bit debian 9?? Because i do not want change my windows based GUI every time. I want directly compile project. I do not want to work in lnux environment as i am not familiar with it.Regards,
DigvijayHi @Digvijay,
I guess you need to call
sudo make install
as last step.But as others said, why don't you install the Qt version supplied by your distribution?
Because i do not want change my windows based GUI every time. I want directly compile project.
Sorry, I don't understand what you mean by this.
Regards
-
wrote on 1 Oct 2018, 11:03 last edited by
Hi
@jsulm said in QSerialPort Library for Qt creator 4.8 on Debian 9:As @SGaist pointed out Debian stable already provides Qt 5.7 (including 32bit).
Yes i know that Qt 5.7 is available. But i do not know how to install it. Do i need to uninstall the Qt 4.8?? And how to install it on linux??
And one important thing is i have only one day of experience in linux. So i am sorry if i am asking silly questions.regards,
Digvijay -
Then before starting to develop you should first get to know the distribution you are using. Start by looking up the Debian package manager:
apt
. Depending on your desktop environment you might even have a GUI on top of it.No you don't need to uninstall anything, Qt 4 and 5 can co-exist without any problem.
-
Hi
@jsulm said in QSerialPort Library for Qt creator 4.8 on Debian 9:As @SGaist pointed out Debian stable already provides Qt 5.7 (including 32bit).
Yes i know that Qt 5.7 is available. But i do not know how to install it. Do i need to uninstall the Qt 4.8?? And how to install it on linux??
And one important thing is i have only one day of experience in linux. So i am sorry if i am asking silly questions.regards,
Digvijay -
Hi @Digvijay,
I guess you need to call
sudo make install
as last step.But as others said, why don't you install the Qt version supplied by your distribution?
Because i do not want change my windows based GUI every time. I want directly compile project.
Sorry, I don't understand what you mean by this.
Regards
wrote on 1 Oct 2018, 12:01 last edited byHi
@aha_1980 said in QSerialPort Library for Qt creator 4.8 on Debian 9:Sorry, I don't understand what you mean by this.
What i mean is that, i have developed my application(UI) on windows. But for some reason i have to put the exe on linux. To do that i have to compile my application in linux or use cross compiler. Compiling application in linux is easier so i am trying to do that.
Regards,
Digvijay -
Hi
@aha_1980 said in QSerialPort Library for Qt creator 4.8 on Debian 9:Sorry, I don't understand what you mean by this.
What i mean is that, i have developed my application(UI) on windows. But for some reason i have to put the exe on linux. To do that i have to compile my application in linux or use cross compiler. Compiling application in linux is easier so i am trying to do that.
Regards,
Digvijay@Digvijay said in QSerialPort Library for Qt creator 4.8 on Debian 9:
Compiling application in linux is easier so i am trying to do that.
Yeah, thats what we do also. Where is your problem with that?
Regarding QtSerialPort, you have several possible solutions:
- use Qt5 as provided by your Linux distribution
- use the Qt5 online installer for 32 bit Linux (I think the last version is Qt 5.5.1)
- compile QtSerialPort for Qt4 yourself
- use a Linux distribution that has a newer Qt5
- compile Qt5 yourself
If you are not limited to 32 Bit Linux, you can install the newest Qt also via the 64 bit online installer.
Regards
-
@Digvijay said in QSerialPort Library for Qt creator 4.8 on Debian 9:
Compiling application in linux is easier so i am trying to do that.
Yeah, thats what we do also. Where is your problem with that?
Regarding QtSerialPort, you have several possible solutions:
- use Qt5 as provided by your Linux distribution
- use the Qt5 online installer for 32 bit Linux (I think the last version is Qt 5.5.1)
- compile QtSerialPort for Qt4 yourself
- use a Linux distribution that has a newer Qt5
- compile Qt5 yourself
If you are not limited to 32 Bit Linux, you can install the newest Qt also via the 64 bit online installer.
Regards
wrote on 2 Oct 2018, 10:16 last edited byHi,
Finally i have installed recent version of Qt and able to use serial library. Thanks for all the help.
Regards,
Digvijay -
How did you finally install it ?
In any case, since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
-
How did you finally install it ?
In any case, since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
wrote on 5 Oct 2018, 12:01 last edited by@SGaist with the library the mistake i was doing is that, i was cloning it two times. For installation of Qt 5 , i had to download right version of Qt which is compatible with my linux then installation part was easy.
Regards,
Digvijay
21/21