LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2005, 10:29 AM   #1
csvke
Member
 
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96

Rep: Reputation: 15
Seperate compile from the rest of the installation proces


I use an old P-133 Fujitsu Laptop at home and sometimes at work and I recently figured out a way to use my computer resources more wisely: 'move' the compile process to my server with powerful hardware performance and drop the binaries back to my client machine, which I thought it's a common idea to be implemented.

But what should I do practically when compiling source code? I'd like to learn more about these things... you know using a P-133 machine with 96MB Ram and 1xx MB of free HDD space is not viable at all..

Any advise / info is appreciated.
 
Old 01-21-2005, 10:38 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
I am not a programmer nor a compiling expert, but I think what you want to do is called cross-compiling. Searching this keyword in google I found this:

http://www.jimbrooks.org/web/linux/d...inuxKernel.php

I guess you could also apply this to 'normal' software.
 
Old 01-21-2005, 01:51 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
this can get a little tricky
if it's an intel platform i don't think it's cross compiling
just don't use compiler architecture flags above the older computers architecture (arch=i586) ?
then just try it
if core lib gcc versions are way different you might have to build some older or newer gcc libs on the target for compatability (or just copy them from the server) i've just copied libs before and they work even though you think they wouldn't because they were compiled on a different glibc version.
basically just run them from the command line on the host and see if they complain about missing stuff and if they do then go from there to make them happy.
 
Old 01-21-2005, 08:34 PM   #4
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
Have a look at distcc (http://distcc.samba.org/); it's a front end to gcc that allows for distributed compilation.

Your laptop and server can work cooperatively to compile source.

Lyle
 
Old 01-21-2005, 10:18 PM   #5
csvke
Member
 
Registered: Oct 2003
Location: Hong Kong
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
Great, I shall have a look.

BTW I did a bit of embedded system stuff and I suppose cross compling is basically to use platform A machine to compile stuff for machine B.
E.g. an i686 machine compiling stuff for powerpc... then you need to pass some flags to the compiler when compiling.
 
  


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
User proces limit webserve Linux - Security 7 08-12-2005 07:52 PM
what do I do with the rest of installation cds? adonai Linux - Newbie 7 06-12-2004 01:40 PM
Error Proces Booting After Compiling Kernel 2.6.3 Gijet Red Hat 7 06-04-2004 10:21 PM
Installation on a seperate hard drive with win XP on the other fedoracorechris Fedora 2 04-19-2004 10:45 AM
Need a challange?!? Try to solve this one: INTER PROCES COMMUNICATION rkrijger Linux - Software 1 10-29-2003 09:43 AM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration