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. Error message: "Skipping incompatible ..." Program building
QtWS25 Last Chance

Error message: "Skipping incompatible ..." Program building

Scheduled Pinned Locked Moved Installation and Deployment
serialportqt5.4error
11 Posts 3 Posters 5.5k 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.
  • G Offline
    G Offline
    GenisiusH
    wrote on 23 May 2015, 08:52 last edited by
    #1

    Hello everyone, I installed Qt 5.4.x and start to make a GUI program using Qt and connect the GUI to Arduino via QSerialPort.

    However, I got serious problem during the deployment. The error messages are:

    skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5Widgets.so when searching for -lQt5Widgets
    skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5Gui.so when searching for -lQt5Gui
    skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5SerialPort.so when searching for -lQt5SerialPort
    skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5Core.so when searching for -lQt5Core

    What are these telling us? And how to solve this problem?

    Thank you in advance!

    Best Regards,
    Gen

    K 1 Reply Last reply 23 May 2015, 09:23
    0
    • G GenisiusH
      23 May 2015, 08:52

      Hello everyone, I installed Qt 5.4.x and start to make a GUI program using Qt and connect the GUI to Arduino via QSerialPort.

      However, I got serious problem during the deployment. The error messages are:

      skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5Widgets.so when searching for -lQt5Widgets
      skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5Gui.so when searching for -lQt5Gui
      skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5SerialPort.so when searching for -lQt5SerialPort
      skipping incompatible /opt/Qt5.4.1/5.4/gcc/lib/libQt5Core.so when searching for -lQt5Core

      What are these telling us? And how to solve this problem?

      Thank you in advance!

      Best Regards,
      Gen

      K Offline
      K Offline
      koahnig
      wrote on 23 May 2015, 09:23 last edited by
      #2

      @GenisiusH
      Hi and welcome to devnet

      Do you have the newest version of gcc installed?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GenisiusH
        wrote on 23 May 2015, 09:35 last edited by
        #3

        @koahnig

        Yes, I just installed the latest GCC version 4.9. And it still shows the same errors.

        Oh, And one more thing, I got another error message while doing qDebug() command. It says: undefined reference to `QDebug::~QDebug()'

        What are these problems? I tried to google everything, and people says that the Qt is not compatible to the 32-bit version. Any helps? Thanks!

        K 1 Reply Last reply 23 May 2015, 09:37
        0
        • G GenisiusH
          23 May 2015, 09:35

          @koahnig

          Yes, I just installed the latest GCC version 4.9. And it still shows the same errors.

          Oh, And one more thing, I got another error message while doing qDebug() command. It says: undefined reference to `QDebug::~QDebug()'

          What are these problems? I tried to google everything, and people says that the Qt is not compatible to the 32-bit version. Any helps? Thanks!

          K Offline
          K Offline
          koahnig
          wrote on 23 May 2015, 09:37 last edited by
          #4

          @GenisiusH
          Are you mixing 64 bit and 32 bit linux?

          Vote the answer(s) that helped you to solve your issue(s)

          G 1 Reply Last reply 24 May 2015, 01:40
          0
          • K koahnig
            23 May 2015, 09:37

            @GenisiusH
            Are you mixing 64 bit and 32 bit linux?

            G Offline
            G Offline
            GenisiusH
            wrote on 24 May 2015, 01:40 last edited by
            #5

            @koahnig

            I think yes. Because i tried to install the 64-bit Qt in 64 bit Ubuntu, and it does not work.

            Any solution?

            Regards,
            Gen

            K 1 Reply Last reply 24 May 2015, 09:38
            0
            • G GenisiusH
              24 May 2015, 01:40

              @koahnig

              I think yes. Because i tried to install the 64-bit Qt in 64 bit Ubuntu, and it does not work.

              Any solution?

              Regards,
              Gen

              K Offline
              K Offline
              koahnig
              wrote on 24 May 2015, 09:38 last edited by
              #6

              @GenisiusH
              In January I have installed the Qt suite on Ubuntu 64 bit without major issues. However, I am typically working on windows. linux is more of a side track.
              IIRC you can use the Qt lib version including creator as supplied with the distribution. However, this is typically behind, but it should fit with your operation system and being 64 bit.
              When you are installing a new version of Qt you shall use the online installer. It should get you guided to version (64 bit in your case). The only recommendattion I can provide is to install as much through this installer. Furthermore, you should check if there parts (e.g. compiler) are installed by mistake as 32 bit.
              I will flag this post possibly bringing it to the attention of someone with more sound Linux installation experience.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 24 May 2015, 21:06 last edited by
                #7

                Hi and welcome to devnet,

                The recommendations of @koahnig are a good starting point. If you are unsure about the architecture of your installed Qt libraries, run file /opt/Qt5.4.1/5.4/gcc/lib/libQt5Widgets.so.

                Qt can run on both 32 and 64bit OSes, the only thing you have to take care of is installing the corresponding version.

                Also, what Linux distribution are you currently running ?

                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
                • G Offline
                  G Offline
                  GenisiusH
                  wrote on 25 May 2015, 07:45 last edited by
                  #8

                  @koahnig @SGaist

                  Thank you for your suggestion. I think I really need to re-install my Qt version with 64-bit one. Because I installed 32-bit Qt for my 64-bit computer.

                  I am using Ubuntu 14.04 LTS, with GCC version 4.9, 64-bits.
                  Is there any other solution I can do? Because downloading Qt installer takes a long time for me. I tried the command, as @SGaist suggested, but it says about the version of Qt:

                  /opt/Qt5.4.1/5.4/gcc/lib/libQt5Widgets.so: symbolic link to `libQt5Widgets.so.5.4.1'

                  Ow, btw, i got another problem about qDebug(). It says "undefined reference to `QDebug::~QDebug()'". Any idea about this problem?

                  Thanks, guys...

                  Regards,
                  Gen

                  K 1 Reply Last reply 25 May 2015, 09:57
                  0
                  • G GenisiusH
                    25 May 2015, 07:45

                    @koahnig @SGaist

                    Thank you for your suggestion. I think I really need to re-install my Qt version with 64-bit one. Because I installed 32-bit Qt for my 64-bit computer.

                    I am using Ubuntu 14.04 LTS, with GCC version 4.9, 64-bits.
                    Is there any other solution I can do? Because downloading Qt installer takes a long time for me. I tried the command, as @SGaist suggested, but it says about the version of Qt:

                    /opt/Qt5.4.1/5.4/gcc/lib/libQt5Widgets.so: symbolic link to `libQt5Widgets.so.5.4.1'

                    Ow, btw, i got another problem about qDebug(). It says "undefined reference to `QDebug::~QDebug()'". Any idea about this problem?

                    Thanks, guys...

                    Regards,
                    Gen

                    K Offline
                    K Offline
                    koahnig
                    wrote on 25 May 2015, 09:57 last edited by
                    #9

                    @GenisiusH
                    I am wondering if there is a mismatch resepctively a mix between Qt 4 and Qt5 in addition. What you are describing is really strange.

                    Probably it is best to remove an eventually installed Qt version (4 and 5) from repository before you install Qt5.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      GenisiusH
                      wrote on 25 May 2015, 10:39 last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        GenisiusH
                        wrote on 25 May 2015, 10:43 last edited by
                        #11

                        @koahnig

                        Not really sure though.... But the problem was solved as soon as I installed Qt Creator from Software Centre, while keeping the libraries for QtSerialPort from .run file downloaded from the website. I really guess that this is about the 64-bit and 32-bit version problem.

                        Thank you very much for your attention! :D

                        Regards,
                        Gen

                        1 Reply Last reply
                        0

                        10/11

                        25 May 2015, 10:39

                        • Login

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