Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to install qwt libraries on colibiriT20?
error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
You need either to find a crossed compiled version for your ARM OS
or compile it yourself using the tool chain for that device.
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.
you should compile qwt library with the same compiler to have a arm version then.
I compile the qwt library for ColibriT20 using cross compiling,but I can't able to install to collibri.
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:
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
HEADERS += mainwindow.h
FORMS += mainwindow.ui
But CollibriT20 how to i install it?
@Arun-kumar You can simply manually copy the cross compiled libraries to your target (for example to /usr/lib)
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?
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.
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!
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?