Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Linking code with linux libraries

 
   FreeBSD Hosting (Home) -> FreeBSD vs Linux RSS
Next:  Cross-compiling/porting to linux  
Author Message
djaba

External


Since: Apr 02, 2005
Posts: 2



(Msg. 1) Posted: Sat Apr 02, 2005 2:11 pm
Post subject: Linking code with linux libraries
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

Hi there!
I have a large collection of linux libraries that I must work with,
and before attempting to recompile them all for FreeBSD (huge work,
definately not straightforward), I was wondering if I could perform
one of the following:
- compile my program natively to FreeBSD but linking to all these
linux compiled libraries (seems harder)
- compile my program for linux and run it through the compatibility
layer (seems easier)

Any ideas?
Thanks in advance!
-- djaba

 >> Stay informed about: Linking code with linux libraries 
Back to top
Login to vote
Kris Kennaway

External


Since: Mar 22, 2004
Posts: 43



(Msg. 2) Posted: Sat Apr 02, 2005 9:41 pm
Post subject: Re: Linking code with linux libraries [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-04-02, djaba wrote:
> Hi there!
> I have a large collection of linux libraries that I must work with,
> and before attempting to recompile them all for FreeBSD (huge work,
> definately not straightforward), I was wondering if I could perform
> one of the following:
> - compile my program natively to FreeBSD but linking to all these
> linux compiled libraries (seems harder)

No.

> - compile my program for linux and run it through the compatibility
> layer (seems easier)

Yes. Install the relevant linux_devtools port, which will give you a
basic compiler toolchain and some other support tools. You can then
e.g. chroot /compat/linux /bin/bash and compile things there as you
would on a Linux system.

Kris

 >> Stay informed about: Linking code with linux libraries 
Back to top
Login to vote
djaba

External


Since: Apr 02, 2005
Posts: 2



(Msg. 3) Posted: Sun Apr 03, 2005 4:01 pm
Post subject: Re: Linking code with linux libraries [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 2 Apr 2005 21:41:51 -0800, Kris Kennaway
wrote:

>
>Yes. Install the relevant linux_devtools port, which will give you a
>basic compiler toolchain and some other support tools. You can then
>e.g. chroot /compat/linux /bin/bash and compile things there as you
>would on a Linux system.
>
>Kris

Thanks, I'll look into that!
-- djaba
 >> Stay informed about: Linking code with linux libraries 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Linux compatibility: is it possible to link freebsd code t.. - Hello, Linux compatibility works fine to run linux binaries, but I'm wondering if it's possible to compile code on FreeBSD and link it to a linux library? I want to compile SAP-Rfc, a perl module, to perform RFC to an SAP server. The code must be linke...

Helix Player (missing Linux libraries) -

getting the plugins to work--linux libraries not being found - On both this new installation and an older upgraded installatin, I'm having trouble to get plugins to work with mozilla. I have installed: pkg_info | grep -e .mozilla -e plugin -e flash (y|n|e|a)? no flashplayer-0.4.10_1 GPL standalone Flash (TM) player...

Compiling Linux app source code on FBSD - I've been struggling trying to compile Advanced Stock Tracker (ast-0.3.0_pre1) on 7.1-prerelease. It appears to be a linux-centric application as the compile was failing with "/usr/bin/ld: can't find - ldl" errors. I think I've got that fixed b...

NYC LOCAL: Wednesday 5 October 2005 NYCBUG: Jan Schaumann .. - <blockquote what="official NYCBUG announcement"> Date: Mon, 03 Oct 2005 22:02:59 -0400 To: announce-nycbug@lists.nycbug.org From: announce-nycbug@lists.nycbug.org Subject: [Announce-NYCBUG] NYCBUG: Wednesday, October 3rd, 6 pm No...
   FreeBSD Hosting (Home) -> FreeBSD vs Linux All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]