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
-
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. -
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.
-
Hi
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.
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 ForumDownload 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_PATHlog 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.cppHEADERS += 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 statusSo 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 -lqwtINCLUDEPATH += /usr/local/qwt-6.1.2/include
LIBS += -L/usr/local/qwt-6.1.2/lib -lqwtafter this,project was compiled and build successfully for both the machines.May I correct or not?
-
@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. -
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!
-
@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?