OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How To Set Up A Cross Compiler Environment
hollow5555
post Nov 23 2005, 08:57 AM
Post #1





Group: Members
Posts: 19
Joined: 11-November 05
Member No.: 8,518



I'm looking for a way to develop and test applications for my zaurus sl-5500 on a linux box. I found the cross compilers, but they're based on older GCC versions. As luck has it, I have an older laptop that I'm trying to find a way to get Linux onto. Unfortunately for me the newer kernels do NOT like my pcmcia slots, but I know for a fact that older kernels do, so I'll probably be installing an older version of linux to get it working and I thought this would be a perfect development environment for my zaurus as well as other uses I had planned for this old laptop.

So my question is, given that the zaurus cross compilers are based off of gcc 2.95, what linux distro and version is the easiest to configure with the cross compilers and can someone give me a quick overview. Reading through the stuff on the web was a little confusing since I'm not even sure what my starting point is yet.

Thanks!
Go to the top of the page
 
+Quote Post
lardman
post Nov 23 2005, 09:52 AM
Post #2





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



As you will be using a seperate cross-compiler it doesn't matter what version of GCC you have on your laptop.

Personally I use Mandrake 10.2, with bitbake and Openembedded (which means my cross-compiler is GCC 3.x.x/4.0.0 anyway), but to cross-compile some kernels I still have to use a GCC 2.95.3 cross-toolchain which works fine.


Si
Go to the top of the page
 
+Quote Post
frobnoid_
post Nov 23 2005, 09:59 AM
Post #3





Group: Members
Posts: 37
Joined: 29-August 05
Member No.: 7,985



QUOTE(hollow5555 @ Nov 23 2005, 11:57 AM)
So my question is, given that the zaurus cross compilers are based off of gcc 2.95, what linux distro and version is the easiest to configure with the cross compilers and can someone give me a quick overview. Reading through the stuff on the web was a little confusing since I'm not even sure what my starting point is yet.

Thanks!
*


I set it up in the following way:
I installed the sharp SDK to /opt. (unzip, untar, copy)
I then created a script which sets up my environment to point to the compiler & utils in /opt and run it before I start doing zaurus development work. (sets PATH, QTDIR and QPEDIR)

Its all very distro-agnostic, so I'd select a distro based on whatever other criteria you would normally use.
Go to the top of the page
 
+Quote Post
hollow5555
post Nov 23 2005, 10:24 AM
Post #4





Group: Members
Posts: 19
Joined: 11-November 05
Member No.: 8,518



QUOTE(frobnoid_ @ Nov 23 2005, 12:59 PM)
I set it up in the following way:
I installed the sharp SDK to /opt. (unzip, untar, copy)
I then created a script which sets up my environment to point to the compiler & utils in /opt and run it before I start doing zaurus development work. (sets PATH, QTDIR and QPEDIR)

Its all very distro-agnostic, so I'd select a distro based on whatever other criteria you would normally use.
*


Well yes but seeing as how i have no distro on the box right now and I know the easiest thing to do is set it up with one that has GCC 2.95, I still don't know which is the best path to take. That's really the answer I'm looking for, is suggestions on which distro/version would be simple to set up with the sharp compilers. Obviously if I have a fedora core 3 box, putting the cross compiler on it will be a pain since the GCC versions are incompatible, right? Or do I misunderstand that.

Thanks
Go to the top of the page
 
+Quote Post
frobnoid_
post Nov 23 2005, 10:54 AM
Post #5





Group: Members
Posts: 37
Joined: 29-August 05
Member No.: 7,985



QUOTE(hollow5555 @ Nov 23 2005, 01:24 PM)
Well yes but seeing as how i have no distro on the box right now and I know the easiest thing to do is set it up with one that has GCC 2.95, I still don't know which is the best path to take. That's really the answer I'm looking for, is suggestions on which distro/version would be simple to set up with the sharp compilers. Obviously if I have a fedora core 3 box, putting the cross compiler on it will be a pain since the GCC versions are incompatible, right? Or do I misunderstand that.
*


The native compiler version doesn't matter. You'll be compiling with the sharp (or whomever) provided compiler, and linking against the sharp compiled libs (compiled with gcc 2.95).
My machine uses gcc 3 natively, but 2.95 for cross compiles without any problems.
Go to the top of the page
 
+Quote Post
hollow5555
post Nov 23 2005, 11:27 AM
Post #6





Group: Members
Posts: 19
Joined: 11-November 05
Member No.: 8,518



QUOTE(frobnoid_ @ Nov 23 2005, 01:54 PM)
The native compiler version doesn't matter. You'll be compiling with the sharp (or whomever) provided compiler, and linking against the sharp compiled libs (compiled with gcc 2.95).
My machine uses gcc 3 natively, but 2.95 for cross compiles without any problems.
*

ah... interesting. I thought I read that there is some incompatibility that comes if you do that. Guess I was misunderstanding. Sorry about that.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th November 2014 - 08:09 PM