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.

How to change the in built kernel of ti sdk to RUN qt application ?

Hi friends ,

I have developed a QT multithread application, I am having Beagleboard-xM 

I am doing remote debugging and running this application over Ti-sdk kernel.

By adding this following command I can stop the Matrix GUI launcher which is default for Ti-sdk 

/etc/init.d/matrix-gui-2.0 stop 

/etc/init.d/matrix-gui-2.0 start 

while I wanted to run my QT application on the target board as default. 

Will it be possible ? and if YES then do I have to change in kernel ?

I dont have much Idea about core kernel stuff.

Can anyone provide me the pointer for that ?

Help n support Appreciated.

Thanks 

Nilesh 

  • Hi,

    you have to write a script to start your program and add it /etc/init.d & create a link for it under /etc/rc5.d.

    Sample Script to start a QT5 application (adapt to other qt versions):

    #! /bin/sh
    
    
    sampleapp="/home/root/sapp"
    GUI_OPTS="-platform eglfs"
    
    test -x "$sampleapp" || exit 0
    
    export LD_LIBRARY_PATH=/usr/lib/libqwt6.1rc3QT5
    
    case "$1" in
      start)
    	echo -n "Starting sample Program..."
    	start-stop-daemon --start --background --exec $sampleapp -- $GUI_OPTS
    	;;
      stop)
    	echo "Stopping sample Program :("
    	;;
      *)
    	echo "Usage: /etc/init.d/sampleapp {start|stop}"
    	exit 1
    esac

    If you put this sampleapp script under /etc/init.d/ then create a softlink for it in /etc/rc5.d/S97sampleapp, the program should start during boot.

    NOTE: S97 was for matrixgui previously so in this case you remove matrixgui link under rc5.d

    hope this helps.

    Ram

  • Thannk you

    shriram