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.

CCS5 New Qt project, basic guide needed

Other Parts Discussed in Thread: TLC59108

Hello there,

Tools&keywords:

Linux, CCS5, AM3517EVK, Qt 4.6.3

 

Is there a guidance for how to create a new Qt project, for later to be included and accessible via the Matrix gui application?

I've followed the guidance of installing CCS5 along with the provided Linux SDK installer.

I can import Matrix gui into CCS5 and build it, and play with the .html files for adding new buttons pointing to my HelloWorld. No problem.

Now I would like to create a simple Qt application, instead of echo "HelloWorld" script.

 

I might need some instructions, on how to further configure the project settings in CCS after creating the project, using New->Project->Qt Gui Project.. etc.

If I just build the application as it is, provided by the new project wizard, it fails on the .ui file.

The console looks like this, for application name: MyFirstQt:

 

make debug 

make -f Makefile.Debug

make[1]: Entering directory `/home/palsson/workspace/MyFirstQt'

myfirstqt.ui -o ui_myfirstqt.h

make[1]: myfirstqt.ui: Command not found

make[1]: Leaving directory `/home/palsson/workspace/MyFirstQt'

make[1]: *** [ui_myfirstqt.h] Error 127

make: *** [debug] Error 2

 

 

Hope you can help..

 

Regards

