LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-13-2008, 04:16 AM   #1
robertward
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Compiling onh FC9 for FC4


I'm about to take delivery of a ruggadised processor which ships with a version of Fedora Core 4 but contains no development tools as part of its Linux distribution. The manual says a vanilla Fedora Core 4 installation can be used to compile up any applications. Noticing that FC4 is archived I looked at using Fedora Core 9 to compile up all my source code.

In particular I'm looking to use the GTK+ libraries, so if I download all the necessary libraries and dependencies and build from scratch, can I
compile using the default FC9 development tool chain, making sure I use the correct header files and libraries, and copy the resulting application across to FC4 and it will work?

Do I have to recompile the tool chain (gcc, libtool etc) with FC4 kernel headers and then compile the GTK sources?
 
Old 11-13-2008, 11:42 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Each version of Fedora uses a different version of GCC(and a lot of libs too). Without another FC4 box you are going to run into a lot of little(and some not so little) gotchas.
 
Old 11-13-2008, 11:46 PM   #3
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
This is super easy. All you need to do is make a new folder on your system and copy over the contents of the / partition from a FC4 system. Then use the 'chroot' command to go into that folder and you can even use yum to install more packages!

For example.

On the FC4 system use the rsync command to copy it to your system at 192.168.1.10 into the /home/fc4/ folder by:

rsync -av --progress --stats / root@192.168.1.10:/home/fc4/

Once it is all copied over get a root terminal open on your FC9 box and do this:

chroot /home/fc4/

And you'll have every tool that was installed on that FC4 box available!
 
Old 11-14-2008, 12:31 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
anonbomber

Quote:
which ships with a version of Fedora Core 4 but contains no development tools as part of its Linux distribution.
Apparently you missed that part(above). Almost all(if not all) the FC4 repos are gone now.

You could just dual boot your machine with FC4: http://www.filewatcher.com/b/ftp/ftp...6/iso.0.0.html

You probably would have to stick with the initial install versions of all the packages, unless you could find a FC4 repo that was still around(long shot).

Last edited by lazlow; 11-14-2008 at 12:43 AM.
 
Old 11-14-2008, 02:29 AM   #5
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by robertward View Post
I'm about to take delivery of a ruggadised processor which ships with a version of Fedora Core 4 but contains no development tools as part of its Linux distribution. The manual says a vanilla Fedora Core 4 installation can be used to compile up any applications. Noticing that FC4 is archived I looked at using Fedora Core 9 to compile up all my source code.

In particular I'm looking to use the GTK+ libraries, so if I download all the necessary libraries and dependencies and build from scratch, can I
compile using the default FC9 development tool chain, making sure I use the correct header files and libraries, and copy the resulting application across to FC4 and it will work?

Do I have to recompile the tool chain (gcc, libtool etc) with FC4 kernel headers and then compile the GTK sources?
You can build your program on the FC9 then pack it using Ermine (http://magicErmine.com) or statifier (http://statifier.sf.net)
Resulting executable should work on nearly all Linux disro without need to install any shared library
 
Old 11-18-2008, 10:34 AM   #6
robertward
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anonobomber View Post
This is super easy. All you need to do is make a new folder on your system and copy over the contents of the / partition from a FC4 system. Then use the 'chroot' command to go into that folder and you can even use yum to install more packages!

For example.

On the FC4 system use the rsync command to copy it to your system at 192.168.1.10 into the /home/fc4/ folder by:

rsync -av --progress --stats / root@192.168.1.10:/home/fc4/

Once it is all copied over get a root terminal open on your FC9 box and do this:

chroot /home/fc4/

And you'll have every tool that was installed on that FC4 box available!
Thanks for the help.

I was wondering how to get the chroot command to 'stick', I didn't want to run as root in a terminal after the chroot command is executed to compile the source code up.

I then found this link which solves the problem http://www.kegel.com/crosstool/curre...gin-howto.html

Last edited by robertward; 11-20-2008 at 04:51 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
error compiling xserver under fc9 centguy Linux - Desktop 14 10-06-2008 09:51 PM
Error Reboot ing FC9 2.6.26.3-29.fc9.x86_64 usdave Fedora 2 10-04-2008 07:52 AM
Compiling Amarok-1.4.2 on FC4 gnjunior Fedora 4 08-27-2006 08:02 PM
Compiling ns2 on FC4 sita Linux - Software 0 11-04-2005 02:25 PM
Compiling kernel 2.4 in FC4 ilyushin Linux - Newbie 7 08-09-2005 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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