QT for cross compile app for imx53

cancel
Showing results for 
Search instead for 
Did you mean: 

QT for cross compile app for imx53

2,288 Views
enaud
Contributor III

Hi,

I'm from italy and I have some question:

I have QT Creator and I made an application and runs perfectly on the pc with ubuntu ...

1) how do I cross-compile it for the imx53?

2) What I must activate on LTIB for to create a rootfs with all the necessary libraries?

3) For example if I need the phonon library how do I cross compile the application on my PC and then run it properly sull'imx53? I have tocompile QT libraries for arm? How?

4) How activate the Gstreamer plugin on imx53?


thanks

Tags (2)
0 Kudos
30 Replies

238 Views
enaud
Contributor III

I have anoth ererror:

RPM build errors:
    Bad exit status from /home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/tmp/rpm-tmp.84187 (%build)
Build time for qt-embedded: 265 seconds

Failed building qt-embedded


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


Started: Fri May  4 13:46:50 2012
Ended:   Fri May  4 13:51:21 2012
Elapsed: 271 seconds

These packages failed to build:
qt-embedded

Build Failed

Exiting on error or interrupt
lucid@ubuntu:~/L2.6.35_11.01.00_ER_source/ltib/ltib$

0 Kudos

238 Views
enaud
Contributor III

now i have this error:

Processing: mysql
===================
Build path taken because: no prebuilt rpm,
Testing network connectivity
No network download connection available

Can't get: mysql-4.1.12.tar.gz at ./ltib line 790.


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


Started: Fri May 4 00:48:03 2012
Ended: Fri May 4 02:49:56 2012
Elapsed: 7313 seconds

These packages failed to build:
mysql

Build Failed

Exiting on error or interrupt
lucid@ubuntu:~/L2.6.35_11.01.00_ER_source/ltib/ltib$

0 Kudos

238 Views
enaud
Contributor III

i've resolved with this code:

my fontconfig.spec modified is:

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --with-arch=$GNUTARCH --sysconfdir=%{_sysconfdir} --with-freetype-config="$DEV_IMAGE/usr/bin/freetype-config --prefix=$DEV_IMAGE/usr"
make

Now I have a Rootfs with all library QT? there is Phonon?

Now I can compile my app on Target with qmake?

Thanks and sorry for my stupid answer but i'm a newbie :)

0 Kudos

238 Views
enaud
Contributor III

I have followed this link:

http://imxcommunity.org/group/imx53quickstartboard/forum/topics/ltib-and-qt-embedded-issue-on-imx53?...

my fontconfig.spec modified is:

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
--with-arch=$GNUTARCH --sysconfdir=%{_sysconfdir}
--with-freetype-config="$DEV_IMAGE/usr/bin/freetype-config --prefix=$DEV_IMAGE/usr"
make

but same problem:

checking if the linker (ld) is GNU ld... yes