Palsson

  • Hi Palsson,

    I think there are two different approaches you may want to consider:

    1) If you want to quickly Modify an existing QT project for your needs and build.

    There are hundreds of QT examples and demo projects in your SDK. Look in your SDK on your host under $(SDK_BASE)/linux-devkit/arm-arago-linux-gnueabi/usr/bin/qtopia. See below how to build below. Your SDK comes with a demo that shows off many of these projects.  To run the demo from the target, exit from matrix and run the following command on the target EVM.

    qtdemoE -qws

    2) Start from Scratch and do your own GUI development.  I would recommend using QT Creator, you can find and download it online. There is extensive documentation and wiki articles such as: http://developer.qt.nokia.com/wiki/Basic_Qt_Programming_Tutorial

    In either case, I recommend you become familiar with "qmake" which is a tool which helps you create the Makefiles you need.

    How to build  a QT project quickly using qmake.

    To get started quickly, you can follow these simple steps for building any QT project. On your host machine:

    1. source your SDK environment-setup file to pull in the necessary QMAKESPEC and other QT environment variables.

    source $(SDK_HOME)/linux-devkit/environment-setup

    2. From the directory where your QT project is located, use qmake to create a Makefile: 

    qmake xxxx.pro

    (subsitute the name your your QT project for xxxx)

    3. Execute the Makefile created by qmake to build the QT project.

    make

     

  • Hi,

       The same procedure i was followed to compile the Qt  application. But  when i was trying to run that test appilication, it's thrown an error like directfb not found.

    i launched the application like

                       $ ./matrix_gui -qws

    Error:
                        Error opening framebuffer device /dev/fb0
                        QScreenLinuxFb::connect: No such file or directory

  • Hello Gowthaman,

    I think this may be an issue with the kernel configuration. After boot up can you check what modules are loaded using the "lsmod" command?

    Are you using the prebuilt kernel from the SDK or did you build yourself.

    Also what do you see if you "cat /proc/fb" on your target.  Do you see any frame buffers? 

    root@dm814x-evm:~# cat /proc/fb

    0 ti81xxfb

    1 ti81xxfb

    2 ti81xxfb

    Finally what EVM are you using? Oh I see your other post, it is J4 EVM.  Do you know is that one of these:  dm814x, c6a814x, or am387x?

     



  • Hi Jeff,

    what modules are loaded using the "lsmod" command?

    Ans:  $lsmod

    module               size                  used by

    It's not shown any module.

    Are you using the prebuilt kernel from the SDK or did you build yourself.

    Ans :  We are not using prebuilt kernel image. We created own image.

    Also what do you see if you "cat /proc/fb" on your target.  Do you see any frame buffers?

    Ans: cat /proc/fb

    It shown empty file

    We are using dm814x processor.

     

    I checked with pre-built image [ uImage-2.6.37 ] from EZSDK 5.02 Release  but got the same error

    $ ./basiclayout -qws

    Error opening framebuffer device /dev/fb0
    QScreenLinuxFb::connect: No such file or directory
    Error opening framebuffer device /dev/fb0
    QScreenLinuxFb::connect: No such file or directory
    Error opening framebuffer device /dev/fb0

    Exported the display as

    $ export QWS_DISPLAY="directfb:0"

    directfb: Not found

    Aborted

    In pre-built image the /proc/fb is shown as empty.

    Do we need directfb libraried to display?

    I checked entire file system but didn't find directfb libararies.


    Please help me to solve this issue.


    Regards,

    Gowthaman.P

  • Hi Gowthaman,

    It looks like you are not getting your linux driver modules to load for some reason. 

    Are you also using the prebuilt filesystem that comes with the SDK.? If you are, there are boot up scripts in your file system which load the linux driver modules. There is one for the low level frame buffer: /etc/init.d/load-hdpvss-firmware.sh.  At bootup this script will run and you should see some messages during bootup like the following:

    Loading HDVPSS Firmware

     

    Additionally you can find the module in your filesystem at: /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxfb

    During boot up do you get any error messages indicating the modules can not load for some reason.


    When I boot up a DM814x-EVM, I see the following modules were all loaded during bootup: (Since you see none, there is a problem loading all the modules)

    root@dm814x-evm:/etc/init.d# lsmod

    Module                  Size  Used by

    bufferclass_ti          4946  0

    omaplfb                10794  0

    pvrsrvkm              153759  2 bufferclass_ti,omaplfb

    tlc59108                1813  0

    ti81xxhdmi             13210  0

    ti81xxfb               20247  2

    vpss                   61794  3 omaplfb,ti81xxhdmi,ti81xxfb

    syslink              1111311  0

    ipv6                  209879  12

  • Hi Jeff.

        It's working now. As you said inside /etc/init.d/load-hdpvss-firmware.sh  script file was missed. After copied that file it worked.

    Thanks for your help

     

    Regards,

    Gowthaman.P

  • Dear Jeff;

    I have the same problem .  I am using CCSV5.2 , and   after installing CCSV5, first of all  I imported the matrix_browser GUI project and I built it and I didn't get any error mesages. I tested matrix_browser executeable on logicPD am1088 kit. it was OK..

    After this step I tried to create a simple QT GUI project. 

    I configured CCSV5 as described in sitara-linuxsdk-sdg-05.04.00.00. pdf document that explain in details at  below: 

    Project-> Properties->C/C++ Make Project --> Enviroment --> PATH /usr/local/ti-sdk-am180x-evm/linux-devkit/bin:${env_var:PATH}:${env_var:PATH} 

    Window ->Preferences and selecting the Qt' menu item , then I set this menu as given below :

    Version Name: AMSDK Qt

    Bin Path: <SDK INSTALL DIR>/linux-devkit/bin
    Include Path: <SDK INSTALL DIR>/linux-devkit/arm-arago-linux-gnueabi/usr/include/qtopia

    after these setting steps I build project and I receive these messages :

    make debug
    make -f Makefile.Debug
    make[1]: Entering directory `/root/workspace_v5_2/Qtproject1'
    make[1]: qt2.ui: Command not found
    qt2.ui -o ui_qt2.h
    make[1]: *** [ui_Qtproject1.h] Error 127
    make[1]: Leaving directory `/root/workspace_v5_2/Qtproject1'
    make: *** [debug] Error 2

    ansd also when U run qmake on ccsv5 I take this message :

    /usr/local/ti-sdk-am180x-evm/linux-devkit/bin/qmake -recursive CONFIG+=debug_and_release Qtproject1.pro
    sh: -d: not found
    sh: -d: not found

    how can I buillt a simple user defined Qt project in CCSV5.

    regards.