LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-19-2003, 02:05 PM   #1
mtPete
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
Question cross compileing (libraries)


I am trying to compile programs on a developement system for a target system , which lacks a compiler. The target system has different versions of some libraries than the developement system. I am compileing gtk+ and it's dependencies, but am having problems isolating my new compiled stuff for the target from the developement system.

How can I compile programs (which install via the traditional ./configure, make, make install) against the target's libraries?

thanks
 
Old 06-19-2003, 06:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
try checkinstall

You did not say what distribution that you are using. If your distribution supports any of the Debian, RPM, or Slackware package systems then you could use checkinstall:

http://asic-linux.com.mx/~izto/checkinstall/

Your procedure would be:

Compile the program on the development system.
Use checkinstall to create the appropriate package.
Install the package on the target system.

Using this method the newly compiled programs are never actually installed on the development system.

As to the target libraries being different from the development libraries, you might be able to get away with installing the development version of the target libraries on the development system even though the development packages on the development system would not necessarily correspond with the binary libraries. You would have to override dependency checking when you installed the devel packages on your development system.

Last edited by jailbait; 06-19-2003 at 06:49 PM.
 
Old 06-19-2003, 07:05 PM   #3
mtPete
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
hey thanks for the reply.

The target was created with qplus, so it has no package manager.

The trick is how to install the dependency libraries on the devel system but insolate them from it so when I copy them to the target system they aren't looking for things particular to the devel system. I need to figure out how to compile against the target system, but from within the devel-system.

How do I over ride dependency checking?

This whole process of crosscompileing is new to me and I've been sort of feeling it out on my own for a while without too much luck.
 
Old 06-19-2003, 07:19 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
dual boot?

Here is another thought.

You could set up two Linux partitions on your development system. One would be your present development system. The other would be set up to mirror your target system plus a compiler. When you are ready to compile boot into your target mirror to do the compile. By judicious use of mount points in the two systems you would not even have to move data back and forth.
 
  


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
compileing 2.6.2 sethgeekx86 Slackware 5 02-08-2004 04:37 PM
Need Help Compileing... SiZaint Linux - Newbie 1 08-30-2003 03:33 AM
KDE compileing Q hulf_slo Linux - Software 0 07-24-2003 05:16 PM
g++ compileing andox Programming 1 06-18-2003 04:00 AM
problem compileing Firewalk tied2 Linux - Software 11 03-03-2003 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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