Regarding Qwt for charts
-
Hi,
I want Qwt for charts in Qt,
i followed Qwt docsgetting 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,
-
Hi,
I want Qwt for charts in Qt,
i followed Qwt docsgetting 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,
@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 doesfile /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
say?
-
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
-
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,
@Pradeep-Kumar What does
file /home/user/Documents/Qwt/Qwt_forcharts_documents/qwt-6.1.3/designer/../lib/libqwt.so
say?
- cd to respective directory
-
Another doc to install Qwt.
Just followed these steps,
I am using Qt version 5.6 of 64 bit.
Thanks,
-
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?. -
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,
-
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,
-
/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,
-
/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,
-
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,
-
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,
-
- 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?