Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to install qwt libraries on colibiriT20?
QtWS25 Last Chance

How to install qwt libraries on colibiriT20?

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 1.2k 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.
  • A Offline
    A Offline
    Arun kumar
    wrote on last edited by
    #1
    error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
    
    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You need either to find a crossed compiled version for your ARM OS
      or compile it yourself using the tool chain for that device.

      1 Reply Last reply
      3
      • A Offline
        A Offline
        Arun kumar
        wrote on last edited by
        #3

        Hi mrjj,

        I have used qwt functions in my project. I have compiled and build the project for both X86 and collibriT20 machine using X86 machine successfully(I have a cross compiled version for ARM OS but not with qwt libraries). But my software didn't run in collibriT20 machine,it shows the above error. How can I install it to CollibriT20? please tell me the steps.

        mrjjM 1 Reply Last reply
        0
        • A Arun kumar

          Hi mrjj,

          I have used qwt functions in my project. I have compiled and build the project for both X86 and collibriT20 machine using X86 machine successfully(I have a cross compiled version for ARM OS but not with qwt libraries). But my software didn't run in collibriT20 machine,it shows the above error. How can I install it to CollibriT20? please tell me the steps.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Arun-kumar

          Hi
          you should compile qwt library with the same compiler to have a arm version then.

          1 Reply Last reply
          2
          • A Offline
            A Offline
            Arun kumar
            wrote on last edited by
            #5

            I compile the qwt library for ColibriT20 using cross compiling,but I can't able to install to collibri.
            make install
            This is is not working in ColliriT20 machine
            I am using following below steps for X86 machine.These steps also I seen from Qt Forum

            Download qwt-6.1.2.tar.bz2 to ~/Downloads/qwt-6.1.2.tar.bz2
            Extract to ~/Downloads/qwt-6.1.2
            Start Qt Creator. Open project: ~/Downloads/qwt.pro. Configure project with kit of your choice. I used gcc 64.
            Build project for release (takes some time).
            Close Qt Creator.
            Open a terminal.
            cd ~/Downloads/build-qwt-Desktop_Qt_5_6_0_GCC_64bit-Release/
            become superuser: su (enter password)
            make install
            back to normal user: exit
            append the following to ~/.bashrc:
            

            QT_PLUGIN_PATH="/usr/local/qwt-6.1.2/plugins:$QT_PLUGIN_PATH"
            export QT_PLUGIN_PATH

            log out of current x session and log in again (or reboot, what ever)
            
            Start Qt Creator. Create new Widgets project. Go to forms designer. Qwt widgets are now available. Add one of the widgets to your main form.
            
            Go to the new project's *.pro file. Include qwt there, so the file should look similar to this:
            

            QT += core gui

            greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

            TARGET = untitled5
            TEMPLATE = app

            ****** INCLUDE QWT *********

            include ( /usr/local/qwt-6.1.2/features/qwt.prf )

            SOURCES += main.cpp
            mainwindow.cpp

            HEADERS += mainwindow.h

            FORMS += mainwindow.ui

            But CollibriT20 how to i install it?

            jsulmJ 1 Reply Last reply
            0
            • A Arun kumar

              I compile the qwt library for ColibriT20 using cross compiling,but I can't able to install to collibri.
              make install
              This is is not working in ColliriT20 machine
              I am using following below steps for X86 machine.These steps also I seen from Qt Forum

              Download qwt-6.1.2.tar.bz2 to ~/Downloads/qwt-6.1.2.tar.bz2
              Extract to ~/Downloads/qwt-6.1.2
              Start Qt Creator. Open project: ~/Downloads/qwt.pro. Configure project with kit of your choice. I used gcc 64.
              Build project for release (takes some time).
              Close Qt Creator.
              Open a terminal.
              cd ~/Downloads/build-qwt-Desktop_Qt_5_6_0_GCC_64bit-Release/
              become superuser: su (enter password)
              make install
              back to normal user: exit
              append the following to ~/.bashrc:
              

              QT_PLUGIN_PATH="/usr/local/qwt-6.1.2/plugins:$QT_PLUGIN_PATH"
              export QT_PLUGIN_PATH

              log out of current x session and log in again (or reboot, what ever)
              
              Start Qt Creator. Create new Widgets project. Go to forms designer. Qwt widgets are now available. Add one of the widgets to your main form.
              
              Go to the new project's *.pro file. Include qwt there, so the file should look similar to this:
              

              QT += core gui

              greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

              TARGET = untitled5
              TEMPLATE = app

              ****** INCLUDE QWT *********

              include ( /usr/local/qwt-6.1.2/features/qwt.prf )

              SOURCES += main.cpp
              mainwindow.cpp

              HEADERS += mainwindow.h

              FORMS += mainwindow.ui

              But CollibriT20 how to i install it?

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

              @Arun-kumar You can simply manually copy the cross compiled libraries to your target (for example to /usr/lib)

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

              A 1 Reply Last reply
              3
              • A Offline
                A Offline
                Arun kumar
                wrote on last edited by
                #7

                And same time,the same version of qwt 6.1.2 doesn't support both X86 and Collibri machine.It happens for only one machine either Colibri or X86.If I build for other machine I have got the following error,
                :-1: error: skipping incompatible /usr/local/qwt-6.1.2/lib/libqwt.so when searching for -lqwt
                :-1: error: cannot find -lqwt
                :-1: error: collect2: error: ld returned 1 exit status

                So i install qwt 6.1.2 for cross compiling version(collibriT20),and qwt 6.1.3 for X86 version.

                In my .pro file i have included my library path as,

                INCLUDEPATH += /usr/local/qwt-6.1.3/include
                LIBS += -L/usr/local/qwt-6.1.3/lib -lqwt

                INCLUDEPATH += /usr/local/qwt-6.1.2/include
                LIBS += -L/usr/local/qwt-6.1.2/lib -lqwt

                after this,project was compiled and build successfully for both the machines.May I correct or not?

                jsulmJ 1 Reply Last reply
                0
                • A Arun kumar

                  And same time,the same version of qwt 6.1.2 doesn't support both X86 and Collibri machine.It happens for only one machine either Colibri or X86.If I build for other machine I have got the following error,
                  :-1: error: skipping incompatible /usr/local/qwt-6.1.2/lib/libqwt.so when searching for -lqwt
                  :-1: error: cannot find -lqwt
                  :-1: error: collect2: error: ld returned 1 exit status

                  So i install qwt 6.1.2 for cross compiling version(collibriT20),and qwt 6.1.3 for X86 version.

                  In my .pro file i have included my library path as,

                  INCLUDEPATH += /usr/local/qwt-6.1.3/include
                  LIBS += -L/usr/local/qwt-6.1.3/lib -lqwt

                  INCLUDEPATH += /usr/local/qwt-6.1.2/include
                  LIBS += -L/usr/local/qwt-6.1.2/lib -lqwt

                  after this,project was compiled and build successfully for both the machines.May I correct or not?

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

                  @Arun-kumar said in How to install qwt libraries on colibiriT20?:

                  And same time,the same version of qwt 6.1.2 doesn't support both X86 and Collibri machine

                  Not sure I understand you correctly.
                  You can't use x86 binaries on ARM and you can't use ARM binaries on x86. That's why you need to build QWT for both platforms.

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

                  1 Reply Last reply
                  2
                  • A Offline
                    A Offline
                    Arun kumar
                    wrote on last edited by
                    #9

                    Hello jsulm,

                    I have complied the qwt 6.1.2 libraries for X86 and ColibriT20 separately with its own kits selection.It may be overwritten again and again.So only I can't build for both X86 and ColibriT20.How can I use the qwt-6.1.2 for both X86 and ColibriT20?

                    Thanks in advance!

                    jsulmJ 1 Reply Last reply
                    0
                    • A Arun kumar

                      Hello jsulm,

                      I have complied the qwt 6.1.2 libraries for X86 and ColibriT20 separately with its own kits selection.It may be overwritten again and again.So only I can't build for both X86 and ColibriT20.How can I use the qwt-6.1.2 for both X86 and ColibriT20?

                      Thanks in advance!

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

                      @Arun-kumar said in How to install qwt libraries on colibiriT20?:

                      may be overwritten again and again

                      What do you mean? If you switch to another Kit QtCreator will use a different build directory, so what will be overwritten?
                      You should now have two Kits: one for x86 and one for ColibryT20. To build for x86 select the Kit for x86, to build for ColibryT20 select the other Kit.
                      Also can you show your pro file?

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

                      1 Reply Last reply
                      2
                      • jsulmJ jsulm

                        @Arun-kumar You can simply manually copy the cross compiled libraries to your target (for example to /usr/lib)

                        A Offline
                        A Offline
                        Arun kumar
                        wrote on last edited by
                        #11

                        @jsulm Thank you.It's working.

                        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