IMX53 Qt Application ARM Executable

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX53 Qt Application ARM Executable

934 Views
Hitex
Contributor I

What are the steps to create an ARM executable for IMX53 for a QT Application.

 

I am referring  " Linux_HelloWorld_AN.pdf " however I am getting Build fail error due to Makefile.

I am able to create x86 executable using the same Makefile.I am using Ubuntu10.04

 

Is there any sample Makefile for creating ARM Executable for QT applications

Tags (1)
0 Kudos
3 Replies

617 Views
Hitex
Contributor I

This is the error that I am getting

 

 

satyam@bhr-pc0623:~/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib$ ./ltib -m scbuild -p hello.spec

Processing: hello
===================
Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/tmp' --define '_rpmdir /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/dist/lfs-5.1/hello/hello.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/tmp/rpm-tmp.53833
+ umask 022
+ cd /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/rpm/BUILD
+ cd hello-1.0
+ make
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o hello.o hello.cpp
g++  -o hello-1.0 hello.o    -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: skipping incompatible /usr/share/qt3/lib/libqt-mt.so when searching for -lqt-mt
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
make: *** [hello-1.0] Error 1
error: Bad exit status from /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/tmp/rpm-tmp.53833 (%build)


RPM build errors:
    Bad exit status from /home/satyam/Desktop/Debojyoti/L2.6.35_11.01.00_ER_source_bundle/L2.6.35_11.01.00_ER_source/IMX53/ltib/tmp/rpm-tmp.53833 (%build)
Build time for hello: 0 seconds

Failed building hello


f_scbuild() returned an error, exiting
traceback:
 main:560

0 Kudos

617 Views
Hitex
Contributor I

Hi Rogerio,


I referred the link http://imxcommunity.org/group/imxqt/forum/topics/building-qt-for-imx5x

However I am not able to find the method to create a ARM executable.

I am attaching the pdf that I am referring to create the ARM executable.

I am getting error after ./ltib -m scbuild -p hello.spec   command and my source code contains QT code instead of the sample code given in the pdf.


Rogerio Pimentel said:

I suggest you to follow the procedure made by Matt Clemens at: http://imxcommunity.org/group/imxqt/forum/topics/building-qt-for-imx5x

and the wiki page:

http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt

Rgds

Rogerio

0 Kudos

617 Views
rogerio_silva
NXP Employee
NXP Employee

I suggest you to follow the procedure made by Matt Clemens at: http://imxcommunity.org/group/imxqt/forum/topics/building-qt-for-imx5x

and the wiki page:

http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt

Rgds

Rogerio

0 Kudos