From owner-freebsd-emulation Sun Apr 16 10:56:46 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from hotmail.com (f83.law8.hotmail.com [216.33.241.83]) by hub.freebsd.org (Postfix) with SMTP id 4995537B8F8 for ; Sun, 16 Apr 2000 10:56:41 -0700 (PDT) (envelope-from jmd526@hotmail.com) Received: (qmail 51291 invoked by uid 0); 16 Apr 2000 17:56:40 -0000 Message-ID: <20000416175640.51290.qmail@hotmail.com> Received: from 209.220.228.2 by www.hotmail.com with HTTP; Sun, 16 Apr 2000 10:56:40 PDT X-Originating-IP: [209.220.228.2] From: "John Daniels" To: marcel@cup.hp.com Cc: freebsd-emulation@freebsd.org Subject: Re: linux application Date: Sun, 16 Apr 2000 13:56:40 EDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi: Thanks for your explanation. I have a few questions. The handbook says that Linux binaries have to be "branded." Your description doesn't say anything about that. I am really just interested running my program(s) on my FreeBSD system (4.0-RELEASE) that uses the API. If my program(s) run "native" or under linux emulation is a secondary concern. I am not specifically developing linux applications. With that said, if the API binaries are linked in, it would seem logical that I would then then have to develop "under Linux" as you outlined -- but wouldn't I need to "brand" the programs that I develop? (If they are not branded, I would think that they would then only run under the linux "development" shell.) And, if the API is implemented with *shared* binaries, couldn't I just "brand" those and develop my programs under FreeBSD? Also, I know that I have the Linux compatibility installed (I did that when I installed the system and I am running Linux Netscape and Star Office), but how can I know if I already have linux_devtools installed (I may have installed it, I'm not sure)? Your remarks lead me to believe that as long as I am working in a "linux shell" I am developing under linux, otherwise I am developing under FreeBSD. Please let me know if this assumption is not correct. Did you specifically mention C/C++ because that is what is supported by linux_devtools? Do I have to have be running the Linux versions of other languages (e.g. Java) if I want to use them for development under the linux shell? (The API that I am working with is implemented in both C/C++ and Java) Thanks for your help. John You wrote: >Forget the ports collection. After you've setup /compat/linux >(install >linux_base and linux_devtools) you will only be using Linux >binaries to do the compilation. You should be able to do it just as >if you were on a Linux machine yourself. > > > Basically, what do I have to do to create/compile/run programs > > that use libraries developed on Linux. > >1. Use a linux shell (ie run /compat/linux/bin/sh) >2. Create a C/C++ source file >3. Optionally create a makefile >4. Build/compile the source file >5. Run the freshly compiled binary > >Ad 4: Compiling a Linux binary is as simple as typing "gcc -o foo >foo.c", but only when done from within a Linux shell (see 1) > >Your manual should describe any options/parameters/libraries you need >to add to use the API. > >HTH, > >-- >Marcel Moolenaar > mail: marcel@cup.hp.com / marcel@FreeBSD.org > tel: (408) 447-4222 ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message