LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2015, 06:13 AM   #1
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Rep: Reputation: Disabled
cross compile of qt 4.8.5 for friendlyarm tiny 6410


hello, can anyone tell me how to cross compile of qt 4.8.5 for friendlyarm tiny 6410??
 
Old 10-28-2015, 06:58 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Debian has qt4 arm packages ( arm64, armhf ) packages, qt-4.8.6 :
https://packages.debian.org/source/jessie/qt4-x11
>> click a package, e.g. libqt4-dev, to find the "arm64, armhf" versions.

And Fedora : armhpf http://dl.fedoraproject.org/pub/fedo...p/os/Packages/
>> q/ http://dl.fedoraproject.org/pub/fedo...os/Packages/q/
>> qt-4.8.6 .


-
 
Old 10-28-2015, 07:29 AM   #3
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Original Poster
Rep: Reputation: Disabled
sorry cant get it..i am using ubuntu 12.04
 
Old 10-28-2015, 08:35 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
The ARM packages were suggested for your "friendlyarm tiny 6410".
I.e. easier with arm packages than trying to cross compile qt4.

----

No arm packages can be used in your Ubuntu 12.04 - x86*.
( This version of Ubuntu 14.04 is ARM : http://www.ubuntu.com/download/server/arm )


-
 
Old 10-28-2015, 08:40 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Example cross compiler for 6410 :

https://code.google.com/p/mini6410-d...ar.gz&can=2&q=.
 
Old 10-29-2015, 02:57 AM   #6
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Original Poster
Rep: Reputation: Disabled
i got this error while installing..how can i fixed it??

autom4te: cannot create autom4te.cache: No such file or directory
aclocal: /usr/bin/autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
 
Old 10-29-2015, 03:42 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Quote:
I got this error while installing
? Which command ? And which application ?

Which Ubuntu 12.04 are you using ? 64bits or 32bits ?
 
Old 10-29-2015, 04:18 AM   #8
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Original Poster
Rep: Reputation: Disabled
solved this problem by sudo -s
and then execute my command $./autogen.sh
 
Old 10-29-2015, 05:33 AM   #9
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Original Poster
Rep: Reputation: Disabled
1. tslib compilation
$cd /usr/local
$git clone http://github.com/kergoth/tslib.git
$export PATH=/usr/local/arm/4.3.2/bin:$PATH
$export CROSS_COMPILE=arm-none-linux-gnueabi-
$export CC=${CROSS_COMPILE}gcc
$export CFLAGS=-march=armv4t
$export CXX=${CROSS_COMPILE}"g++"
$export AR=${CROSS_COMPILE}"ar"
$export AS=${CROSS_COMPILE}"as"
$export RANLIB=${CROSS_COMPILE}"ranlib"
$export LD=${CROSS_COMPILE}"ld"
$export STRIP=${CROSS_COMPILE}"strip"
$export ac_cv_func_malloc_0_nonnull=yes
$cd /usr/local/tslib
$./autogen-clean.sh
$./autogen.sh
$./configure --host=arm-linux --prefix=/home/tslib --enable-shared=yes --enable-static=yes
$make
$make install




i followed this steps for first tslib installation but when i checked file libts-1.0.so.0.0.0 in lib file then i got following output==>
libts-1.0.so.0.0.0: ELF 32-bit LSB shared object, "Intel 80386", version 1 (SYSV), dynamically linked, BuildID[sha1]=0xd113e8e6a6562ca3bd32f286ed9611919adc9a44, not stripped

i want arm instead of that Intel 80386??
 
Old 10-29-2015, 06:26 AM   #10
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Original Poster
Rep: Reputation: Disabled
i am using ubuntu 12.04 32 bit machine.
 
Old 10-29-2015, 09:59 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Re #9.

You will have to set the compiler(s) and the linker :
( Not sure what ${CROSS_COMPILE} is doing )
export CC=<path>/<gcc-arm-?>
export CXX=
export LD=
... etc.

The export command will not say "error" if your ${CROSS_COMPILE} is wrong.
And I can see no settings for ${CROSS_COMPILE}


-

Last edited by knudfl; 10-29-2015 at 10:02 AM.
 
Old 10-30-2015, 12:48 AM   #12
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Original Poster
Rep: Reputation: Disabled
i have set all path but issue not solved
 
Old 10-30-2015, 06:54 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Re #9.

? What is ${CROSS_COMPILE} ?
Where is ${CROSS_COMPILE} defined ?
 
Old 10-30-2015, 07:50 AM   #14
sachinmm
Member
 
Registered: Oct 2015
Posts: 67

Original Poster
Rep: Reputation: Disabled
it is just variable name
$export CROSS_COMPILE=arm-none-linux-gnueabi-
if i execute above command then if i run $CROSS_COMPILE
then it shows "arm-none-linux-gnueabi-" this output.
 
Old 10-30-2015, 11:14 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
OK.

About libts : There are no examples of "libts for arm", AFAIK.
There was one hit with Google, an unsuccessful build.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eglibc cannot compile suffix of object files while trying to cross compile Bry6n Linux From Scratch 0 08-21-2012 06:14 PM
Cross-Compile some libraries for FriendlyARM striker07 Linux - Embedded & Single-board computer 1 04-21-2011 05:36 AM
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
How to compile a tiny simple library by g++? Xiangbuilder Programming 13 10-20-2003 08:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration