Using LIRC in Qt creator
-
@jsulm said in Using LIRC in Qt creator:
@markolino_it said in Using LIRC in Qt creator:
After that i download the project, what i can do ?
Build it.
Is explained here: https://lirc.org/html/install.html#compile
Then link the lirc library to your project.Ok so i downloaded the package and extracted it in a folder.
Now from shell i will go into the folder and type :./configure make sudo make install
Correct ?
Thank you. -
@markolino_it Yes.
But actually, if you're on Linux you can simply install the lirc package and its -dev package. No need to build it by yourself then.
-
@jsulm said in Using LIRC in Qt creator:
@markolino_it Yes.
But actually, if you're on Linux you can simply install the lirc package and its -dev package. No need to build it by yourself then.
I'm on Raspberry pi 3 (raspbian) so I think that is necessary to build it.
Thank you. -
@markolino_it said in Using LIRC in Qt creator:
raspbian
I'm quite sure Raspbian (which is based on Debian) has lirc lib already, you should really check that first before building it by yourself.
-
@markolino_it you didn't even check, did you?
Result of
grep "Package: lirc" Packages
from current stable package list:Package: lirc Package: lirc-compat-remotes Package: lirc-doc Package: lirc-drv-irman Package: lirc-x
-
@artwaw said in Using LIRC in Qt creator:
@markolino_it you didn't even check, did you?
Result of
grep "Package: lirc" Packages
from current stable package list:Package: lirc Package: lirc-compat-remotes Package: lirc-doc Package: lirc-drv-irman Package: lirc-x
Thank you Artur. Sorry just to understand what's the meaning of that?
If I click on this link i can download 3 files.http://archive.raspbian.org/raspbian/dists/stable/main/binary-armhf/
So it is possible to link the package in qt without compile?
I found a way to read an input from photo transistor without lircclick and i'm testing it. But i'm interesting to understand the chain in order to understand the step for use a package in qt as a library.
At the moment i think the order is:
1-download the package
2-build/compile it
3-use makefile
4-?Thank you.
-
@markolino_it Hi,
Use the package manager to install the development package for this library.
Then you can use it as any other dependency for your project. Update the
.pro
file to link to the library. If the headers are installed in a standard location you might not even need to modify the INCLUDEPATH variable. -
@SGaist said in Using LIRC in Qt creator:
@markolino_it Hi,
Use the package manager to install the development package for this library.
Then you can use it as any other dependency for your project. Update the
.pro
file to link to the library. If the headers are installed in a standard location you might not even need to modify the INCLUDEPATH variable.I don't know if in my old version of qt5 there is the package manager. I hope yes.
For sure i will check!
Thank you. -
@markolino_it said in Using LIRC in Qt creator:
I don't know if in my old version of qt5 there is the package manager.
@SGaist was talking about the packet manager of your Linux distribution!
Sinse Raspbian is a Debian derivate you have to use apt.
All you have to do is:
sudo apt install liblirc-dev -
@jsulm said in Using LIRC in Qt creator:
@markolino_it said in Using LIRC in Qt creator:
I don't know if in my old version of qt5 there is the package manager.
@SGaist was talking about the packet manager of your Linux distribution!
Sinse Raspbian is a Debian derivate you have to use apt.
All you have to do is:
sudo apt install liblirc-devOh sorry, now I understand. Yes i use it a lot of course...for the other packages, sorry for that I am a noob of Linux! So I will test the Lirc-less solution and Lirc solution and I let you know.
Thank you.