checking for ld option to reload object files... -r
checking for BSD-compatible nm... /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for arm-linux-g77... no
checking for arm-linux-f77... no
checking for arm-linux-xlf... no
checking for arm-linux-frt... no
checking for arm-linux-pgf77... no
checking for arm-linux-cf77... no
checking for arm-linux-fort77... no
checking for arm-linux-fl32... no
checking for arm-linux-af77... no
checking for arm-linux-f90... no
checking for arm-linux-xlf90... no
checking for arm-linux-pgf90... no
checking for arm-linux-pghpf... no
checking for arm-linux-epcf90... no
checking for arm-linux-gfortran... no
checking for arm-linux-g95... no
checking for arm-linux-f95... no
checking for arm-linux-fort... no
checking for arm-linux-xlf95... no
checking for arm-linux-ifort... no
checking for arm-linux-ifc... no
checking for arm-linux-efc... no
checking for arm-linux-pgf95... no
checking for arm-linux-lf95... no
checking for arm-linux-ftn... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-nm -B output from gcc object... ok
checking for objdir... .libs
checking for arm-linux-ar... ar
checking for arm-linux-ranlib... arm-linux-ranlib
checking for arm-linux-strip... (cached) arm-linux-strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... ld
checking if the linker (ld) is GNU ld... yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether make sets $(MAKE)... (cached) yes
checking for a C compiler for build tools... checking for gcc... (cached) ccache /usr/bin/gcc -B/usr/bin/
ccache /usr/bin/gcc -B/usr/bin/
checking for suffix of executable build tools...
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for geteuid... yes
checking for getuid... yes
checking for link... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strtol... yes
checking for getopt... yes
checking for getopt_long... yes
checking for sysconf... yes
checking for ftruncate... yes
checking for chsize... no
checking for rand... yes
checking for random... yes
checking for lrand48... yes
checking for a usable iconv... libc
checking for freetype-config... /usr/local/bin/freetype-config
checking for FT_Get_Next_Char... yes
checking for FT_Get_BDF_Property... yes
checking for FT_Get_PS_Font_Info... yes
checking for FT_Has_PS_Glyph_Names... yes
checking for FT_Get_X11_Font_Format... yes
checking for FT_Bitmap_Size.y_ppem... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_SetDoctypeDeclHandler... yes
checking for arm-linux-pkg-config... no
checking for pkg-config... /opt/freescale/ltib/usr/bin/pkg-config
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking pkg-config is at least version 0.9.0... yes
checking for docbook2html... (cached) no
DOCMAN3 FcAtomicCreate.3 FcAtomicLock.3 FcAtomicNewFile.3 FcAtomicOrigFile.3 FcAtomicReplaceOrig.3 FcAtomicDeleteNew.3 FcAtomicUnlock.3 FcAtomicDestroy.3 FcBlanksCreate.3 FcBlanksDestroy.3 FcBlanksAdd.3 FcBlanksIsMember.3 FcCharSetCreate.3 FcCharSetDestroy.3 FcCharSetAddChar.3 FcCharSetCopy.3 FcCharSetEqual.3 FcCharSetIntersect.3 FcCharSetUnion.3 FcCharSetSubtract.3 FcCharSetHasChar.3 FcCharSetCount.3 FcCharSetIntersectCount.3 FcCharSetSubtractCount.3 FcCharSetIsSubset.3 FcCharSetFirstPage.3 FcCharSetNextPage.3 FcConfigCreate.3 FcConfigDestroy.3 FcConfigSetCurrent.3 FcConfigGetCurrent.3 FcConfigUptoDate.3 FcConfigBuildFonts.3 FcConfigGetConfigDirs.3 FcConfigGetFontDirs.3 FcConfigGetConfigFiles.3 FcConfigGetCache.3 FcConfigGetFonts.3 FcConfigGetBlanks.3 FcConfigGetRescanInverval.3 FcConfigSetRescanInverval.3 FcConfigAppFontAddFile.3 FcConfigAppFontAddDir.3 FcConfigAppFontClear.3 FcConfigSubstituteWithPat.3 FcConfigSubstitute.3 FcFontMatch.3 FcFontSort.3 FcFontRenderPrepare.3 FcFontList.3 FcConfigFilename.3 FcConfigParseAndLoad.3 FcNameRegisterConstants.3 FcNameUnregisterConstants.3 FcNameGetConstant.3 FcNameConstant.3 FcFileScan.3 FcDirScan.3 FcDirSave.3 FcDirCacheValid.3 FcFontSetCreate.3 FcFontSetDestroy.3 FcFontSetAdd.3 FcFreeTypeCharIndex.3 FcFreeTypeCharSet.3 FcFreeTypeQuery.3 FcFreeTypeQueryFace.3 FcInitLoadConfig.3 FcInitLoadConfigAndFonts.3 FcInit.3 FcFini.3 FcGetVersion.3 FcInitReinitialize.3 FcInitBringUptoDate.3 FcMatrixInit.3 FcMatrixCopy.3 FcMatrixEqual.3 FcMatrixMultiply.3 FcMatrixRotate.3 FcMatrixScale.3 FcMatrixShear.3 FcObjectSetCreate.3 FcObjectSetAdd.3 FcObjectSetDestroy.3 FcObjectSetBuild.3 FcNameRegisterObjectTypes.3 FcNameUnregisterObjectTypes.3 FcNameGetObjectType.3 FcPatternCreate.3 FcPatternDestroy.3 FcPatternEqual.3 FcPatternEqualSubset.3 FcPatternHash.3 FcPatternAdd.3 FcPatternAddWeak.3 FcPatternAdd-Type.3 FcPatternGet.3 FcPatternGet-Type.3 FcPatternBuild.3 FcPatternDel.3 FcPatternRemove.3 FcPatternPrint.3 FcDefaultSubstitute.3 FcNameParse.3 FcNameUnparse.3 FcUtf8ToUcs4.3 FcUcs4ToUtf8.3 FcUtf8Len.3 FcUtf16ToUcs4.3 FcUtf16Len.3 FcStrCopy.3 FcStrDowncase.3 FcStrCopyFilename.3 FcStrCmpIgnoreCase.3 FcStrStr.3 FcStrStrIgnoreCase.3 FcStrDirname.3 FcStrBasename.3 FcStrSetCreate.3 FcStrSetMember.3 FcStrSetAdd.3 FcStrSetAddFilename.3 FcStrSetDel.3 FcStrSetDestroy.3 FcStrListCreate.3 FcStrListNext.3 FcStrListDone.3 FcValueDestroy.3 FcValueSave.3
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fontconfig/Makefile
config.status: creating fc-lang/Makefile
config.status: creating fc-glyphname/Makefile
config.status: creating fc-case/Makefile
config.status: creating fc-arch/Makefile
config.status: creating src/Makefile
config.status: creating conf.d/Makefile
config.status: creating fc-cache/Makefile
config.status: creating fc-cat/Makefile
config.status: creating fc-list/Makefile
config.status: creating fc-match/Makefile
config.status: creating doc/Makefile
config.status: creating doc/version.sgml
config.status: creating test/Makefile
config.status: creating fontconfig.spec
config.status: creating fontconfig.pc
config.status: creating fonts.conf
config.status: creating fontconfig-zip
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
+ --with-freetype-config=/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/rootfs/usr/bin/freetype-config --prefix=/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/rootfs/usr
/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/tmp/rpm-tmp.33548: 1: --with-freetype-config=/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/rootfs/usr/bin/freetype-config --prefix=/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/rootfs/usr: not found
error: Bad exit status from /home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/tmp/rpm-tmp.33548 (%build)


