LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2009, 09:07 PM   #1
AuzJ
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Rep: Reputation: 0
Question ARM Cross Compiling Issues


Hey All,

First of I have been reading around and there is some great information available, however, I haven't been able to find quite what I'm looking for.

My target is a Cirrus Logic ARM processor and my host PC is a lappy using Ubuntu. I have tried to generate my own cross compiler following many of the widely available "how to's" but I haven't had much success. The Logic board did come with a cross compiler (gcc-glibc). It does work and I have tested it.

So my problem is that I am attempting to compile a C program using Sqlite3. I know the code itself is good but I can't cross compile without an array of errors. I was just wondering if there is some sound tutorials or if someone could please point me in the right direction. I have a compiled version of SQLite3 for ARM and that also works without issue. It is purely just the cross-compiling of the SQLite3 code I have written.

Any help of information would be greatly appreciated.

Regards,
J
 
Old 04-15-2009, 11:48 PM   #2
AuzJ
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Updated Information

Sorry I am using:

Host: Ubuntu 8.1 (dual core)

Target: TS-linux (ARM9 cirrus logic EP9302)
 
Old 04-15-2009, 11:53 PM   #3
AuzJ
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Current Objectives:

Achieve a compiled C program (SQLite3), compiled to run on the ARM system I have.

Secondary Objectives:

Achieve a self compiled Cross Compiler.
 
Old 04-16-2009, 01:23 AM   #4
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by AuzJ View Post
Current Objectives:

Achieve a compiled C program (SQLite3), compiled to run on the ARM system I have.

Secondary Objectives:

Achieve a self compiled Cross Compiler.
Can't help you with cross-compiling (and I didn't like it too much either :) but you have another option: use QEMU to install whole ARM system and make compilation native
 
Old 04-16-2009, 03:47 AM   #5
maresmasb
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
It's difficult to help if you do not provide information about the triggered errors during compilation. Your programming skills can also not be judged by your posting.

Basically, you will need to build and run your code natively on your current development system to verify that it really compiles well. The next step is to provide all the needed header files and static/shared libraries for the ARM port of sqlite3 as well, otherwise you can't link an executable program for the target device.

I'm sure that the error messages do give some hints.

Last edited by Tinkster; 10-30-2010 at 03:12 PM.
 
  


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 Bluez-utils for ARM deshu Linux - Software 1 03-06-2009 01:29 PM
Cross compiling utftpd on arm linux SachinTCS Linux - Software 1 04-13-2007 10:03 PM
Cross compiling utftpd on x86 for arm SachinTCS Linux - Software 1 04-13-2007 09:50 PM
Cross compiling utftpd for arm SachinTCS Linux - Desktop 1 04-13-2007 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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