Unsolved Regarding Qwt for charts
-
I downloaded Qwt from the below link
https://sourceforge.net/projects/qwt/files/qwt/I downloaded for ubuntu, then follwed the steps to build Qwt,
command :
- 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$ /usr/local/Qt-5.4.0/bin/qmake qwt.pro.
- /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make.
Thanks,
- cd to respective directory
-
@Pradeep-Kumar What does
file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
say?
-
Another doc to install Qwt.
Just followed these steps,
I am using Qt version 5.6 of 64 bit.
Thanks,
-
@Pradeep-Kumar What does
file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
say?
-
Means cant it find the lib,
their is a lib folder and library present , but still y?. -
@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.
-
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 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.
-
/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 Then just do
file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so.6.1.3
-
/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 The lib was built for ARM. For which architecture do you need it?
-
Required for Desktop and Device both.
Thanks,
-
@Pradeep-Kumar Then you need to build QWT for desktop using the correct Qt (correct qmake).
-
Correct Qt , qmake.
Where can i check it.
I am using Qt 5.6 versiona s mentioned earlier.
Thanks,
-
@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.
-
- cd /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3
- /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ /home/user/Qt5.6.0/5.6/gcc_64/bin/qmake qwt.pro
- /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3$ make.
Thats i used for Desktop,
same error.Thanks,
-
@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?
-
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 You should better do out of source builds or at least start from a clean source code tree. Currently you're not building anything as you built in same location before.