RPM build errors:
Bad exit status from /home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/tmp/rpm-tmp.33548 (%build)
Build time for fontconfig: 17 seconds

Failed building fontconfig


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


Started: Thu May 3 08:52:13 2012
Ended: Thu May 3 08:52:31 2012
Elapsed: 18 seconds

These packages failed to build:
fontconfig

Build Failed

Exiting on error or interrupt

0 Kudos

238 Views
KrishnaPavan
Contributor II

Post the 10 lines before this text as well.

0 Kudos

238 Views
enaud
Contributor III

I have many lines and at end i have:

RPM build errors:
Bad exit status from /home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/tmp/rpm-tmp.82004 (%build)
Build time for fontconfig: 24 seconds

Failed building fontconfig


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


Started: Thu May 3 07:45:56 2012
Ended: Thu May 3 07:46:23 2012
Elapsed: 27 seconds

These packages failed to build:
fontconfig

Build Failed

Exiting on error or interrupt

0 Kudos

238 Views
KrishnaPavan
Contributor II

sorry, it should be ./ltib -v

0 Kudos

238 Views
enaud
Contributor III

Exiting on error or interrupt
lucid@ubuntu:~/L2.6.35_11.01.00_ER_source/ltib/ltib$ make V=1
make: *** No targets specified and no makefile found. Stop.
lucid@ubuntu:~/L2.6.35_11.01.00_ER_source/ltib/ltib$

0 Kudos

238 Views
KrishnaPavan
Contributor II

Try

make V=1

under ltib, instead of the usual make and post the output.

0 Kudos

238 Views
enaud
Contributor III

i have already

196-Immagine.jpg

0 Kudos

238 Views
KrishnaPavan
Contributor II

try to install from synaptics, by checking the proper dev files.

0 Kudos

238 Views
enaud
Contributor III

I have error:

lucid@ubuntu:~/L2.6.35_11.01.00_ER_source/ltib/ltib$ sudo apt-get install libconfig1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libconfig1-dev
lucid@ubuntu:~/L2.6.35_11.01.00_ER_source/ltib/ltib$

0 Kudos

238 Views
KrishnaPavan
Contributor II

Install, developer files of font config like libconfig1-dev on your host.

0 Kudos

238 Views
enaud
Contributor III

fontconfig.spec is correct and fontconfig-2.4.2 is available in opt/freescale/pkgs :(

0 Kudos

238 Views
Hitex
Contributor I

check fontconfig.spec file at the location mention earlier inside ltib/dist/lfs-5.1/fontconfig  check the package name and make sure the same packahe is available in opt/freescale/pkgs

0 Kudos

238 Views
enaud
Contributor III

ah ok thanks...

but for now i leave 4.6.0 and compile ltib... but i have this error:

/usr/local/lib/libfreetype.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libfontconfig.la] Error 1
make[3]: Leaving directory `/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/rpm/BUILD/fontconfig-2.4.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/rpm/BUILD/fontconfig-2.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/rpm/BUILD/fontconfig-2.4.2'
make: *** [all] Error 2
error: Bad exit status from /home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/tmp/rpm-tmp.6886 (%build)


RPM build errors:
Bad exit status from /home/lucid/L2.6.35_11.01.00_ER_source/ltib/ltib/tmp/rpm-tmp.6886 (%build)
Build time for fontconfig: 28 seconds

Failed building fontconfig


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


Started: Thu May 3 02:19:30 2012
Ended: Thu May 3 02:26:30 2012
Elapsed: 420 seconds

These packages failed to build:
fontconfig

Build Failed

0 Kudos

238 Views
Hitex
Contributor I

yes you can

if you check...ltib/dist/lfs-5.1/qt  in your system

You will find qt-embedded.spec file ,by default it is for qt-everywhere-opensource-src-4.6.0.tar.gz

( /home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/iMx53/ltib/dist/lfs-5.1/qt )

So you need a new .spec file for qt-everywhere-opensource-src-4.8.1.tar.gz and how you will get that file I also don`t know.

If you are able to comipile with qt-everywhere-opensource-src-4.8.1.tar.gz code please let me know as I faild.

0 Kudos

238 Views
enaud
Contributor III

I must put qt-everywhere-opensource-src-4.6.0.tar.gz at /opt/freescale/pkgs?

I can put  qt-everywhere-opensource-src-4.8.1.tar.gz ?

0 Kudos

238 Views
Hitex
Contributor I

Yes your selection is correct.

Make sure you paste Qt source code qt-everywhere-opensource-src-4.6.0.tar.gz at /opt/freescale/pkgs  folder

0 Kudos

238 Views
enaud
Contributor III

Where?

./ltib -c---->Package List---->Qt(Qt Embedded)----> Here I have 3 solution:

198-bmp.jpg

0 Kudos