Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Regarding Qwt for charts
Forum Updated to NodeBB v4.3 + New Features

Regarding Qwt for charts

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
37 Posts 2 Posters 11.6k Views 1 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.
  • Pradeep KumarP Pradeep Kumar

    Hi,

    I want Qwt for charts in Qt,
    i followed Qwt docs

    getting below error

    /usr/bin/ld: skipping incompatible /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so when searching for -lqwt
    /usr/bin/ld: cannot find -lqwt
    collect2: error: ld returned 1 exit status
    make[1]: *** [plugins/designer/libqwt_designer_plugin.so] Error 1
    make[1]: Leaving directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer'
    make: *** [sub-designer-install_subtargets-ordered] Error 2
    

    while running make command .

    As anyone tried Qwt and can anyone provide guidance?.

    Thanks,

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

    @Pradeep-Kumar said in Regarding Qwt for charts:

    skipping incompatible /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so when searching for -lqwt

    Take a closer look at the line above: it tells you that the lib is incompatible. That means it is built for a different processor architecture. You're most probably mixing x86 and x86_64. How did you build QWT?
    What does

    file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
    

    say?

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

    1 Reply Last reply
    1
    • Pradeep KumarP Offline
      Pradeep KumarP Offline
      Pradeep Kumar
      wrote on last edited by Pradeep Kumar
      #3

      I downloaded Qwt from the below link
      https://sourceforge.net/projects/qwt/files/qwt/ 0_1498725671536_qwtdownlaods.png

      I downloaded for ubuntu, then follwed the steps to build Qwt,

      command :

      1. cd to respective directory
        cd /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3
      2. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ /usr/local/Qt-5.4.0/bin/qmake qwt.pro.
      3. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make.

      Thanks,

      Pradeep Kumar
      Qt,QML Developer

      jsulmJ 1 Reply Last reply
      0
      • Pradeep KumarP Pradeep Kumar

        I downloaded Qwt from the below link
        https://sourceforge.net/projects/qwt/files/qwt/ 0_1498725671536_qwtdownlaods.png

        I downloaded for ubuntu, then follwed the steps to build Qwt,

        command :

        1. cd to respective directory
          cd /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3
        2. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ /usr/local/Qt-5.4.0/bin/qmake qwt.pro.
        3. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make.

        Thanks,

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

        @Pradeep-Kumar What does

        file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
        

        say?

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

        1 Reply Last reply
        0
        • Pradeep KumarP Offline
          Pradeep KumarP Offline
          Pradeep Kumar
          wrote on last edited by Pradeep Kumar
          #5

          Another doc to install Qwt.
          0_1498725987526_Qwtbuild.png

          Just followed these steps,

          I am using Qt version 5.6 of 64 bit.

          Thanks,

          Pradeep Kumar
          Qt,QML Developer

          jsulmJ 1 Reply Last reply
          0
          • Pradeep KumarP Pradeep Kumar

            Another doc to install Qwt.
            0_1498725987526_Qwtbuild.png

            Just followed these steps,

            I am using Qt version 5.6 of 64 bit.

            Thanks,

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

            @Pradeep-Kumar What does

            file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
            

            say?

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

            1 Reply Last reply
            0
            • Pradeep KumarP Offline
              Pradeep KumarP Offline
              Pradeep Kumar
              wrote on last edited by
              #7

              Means cant it find the lib,
              their is a lib folder and library present , but still y?.

              Pradeep Kumar
              Qt,QML Developer

              jsulmJ 1 Reply Last reply
              0
              • Pradeep KumarP Pradeep Kumar

                Means cant it find the lib,
                their is a lib folder and library present , but still y?.

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

                @Pradeep-Kumar Sorry, I don't follow you. The linker apparently found the lib but complained that it is not compatible. So, it is there, just execute file command and pass the correct path to the lib.

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

                1 Reply Last reply
                0
                • Pradeep KumarP Offline
                  Pradeep KumarP Offline
                  Pradeep Kumar
                  wrote on last edited by
                  #9

                  sorry for not writing properly.

                  what i said was their is a lib folder and library present, but still y giving errors?.

                  So as u mentioned.
                  So, it is there, just execute file command and pass the correct path to the lib.

                  How can i achieve it?.

                  Thanks,

                  Pradeep Kumar
                  Qt,QML Developer

                  jsulmJ 1 Reply Last reply
                  0
                  • Pradeep KumarP Pradeep Kumar

                    sorry for not writing properly.

                    what i said was their is a lib folder and library present, but still y giving errors?.

                    So as u mentioned.
                    So, it is there, just execute file command and pass the correct path to the lib.

                    How can i achieve it?.

                    Thanks,

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

                    @Pradeep-Kumar All you need to do is execute this line in a terminal:

                    file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
                    

                    "but still y giving errors?." - yes it is present, this is not the problem. The problem is that this library is not compatible.

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

                    1 Reply Last reply
                    0
                    • Pradeep KumarP Offline
                      Pradeep KumarP Offline
                      Pradeep Kumar
                      wrote on last edited by Pradeep Kumar
                      #11

                      /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so: symbolic link to `libqwt.so.6.1.3'

                      getting the error.

                      Thanks,

                      Pradeep Kumar
                      Qt,QML Developer

                      jsulmJ 1 Reply Last reply
                      0
                      • Pradeep KumarP Pradeep Kumar

                        /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so: symbolic link to `libqwt.so.6.1.3'

                        getting the error.

                        Thanks,

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

                        @Pradeep-Kumar Then just do

                        file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so.6.1.3
                        

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

                        1 Reply Last reply
                        0
                        • Pradeep KumarP Offline
                          Pradeep KumarP Offline
                          Pradeep Kumar
                          wrote on last edited by
                          #13

                          /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so.6.1.3: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, not stripped

                          its of 32 bit, is it a mismatch?

                          Thanks,

                          Pradeep Kumar
                          Qt,QML Developer

                          jsulmJ 1 Reply Last reply
                          0
                          • Pradeep KumarP Pradeep Kumar

                            /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so.6.1.3: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, not stripped

                            its of 32 bit, is it a mismatch?

                            Thanks,

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

                            @Pradeep-Kumar The lib was built for ARM. For which architecture do you need it?

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

                            1 Reply Last reply
                            0
                            • Pradeep KumarP Offline
                              Pradeep KumarP Offline
                              Pradeep Kumar
                              wrote on last edited by
                              #15

                              Required for Desktop and Device both.

                              Thanks,

                              Pradeep Kumar
                              Qt,QML Developer

                              jsulmJ 1 Reply Last reply
                              0
                              • Pradeep KumarP Pradeep Kumar

                                Required for Desktop and Device both.

                                Thanks,

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

                                @Pradeep-Kumar Then you need to build QWT for desktop using the correct Qt (correct qmake).

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

                                1 Reply Last reply
                                0
                                • Pradeep KumarP Offline
                                  Pradeep KumarP Offline
                                  Pradeep Kumar
                                  wrote on last edited by
                                  #17

                                  Correct Qt , qmake.

                                  Where can i check it.

                                  I am using Qt 5.6 versiona s mentioned earlier.

                                  Thanks,

                                  Pradeep Kumar
                                  Qt,QML Developer

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • Pradeep KumarP Pradeep Kumar

                                    Correct Qt , qmake.

                                    Where can i check it.

                                    I am using Qt 5.6 versiona s mentioned earlier.

                                    Thanks,

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

                                    @Pradeep-Kumar From your description:

                                    cd to respective directory
                                    cd /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3
                                    /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ PATH_TO_YOUR_DESKTOP_QT/qmake qwt.pro.
                                    /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make.
                                    

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

                                    1 Reply Last reply
                                    0
                                    • Pradeep KumarP Offline
                                      Pradeep KumarP Offline
                                      Pradeep Kumar
                                      wrote on last edited by
                                      #19
                                      1. cd /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3
                                      2. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake qwt.pro
                                      3. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make.

                                      Thats i used for Desktop,
                                      same error.

                                      Thanks,

                                      Pradeep Kumar
                                      Qt,QML Developer

                                      jsulmJ 1 Reply Last reply
                                      0
                                      • Pradeep KumarP Pradeep Kumar
                                        1. cd /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3
                                        2. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake qwt.pro
                                        3. /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make.

                                        Thats i used for Desktop,
                                        same error.

                                        Thanks,

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

                                        @Pradeep-Kumar Which same error? Did you build QWT for desktop? Do you get the error when building QWT or your app using QWT? Can you post the build log?

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

                                        1 Reply Last reply
                                        0
                                        • Pradeep KumarP Offline
                                          Pradeep KumarP Offline
                                          Pradeep Kumar
                                          wrote on last edited by Pradeep Kumar
                                          #21
                                          user@user-Inspiron-3558:~/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake qwt.pro
                                          user@user-Inspiron-3558:~/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make
                                          cd src/ && ( test -e Makefile || /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/src/src.pro -o Makefile ) && make -f Makefile 
                                          make[1]: Entering directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/src'
                                          make[1]: Nothing to be done for `first'.
                                          make[1]: Leaving directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/src'
                                          cd textengines/ && ( test -e Makefile || /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/textengines/textengines.pro -o Makefile ) && make -f Makefile 
                                          make[1]: Entering directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/textengines'
                                          make[1]: Nothing to be done for `first'.
                                          make[1]: Leaving directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/textengines'
                                          cd doc/ && ( test -e Makefile || /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/doc/doc.pro -o Makefile ) && make -f Makefile 
                                          make[1]: Entering directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/doc'
                                          make[1]: Nothing to be done for `first'.
                                          make[1]: Leaving directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/doc'
                                          cd designer/ && ( test -e Makefile || /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/designer.pro -o Makefile ) && make -f Makefile 
                                          make[1]: Entering directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer'
                                          rm -f libqwt_designer_plugin.so
                                          linking plugins/designer/libqwt_designer_plugin.so
                                          /usr/bin/ld: skipping incompatible /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so when searching for -lqwt
                                          /usr/bin/ld: cannot find -lqwt
                                          collect2: error: ld returned 1 exit status
                                          make[1]: *** [plugins/designer/libqwt_designer_plugin.so] Error 1
                                          make[1]: Leaving directory `/home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer'
                                          make: *** [sub-designer-make_first-ordered] Error 2
                                          

                                          Getting error while building QWT.

                                          Thanks,

                                          Pradeep Kumar
                                          Qt,QML Developer

                                          jsulmJ 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