This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Running QWT charts on AM335xEVM

Hi All,
 
We have been working on Qwt graphs and would like to deploy the application on AM335x EVM.
As for desktop applications, we installed Qwt to run chart applications on ubuntu desktop.
 
Below were the step we followed:
1. Set QMAKESPEC in .bashrc : QMAKESPEC=/opt/Qt5.0/5.0.0/gcc/mkspecs/linux-g++-32
2. Set qmake path in .bashrc (this qmake is from qt5.0 Desktop installation) : export PATH=$PATH:/opt/Qt5.0/5.0.0/gcc/bin
3. Ran qmake in terminal to generate makefile: qmake qwt.pro
4. Installed qwt and relative libraries: make && make install
5. Ran sample binaries(x86) and created chart projects in qtcreator by adding Qwt libraries in project.
 
As for running Qt sample applications, we are able to cross-compile them and have run on board by doing below steps:
1. Set qmake in .bashrc (this qmake is from sitara, lets call it qmake-arm) to /home/ti-sdk/linux-devkit/bin
2. Set QMAKESPEC in .bashrc : /home/ti-sdk/linux-devkit/arm-arago-linux-gnueabi/usr/include/qtopia/linux-g++
3. source environment-setup
4. qmake-arm -QtProject
5. make
6. Got ARM executable file and successfully ran the same on board.
 
But to run Qwt chart projects, we need to install its libraries by using "qmake" of sitara. Makefile is being created  
after running: qmake-arm -qwt.pro
but running "make" command leads us to make error and displaying below message:
 
root@cts-desktop:/home/cts/Desktop/arm/qwt-6.1.0-rc2# qmake qwt.pro  
root@cts-desktop:/home/cts/Desktop/arm/qwt-6.1.0-rc2# qmake
root@cts-desktop:/home/cts/Desktop/arm/qwt-6.1.0-rc2# make

output:
cd src/ && /home/cts/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/qmake /home/cts/Desktop/arm/qwt-6.1.0-rc2/src/src.pro -o Makefile
cd src/ && make -f Makefile  
make[1]: Entering directory `/home/cts/Desktop/arm/qwt-6.1.0-rc2/src'
compiling qwt_abstract_scale_draw.cpp
/bin/sh: -c: not found
make[1]: *** [obj/qwt_abstract_scale_draw.o] Error 127
make[1]: Leaving directory `/home/cts/Desktop/arm/qwt-6.1.0-rc2/src'
make: *** [sub-src-make_default-ordered] Error 2
 

---> In simple words qmake of Qt5.0-sdk is working fine with Qwt-charts, but qmake of sitara doesn't.
In addition, could anyone tell about the qt version with sitara SDk? Any help will be greatly appreciated..

Regards,

Nitin

  • Hello,

    If you are using version 05.05.00.00 of the SDK the included Qt version is 4.7.2. The easiest way to enable development using this version will be to follow the instructions found here: http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT in particular Lab 2 in order to configure QtCreator to use the sitara sdk libraries. Just to confirm, when building Qwt from the command line, are you sourcing the environment-setup script included with the SDK?

     

     

  • Hi Dave,

    Thanks for replying to my queries. Lab2 includes steps for configuring QtCreator with sitara sdk and running standard Qt applications. And this is working fine..
    But Qwt libraries are not included in current QtSdk versions or sitara-SDKs. It is provided as seperate library containing GUI components and utility classes especially for different graph appplications. please have a look: http://qwt.sourceforge.net/

    I am able to configure qwt libraries with desktop qtsdk(x86) but while going with sitara-sdk, it is not working...I simply need to run the qwt graph applications on AM335x EVM ?

    Yes, i checked with source environment-setup also.
    Please guide. Thanks

  • Hello,

    I apologize for being unclear, I meant for you to attempt the building of qwt from within QtCreator after configuring it using the provided lab. It also may be advisable to comment out the following lines in qwtconfig.pri just to get the library built first:

    -QWT_CONFIG     += QwtMathML

    -QWT_CONFIG     += QwtDesigner  

    -QWT_CONFIG     += QwtExamples

    Also, modifying the install path (QWT_INSTALL_PREFIX) to reflect the fact that it is an arm build will prevent conflicts when running desktop Qwt applications. When building and running a new Qwt app, inside the .pro file you must change the lines INCLUDE += <PATH to QWT INSTALL>/include and LIBS += <PATH to QWT INSTALL>/lib to reflect the location specified in the QWT_INSTALL_PREFIX line mentioned previously. You will also need to navigate to <PATH to QWT INSTALL>/lib and copy these files to the <TARGET ROOT>/usr/lib directory in order to run the application on the target.

     

     

  • Hi Dave,

    I did follow with the steps you mentioned in above message, but seems that the problem still persists.

    Please see the attached file for "make" output.

    6076.makeOut.doc

    Also compiling any qwt example is not working while "make" through "qmake" of arm-arago.. And it will not as qwt libraries has not been compiled for sitara, and we need to do the same first.

    Any pointer on this?
    Thanks for your help so far.

  • I see that you are using a beta release candidate build of Qwt which is not guaranteed to be stable or work properly. I would recommend using the latest stable version 6.0.2. The file that the build is failing during, qwt_graphic.c, is a new file introduced in the 6.1.0-rc2. It is not present in the 6.0.2 source tree and this builds without issue.

    To get the examples to build I found the quickest solution to be first building the libraries from within the src/ directory and then navigating to the lib/ directory, creating a symlink using

    ln libqwt.so libqwtE.so -s

    because the example builds fail when building using the sdk because they are looking for libqwtE.so. The reason for this is that the SDK is set up to append infix E to the library names for Qt because it is Qt Embedded.

  • Sorry for getting late on this.

    I downloaded qwt-6.0.2 stable release and commented out
    -QWT_CONFIG     += QwtMathML
    -QWT_CONFIG     += QwtDesigner  
    -QWT_CONFIG     += QwtExamples

    This time the issue with libraries. Please see the attached doc.  0312.make.doc  (doc included some last output of make command)..  Thanks

  • Hello,

    I am not clear on what issue you are having, your logs appear fine to me, the libraries should be inside the lib directory under qwt-6.0.2.


    Regards,

    Dave

  • Thanks Dave for your support. I will continue with this some time later. Youn have been quite helpful. Thanks

  • Hello,

    I don't know if this post will be read. I have a problem with the kit sitara and QT. On the host linux I installed QtCreator properly. Then, I installed the sdk sitara 05.05 on the host linux. I think that the install was successfull. When I want to configure QtCreator with qmake from the kit sitara, I find it in the good directory but on Qt, it said: "The version of Qt is not correctly installed, please execute make install".

    Can anyone help me please?

    Thanks.

    Guillaume Mahut

  • Hello,

    To address your question, you likely need to source the linux-devkit/environment-setup script found in the SDK from the command line and then run QtCreator from that command line. This will allow the proper paths to be exported so that QtCreator can find all the files related to the Qt release that is included with the SDK. Also, please make sure you do not run QtCreator with sudo as you will lose the environment variables that were previously exported.

    Regards,

    Dave

  • Ok thank you very much.

    I'm sorry for this post. I will do that if I have more questions.

    About your answer, it's working fine now.

    Thank again

    Guillaume Mahut