Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for MCUs
  4. Using LIRC in Qt creator
Forum Updated to NodeBB v4.3 + New Features

Using LIRC in Qt creator

Scheduled Pinned Locked Moved Unsolved Qt for MCUs
12 Posts 4 Posters 833 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M markolino_it

    Hi to all,
    i'm trying to understand how to make an application using the LIRC (infrared remote control) package in Qt creator.
    Anyone has experience with that?
    At this link is possible to see the project and download the package : LIRC project

    Until now i make only one project in Qt creator using a package, but on the supplier site i found the instruction, but unfortunately i cannot found any instruction for LIRC. After that i download the project, what i can do ?

    Thank you.

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @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.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    M 1 Reply Last reply
    0
    • jsulmJ jsulm

      @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.

      M Offline
      M Offline
      markolino_it
      wrote on last edited by markolino_it
      #3

      @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.

      jsulmJ 1 Reply Last reply
      0
      • M markolino_it

        @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.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @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.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        0
        • jsulmJ jsulm

          @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.

          M Offline
          M Offline
          markolino_it
          wrote on last edited by markolino_it
          #5

          @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.

          jsulmJ artwawA 2 Replies Last reply
          0
          • M markolino_it

            @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.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @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.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M markolino_it

              @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.

              artwawA Offline
              artwawA Offline
              artwaw
              wrote on last edited by
              #7

              @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
              

              For more information please re-read.

              Kind Regards,
              Artur

              M 1 Reply Last reply
              2
              • artwawA artwaw

                @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
                
                M Offline
                M Offline
                markolino_it
                wrote on last edited by markolino_it
                #8

                @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.

                SGaistS 1 Reply Last reply
                0
                • M markolino_it

                  @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.

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  @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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  M 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    @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.

                    M Offline
                    M Offline
                    markolino_it
                    wrote on last edited by
                    #10

                    @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.

                    jsulmJ 1 Reply Last reply
                    0
                    • M markolino_it

                      @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.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @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

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      M 1 Reply Last reply
                      1
                      • jsulmJ jsulm

                        @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

                        M Offline
                        M Offline
                        markolino_it
                        wrote on last edited by
                        #12

                        @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-dev

                        Oh 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.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved