LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-22-2010, 06:13 AM   #1
maheshpawar49
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
Question cross compiling sqlite3 for arm 7 processor


Hi every one,
i am trying to cross compile sqlite3 with following options
(i got these options from previous threads in these forum)

./configure --host=arm-linux CC=/usr/local/arm-linux/bin/arm-linux-gcc AR=arm-linux-ar STRIP=arm-linux-strip RANLIB=arm-linux-ranlib

while executing make command i am getting following error

rm -fr .libs/libsqlite3.so .libs/libsqlite3.so.0 .libs/libsqlite3.so.0.8.6
/usr/local/arm-linux/bin/arm-linux-gcc -shared .libs/sqlite3.o -ldl -lpthread -Wl,-soname -Wl,libsqlite3.so.0 -o .libs/libsqlite3.so.0.8.6
(cd .libs && rm -f libsqlite3.so.0 && ln -s libsqlite3.so.0.8.6 libsqlite3.so.0)
(cd .libs && rm -f libsqlite3.so && ln -s libsqlite3.so.0.8.6 libsqlite3.so)
arm-linux-ar cru .libs/libsqlite3.a sqlite3.o
./libtool: line 5969: arm-linux-ar: command not found
make: *** [libsqlite3.la] Error 127

can anybody pls help me

with regards
mahesh j pawar

Last edited by maheshpawar49; 11-22-2010 at 06:16 AM.
 
Old 11-22-2010, 07:28 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Try
./configure --host=arm-linux CC=/usr/local/arm-linux/bin/arm-linux-gcc AR=/full/path/to/arm-linux-ar STRIP=arm-linux-strip RANLIB=arm-linux-ranlib

Check that it's executable. Worth a go.
 
Old 11-22-2010, 11:36 PM   #3
maheshpawar49
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Question

hi i tried using this command but

./configure --host=arm-linux CC=/usr/local/arm-linux/bin/arm-linux-gcc AR=/full/path/to/arm-linux-ar STRIP=arm-linux-strip RANLIB=arm-linux-ranlib

I get following warning

configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.

so can u explain what does that mean

after make and make install i get the output file but it is executable file and when i try to run on device following message pops up

bash-2.04# ./sqlite3
bash: ./sqlite3: cannot execute binary file

so please help me

with regards
mahesh j pawar

Last edited by maheshpawar49; 11-22-2010 at 11:41 PM.
 
Old 11-23-2010, 03:30 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
What this is showing is that your choice of options is poor.
Don't argue with it - obey it.
 
Old 11-23-2010, 11:29 PM   #5
maheshpawar49
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

hi,
can u please explain it to me
 
Old 11-23-2010, 11:45 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
I think business_kid is saying "don't mix --host and --build".

That's good advice ... but I don't think you're using "--build", are you?
http://www.linuxquestions.org/questi...te=1&p=4169041
SUGGESTION:
1. Look here and see if it helps:
http://www.crosscompile.org/static/pages/SQLite.html
http://osdir.com/ml/sysutils.autocon.../msg00057.html

2. I think the host argument should be "--host=arm-linux" ... but I'm prepared to be wrong

3. Finally, this should be the BEST reference:
http://www.sqlite.org/cvstrac/wiki?p=HowToCompile
 
  


Reply



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
cross compiling apache-2.0.54 for arm jkeertir Linux - Newbie 3 09-11-2014 01:35 PM
Cross compiling for ARM Hachaso Programming 1 06-26-2009 06:07 AM
Cross Compiling Sqlite3 for ARM Issues. AuzJ Linux - Newbie 1 04-23-2009 05:32 PM
ARM Cross Compiling Issues AuzJ Linux - Newbie 4 04-16-2009 03:47 AM
Cross compiling utftpd for arm SachinTCS Linux - Desktop 1 04-13-2007 02:11 AM

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

All times are GMT -5. The time now is 06:18 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