LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2005, 05:40 PM   #1
terp4life2001
LQ Newbie
 
Registered: Dec 2005
Posts: 26

Rep: Reputation: 15
Cross compiler build enviroment


Hello everyone,

My company has a set of utilities that need to be built and released for multiple (Linux) distributions on multiple platforms. Due to staffing constraints I am setting up a build system to accommodate this task; however I don't have any build server experience.

I ideally we would have one set of libs and one set of exes that would work on all of the targets, but I don't think that will be a possibility because each target may have different library versions.

Currently I have two cross compilers installed, Montavista4.0 and a Montavista3.1 and I am trying to install a Windriver cross compiler as well.

It seems like it's going to be a total mess managing each cross compiler for each target. I have to configure some environment variables for each cross compiler and ultimately each one is just compiling with g++. I know that doesn't sound like too much, and I have a script to toggle between each cross compiler environment but each cross compiler plays a little be differently and for each cross compiler that I add the more complicated it gets. Also, documentation is sparse.

I have two questions.

1) I really feel like I'm re-inventing the wheel. I would guess that there are build engineers out there that have dealt with multiple targets and one code base. Can anyone in the community point me to a resource?

2) I have an idea to use a generic g++ compiler and have a folder for each target with its libraries. When I wanted to build for each platform I could just change a variable or two to point to the target's libraries.


I have a lot more on my mind regarding this, but I'm trying to condense it for readability.

Thanks in advance,

//Rob
 
Old 12-10-2005, 11:20 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,387

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Quote:
Originally Posted by terp4life2001
Hello everyone,

My company has a set of utilities that need to be built and released for multiple (Linux) distributions on multiple platforms. Due to staffing constraints I am setting up a build system to accommodate this task; however I don't have any build server experience.

I ideally we would have one set of libs and one set of exes that would work on all of the targets, but I don't think that will be a possibility because each target may have different library versions.
In general developers do not try to provide packages for a wide range of distributions and platforms. The few that do (Open Office for example) try to provide a few tar.gz packages that install a binary.

Most developers start out by providing a package for the distribution and platform that they do development work on. For everybody else they provide a source tar.gz which uses ./configure, make, and make install.

If you can talk a distribution into including your software on their install CDs then the distribution will compile and package your software for each release of their software and for every platform that they support. The way that you achieve universal distribution and platform support is by creating an application that is popular enough that every distribution thinks that it is worthwhile to include it in their install CDs.

---------------------
Steve Stites
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compiler for H8300 FLLinux Programming 0 11-06-2005 07:24 AM
cross compiler alpha_foobar Linux - General 0 08-17-2005 06:15 PM
Cross compiler !!! hiteshmaisheri Linux - Laptop and Netbook 3 03-05-2005 09:51 AM
cross compiler leonora Programming 2 01-08-2005 11:13 AM
Cross compiler help please daveschile Linux - Software 1 04-09-2004 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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