Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    [SOLVED] Compile or download libQtSerialPort.so.1 for QtSerialPort

    Mobile and Embedded
    2
    10
    5082
    Loading More Posts
    • 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.
    • L
      lfxciii last edited by

      Hi

      I'm trying to build a project for an embedded linux device. But i get libQtSerialPort.so.1 not found. i'm using qt 4.8, can i download the libQtSerialPort.so.1 file somewhere, or can i compile it manually?

      any help is appreciated.

      Thanks

      Ruben

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        First result of a google search is "this":http://qt-project.org/wiki/QtSerialPort

        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 Reply Quote 0
        • L
          lfxciii last edited by

          Hi SGaist

          I had a look at the link before I posted, but couldn't get the build going, that's what i'm having problems with. it works on my desktop but it fails on my embedded device because it cant find this libQtSerialPort.so.1 library.

          Maybe i'm doing something wrong, don't know, but I open the serialport project and go build. have you build this project before, or what do you use for serialports?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Then:

            • What's your building error ?
            • What's your target processor ?

            If your target uses the same process type (i.e. x86) you can copy libQtSerialPort.so* to the right place on your device (i.e in the same folder of your Qt installation)

            Currently I use my own implementation based on libftd2xx (the device I connect to are only using ftdi chips).

            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 Reply Quote 0
            • L
              lfxciii last edited by

              Hi

              Only now had the time to come back to this issues.

              I'm trying to compile it for a ARM mini2440. I built it for my host machine and it works create.

              the error I'm getting is about <QtSerialPort/QserialPort> not being found.

              I followed the qmake then make then make install. Not sure how to compile and install it for a mini2440, would appreciate it if you could point me in the right direction.

              Thanks

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                The same as for your host machine but using the qmake built for your Qt arm version.

                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 Reply Quote 0
                • L
                  lfxciii last edited by

                  thank you for your reply.

                  i used the qmake for my arm, but then when i run make, i get the following:

                  :42:25: fatal error: QtTest/QtTest: No such file or directory

                  i think this is the unit test project, but not sure where its supposed to be.

                  any idea?

                  1 Reply Last reply Reply Quote 0
                  • L
                    lfxciii last edited by

                    eventhough it threw an error on QtTest, it looks as if the projects were built, but i still need to understand why its looking for QtTest.

                    I appreciate your help.

                    1 Reply Last reply Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      AFAIK it should have been built & installed when you cross-compiled Qt

                      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 Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        As you said, it might be the tests from QtSerialPort. You can grep through the sources to find which files include QTest

                        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 Reply Quote 0
                        • First post
                          Last post