From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 13:01:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E98816A419 for ; Fri, 18 Jan 2008 13:01:39 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id E356013C465 for ; Fri, 18 Jan 2008 13:01:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so614433wxd.7 for ; Fri, 18 Jan 2008 05:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=FI4v59GvJVoaTHG/VIYZW9CqYZxWik4mzwXuYSa+C/8=; b=lPpCuXu9KxySdo4N2lrfXzcEqCswkikB8oIGjrOGrcTRx9VnsQROuQZzD/9LeWsqQt0Li4HnTQB8/BDxSdJf0+xbWDmrCuM3gwKAfCT2jF14EgmE6Hc22HeEOEbswzxAOsP7ieBVFehDmd2bHF06d0/YePt57jrNGhYNeD9CerA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qmXMrznJ30F2O7/t017b8eisicPRxAnw6VaqK0UzxF4TfXrivXUKfJRmSB5Cq1tYRnCr2TDNZxefqiD1CnikXaIfGxhKc6bgEqYxk0NH5KdqG03E2Fm0oAudmWWgkxCgZM45Q7UT630TchApO2tgqVFp+Yoq3qMwVsSRMs0p840= Received: by 10.142.201.3 with SMTP id y3mr1981334wff.120.1200661297452; Fri, 18 Jan 2008 05:01:37 -0800 (PST) Received: by 10.143.155.13 with HTTP; Fri, 18 Jan 2008 05:01:37 -0800 (PST) Message-ID: Date: Fri, 18 Jan 2008 22:01:37 +0900 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: "navneet Upadhyay" In-Reply-To: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> X-Google-Sender-Auth: a6b82368951a4f45 Cc: freebsd-hackers@freebsd.org Subject: Re: Trying to support my product on BSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 13:01:39 -0000 On 18/01/2008, navneet Upadhyay wrote: > Hi , > My product is successfully running on Linux( all most all versions) > and HP- UX and Windows . > > *It is 100 % C++ code*. A good start. It could get ugly though, depends on your compiler version and how much of your code is linux specific. :) > I am planning to support it on FreeBSD, i have two queries : > > 1. *How to build my code into binaries* on FreeBSD , i have my unix make > files. Just to give an idea i have around 200 cpp files and they complile to > 5 binaries . I am using multithreading(posix on linux) and sockets heavily. I'd suggest installing the gmake port in FreeBSD, going into your source directory and typing 'gmake'. See how far you get. > 2.* How to package the binaries*(RPM sort of thing). Idea is to provide a > package to user who can install them binaries using this package by issuing > single command. FreeBSD has a ports system which lets you automate a source build of a package and optionally build a binary package you can distribute to your clients. > Please let me know if there is anyother forum where i can get answers to my > queries, as i will be needing lot of help in near future. Well, here's a good a place as any I guess, although if you're after more commercial help then I'm sure someone who does that sort of thing can pipe up. In theory, well-written C/C++ should "just work" across platforms. In practice, you'll probably have to modify some Linux-specific stuff to work, although you've probably gone through that pain already to port it to HP/UX and Windows. HTH, Adrian -- Adrian Chadd - adrian@freebsd.org