Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-30-2008, 10:16 PM   #1
Registered: Mar 2006
Posts: 170

Rep: Reputation: 15
Possible to compile applications for a different system?

I have an old laptop with no internet connection. It's running DSL. So it's kernal 2.4. I want to install the program feh.

Is there any way that I can compile feh on my normal Hardy Heron desktop computer, so that I can just put it on a flashdrive and copy it to my laptop?

I don't suppose I can apt-get install feh on my Hardy Heron desktop, and copy the files over, because apt would install an feh that won't run on the DSL installation. But I really don't know how all this stuff works.
Old 08-30-2008, 10:41 PM   #2
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I don't know what feh is so I can't give a definitive answer.

You more than likely can do what you want, if you deploy a development environment that is compatible with the 2.4 kernel that is on the target system.

Doing this would be non-trivial, but *should* be possible. You will have to find the gcc sources (or else a binary that will run on your system) that are old enough to go with a 2.4 kernel, and you also would have to locate all the relevant libraries. Then you would have to set up an appropriate environment, and go for it. Probably this would be a lot of work.

Seems to me it would be easier to update the laptop using a CD or DVD.
Old 08-30-2008, 10:51 PM   #3
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
It's possible (and people do it all the time) but it's not trivial; if you've never done it before, give yourself about a month to learn how to do it.

Basically, you need to build the libc and other libraries that you'll use on DSL on your other computer - but before you do that you need to build a cross-compiler (even if the target CPUs are the same). The reason for building the cross-compiler is to ensure that the libs and so on are built to work with your 2.4 kernel (which you also have to build) and aren't accidentally 'contaminated' by libs on your build computer.

The easiest way is to set up PPP over the serial port so you can use another computer connected to the internet to provide internet on that notebook. If the notebook supports USB memory sticks, you can download and transfer files via the stick.
Old 08-30-2008, 10:53 PM   #4
Registered: Mar 2006
Posts: 170

Original Poster
Rep: Reputation: 15
How can I update the laptop using a CD/DVD, though? Do you mean update the OS to one that uses the 2.6 kernal?

DSL uses the 2.4 kernel and it always has and always will. I could change distros on the laptop and in fact I have tried, but for whatever reason the Puppy linux liveCDs wouldn't boot on the target laptop, even though they booted on my other system. I need a disto that can install onto a 1GB compact flash drive preferably with some to spare.

feh is a picture-viewing program. The laptop's sole purpose is showing slideshows of my photographs with feh.
Old 08-30-2008, 11:02 PM   #5
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You don't have to change the kernel if there are packages made for DSL. You just need to get the packages (and dependencies) from the computer on the network and transfer it to the DSL computer - by USB stick or CD or whatever. You might also consider linking the laptop to your desktop via ppp, that way your DSL machine can get internet access whenever you connect via your desktop.
Old 08-31-2008, 03:24 AM   #6
Valery Reznic
ELF Statifier author
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
In order to move executable complied on one Linux disro to another you can use
statifier ( or Ermine (


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
Can't compile Qt applications with Eclipse barbuceanu Linux - Software 2 05-08-2008 01:39 PM
Can't compile applications with Slack 11.0 digthemdeep Slackware 5 01-22-2007 01:26 PM
Cannot compile / run gtk related applications LazyP Linux - Software 2 12-25-2005 05:51 PM
KDE compile, leave out applications Haiyadragon Linux - Software 4 03-15-2005 04:35 PM
Closing applications to the system tray ThePenguin Linux - Newbie 1 09-06-2004 02:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration