Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] QTSerialPort, 4.8.4 [install_target_headers] Error 1
QtWS25 Last Chance

[Solved] QTSerialPort, 4.8.4 [install_target_headers] Error 1

Scheduled Pinned Locked Moved Installation and Deployment
15 Posts 3 Posters 7.9k Views
  • 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.
  • R Offline
    R Offline
    Ramon
    wrote on last edited by
    #3

    Hi,

    Thanks for the reply.

    When I type 'sudo install' in Make Arguments, it appears as 'make sudo install in /home/aswin/Downloads/build-qtserialport-Beaglebone-Debug'.

    If it is to run as root, 'sudo' should appear before 'make', right? How do I do it?

    I'm new to Linux. Please help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      like I wrote it's

      @sudo make install@

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ramon
        wrote on last edited by
        #5

        Hi,

        I tried your suggestion and received the following error in Compile Output window:

        @make[3]: Leaving directory /home/aswin/Downloads/build-qtserialport-Beaglebone-Debug/tests/manual/qserialport' make[2]: Leaving directory /home/aswin/Downloads/build-qtserialport-Beaglebone-Debug/tests/manual'
        make[1]: Leaving directory /home/aswin/Downloads/build-qtserialport-Beaglebone-Debug/tests' 08:56:00: The process "/usr/bin/make" exited normally. 08:56:00: Starting: "/usr/bin/make" sudo make install make: *** No rule to make target sudo'. Stop.
        08:56:00: The process "/usr/bin/make" exited with code 2.
        Error while building/deploying project qtserialport (kit: Beaglebone)
        When executing step 'Make'
        08:56:00: Elapsed time: 00:42.@

        Screenshot of what I did:
        http://s21.postimg.org/b8tjji61j/Screenshot_from_2014_06_27_08_56_04.png

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          If you look again at your screen shot you'll see that you have

          @make sudo make install@

          AFAIK, you'll need to call sudo make install from a terminal.

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

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Ramon
            wrote on last edited by
            #7

            Hi,
            Could you tell how to go about it?
            If it could take lots of time to get it right, please tell if it's possible to acess serialport from QT without serialport library support.

            This is my requirement:

            1. Access the serial port (ttyO0) to send 4-5 bytes.
            2. Poll the serial port (interrupt is also fine) to receive one byte and respond by sending 3-4 bytes.
            3. After several seconds, receive 80-100kB of data and store in a text file.
            4. Acknowledge by sending one byte.

            In short, I just need to know how to poll and send data to the serial port (/dev/ttyO0) without installing Serialport library.

            Thank you.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Just open a terminal, go to the directory where you build QtSerialPort and call sudo make install

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

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Ramon
                wrote on last edited by
                #9

                Hi,

                I logged into Ubuntu as root and then ran the build process for serialport. Now the autocomplete feature in QT suggests 'Qtserialport' when I type Qt. So I guess it's installed. Will try running small program to access the port and get back. Thanks a lot.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  You're welcome !

                  Don't forget, don't do development as root.

                  Since it's all working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

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

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    manolia
                    wrote on last edited by
                    #11

                    Can you please update this thread? I don't know how to get to "sudo make install" I'm trying to crosscompile on a beaglebone. is there an extension to this command? I'm receiving error:
                    make: *** No rule to make target 'instal'. stop.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      manolia
                      wrote on last edited by
                      #12

                      Sorry. I actually fixed it. Since I work on Beaglebone, there is a seperate build file created out of project one. build-{project name}-BeagleBone-Debug

                      Have to go to this directory and type "sudo make install"

                      and CONFIG += serialport
                      on the .pro file's 2nd line; of project where this will be used.

                      note: I was struggled a lot, so I hope will be useful for anyone working with cross compiling and QtSerialPort

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Ramon
                        wrote on last edited by
                        #13

                        Many thanks for updating.

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          Ramon
                          wrote on last edited by
                          #14

                          Please let me know if you can get the serial port (UART) working.

                          After installation I ran the sample code given on QTSerialPort wiki, but it detected only the USB port. Any idea why the serialport (ttyO0) doesn't get detected? http://qt-project.org/forums/viewthread/44916/#185469

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            manolia
                            wrote on last edited by
                            #15

                            Yeah. I work with rfid reader through usb, but i can only see COM ports. Maybe CreateFile for a com port, read from ttyO0 and write on the new file? if QSerialPort is essential. If not you can stick to reading from the UART file.

                            I might be wrong. I just started to use C++ and Qt.

                            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