Need Help to Deploy existing qt project to linux host device
-
wrote on 14 Jul 2018, 10:13 last edited by vivekyuvan
Hi Friends
I have purchased TI Evaluation Board (SBC EVM AM4379). I have successfully deployed my new projects (like hello world ) with remote host device configuration by following procedure in this TI Wiki guidehttp://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT
I have a qt5 source code that is configured with desktop configuration locally. Now i am needed to deploy the source code to my linux host (target device) with remote configuration and gives the target ip.
Now i am struggled to deploy my existing qt projects file to my linux host device(target device).
I am using TI Processor SDK Version "ti-processor-sdk-linux-rt-am437x-evm-03.03.00.04"
TI Wiki page suggest that the QT Creator needed to setup the environment setup
source ti-processor-sdk-linux-rt-am437x-evm-03.03.00.04/linux-devkit/environment-setup
Then open the qt creator under the [linux-devicekit ]mode
My problem is I don know how to configure the existing projects to deploy in the remote linux host(target device) without rewrites the code. Hope you guys understands my problem . Help out to fix this problem.
Best Regards
vivek yuvan -
Hi,
Something is not clear, are you trying to use your Desktop version of Qt to build your application for your target ?
-
wrote on 16 Jul 2018, 10:41 last edited by vivekyuvan
yes I am trying to use my Desktop version of Qt to build my application for my target device that is evm am4379 processor evaluation board is that possible?
-
yes I am trying to use my Desktop version of Qt to build my application for my target device that is evm am4379 processor evaluation board is that possible?
@vivekyuvan It's not possible the way you do. You need Qt built for your target device processor, you need a sysroot with compiler for your target device. This is called cross-compilation.
-
yes I am trying to use my Desktop version of Qt to build my application for my target device that is evm am4379 processor evaluation board is that possible?
wrote on 16 Jul 2018, 13:40 last edited by Pablo J. Rogina@vivekyuvan although intended for cross-compiling Qt for Raspberry Pi, this guide may be of interest for you, as an skeleton of the steps involved and how to setup Qt Creator later on.
-
@vivekyuvan It's not possible the way you do. You need Qt built for your target device processor, you need a sysroot with compiler for your target device. This is called cross-compilation.
wrote on 17 Jul 2018, 09:34 last edited by@jsulm
yes i have sysroots in this location
/home/vivek/TI_SDK/ti-processor-sdk-linux-rt-am437x-evm-03.03.00.04/linux-sev-kit/sysrootsand i have a arm-linux compiler in this location "/home/vivek/TI_SDK/ti-processor-sdk-linux-rt-am437x-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin "
"arm-linux-gnueabihf-g++"my question is " My existing qt source code can compile under this compiler "arm-linux-gnueabihf-g++" instead of the normal gcc compiler ?" is there any modification i need to do .pro file ? and Build and Run setting ?
-
@jsulm
yes i have sysroots in this location
/home/vivek/TI_SDK/ti-processor-sdk-linux-rt-am437x-evm-03.03.00.04/linux-sev-kit/sysrootsand i have a arm-linux compiler in this location "/home/vivek/TI_SDK/ti-processor-sdk-linux-rt-am437x-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin "
"arm-linux-gnueabihf-g++"my question is " My existing qt source code can compile under this compiler "arm-linux-gnueabihf-g++" instead of the normal gcc compiler ?" is there any modification i need to do .pro file ? and Build and Run setting ?
@vivekyuvan You need to run configure first. Here you can see how to do it for RaspberryPi (similar for other devices): http://wiki.qt.io/Raspberry_Pi_Beginners_Guide
2/7