LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-13-2014, 06:00 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
cross compiling libraries/utilities referred in Beyond Linux From Scratch document


Hi,

How to cross compile the libraries and utilities referenced in Beyond Linux From Scratch document as it mentions native compiling instructions only?I agree some special care has to be taken depending on libraries/utilities but i need atleast the general instructions to be followed for them.

Please help!
 
Old 10-13-2014, 04:34 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,154

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
goto clfs which is the lfs site devoted tocross compiling,it's quite easy
 
Old 10-13-2014, 10:31 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
CLFS is a bit behind LFS in terms of packages, but it can be used in conjunction with LFS to create a true multi-lib LFS.

I don't use it per-say as I stick now to full 64-bit packages and builds, but some people may find it useful.

http://cross-lfs.org/view/sysvinit/x86_64/

http://www.cross-lfs.org/view/CLFS-3...SVINIT/x86_64/

These are the current multilib books available to read online as far as the traditional sysvinit trunk builds go. There are some differences in the packages with CLFS mind you, so if you attempt CLFS for the first time, you should use only those packages until you feel comfortable enough to use the packages in mix with LFS.

Be forewarned that CLFS does NOT cover BLFS at all. For BLFS you will be on your own. The Community Beyond Linux From Scratch wiki site:

http://cblfs.cross-lfs.org/index.php/Main_Page

may be of some assistance, but it's information hasn't been updated in a while, so user-beware.

Last edited by ReaperX7; 10-13-2014 at 10:37 PM.
 
Old 10-14-2014, 02:49 AM   #4
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Hi,

Cross compiling instructions for most of features like Server configuration utilities, desktop utilities, media libraries/utilities, graphics libraries, libraries for scanning / printing, etc,.. are not available in CLFS. In CBLFS also i could not locate the cross compiling instructions. So for this where can i get the source? Is it good to look the make file contents for respective libraries for understandng the cross compile methods ?
 
Old 10-14-2014, 03:30 AM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You basically have to build once for x86-32 and again for x86-64, just like the CLFS books states.

However, CBLFS has instructions for both as well as N32 but you don't need the N32 instructions.

You won't need all packages built for this though.

Last edited by ReaperX7; 10-14-2014 at 03:35 AM.
 
  


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
Installation of Sysvinit-2.86 fails on Cross Linux From Scratch LUB997 Programming 1 07-20-2009 01:25 AM
thinking about cross linux from scratch... am i ready tommytomthms5 Linux - Newbie 4 12-24-2007 12:12 PM
Cross compiling to Windows binary, including Linux shared libraries Siiiiiii Programming 2 03-09-2007 12:36 AM
Cross-compiling Slackware from scratch intens Slackware 7 01-15-2007 02:26 AM
LXer: Distribution Release: Cross Linux From Scratch 1.0.0 LXer Syndicated Linux News 0 09-27-2006 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:08 PM.

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