From owner-freebsd-questions@FreeBSD.ORG Fri Jan 18 11:01:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C31E16A41A for ; Fri, 18 Jan 2008 11:01:41 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 6F63813C447 for ; Fri, 18 Jan 2008 11:01:40 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JFoyf-0007Ma-Gn for freebsd-questions@freebsd.org; Fri, 18 Jan 2008 11:01:37 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2008 11:01:37 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2008 11:01:37 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Fri, 18 Jan 2008 12:01:29 +0100 Lines: 61 Message-ID: References: <1563a4fd0801180147y4fb6a83s41142ac9a68c3d28@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig95F51FBB25EED6D10AF5B597" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.9 (X11/20070801) In-Reply-To: <1563a4fd0801180147y4fb6a83s41142ac9a68c3d28@mail.gmail.com> X-Enigmail-Version: 0.95.5 Sender: news Subject: Re: Trying to support my product on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 11:01:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig95F51FBB25EED6D10AF5B597 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable navneet Upadhyay wrote: > Hi , > My product is successfully running on Linux( all most all versio= ns) > and HP- UX and Windows . >=20 > *It is 100 % C++ code*. >=20 > I am planning to support it on FreeBSD, i have two queries : >=20 > 1. *How to build my code into binaries* on FreeBSD , i have my unix mak= e > files. Just to give an idea i have around 200 cpp files and they compli= le to > 5 binaries . I am using multithreading(posix on linux) and sockets heav= ily. gcc and g++ are included in FreeBSD base system - you get them by default. Other possible dependencies (X11, etc.) you need to install from the ports, then proceed "as usual". > I dont want to run my application in linux mode, i have clear cut > instructions to have BSD specific binaries.I have to see what is the > difference between Linux and Free BSD in terms of file management, thei= r > structure, threading model etc. >=20 >=20 > 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 iss= uing > single command. Create a port directory structure, then create a binary package from the port. Take care to read hier(7), specifically about the /usr/local tree - that's where your application will install, and where the libraries installed from ports will be installed (i.e. you need -L /usr/local/lib and -I /usr/local/include, adapt as needed). --------------enig95F51FBB25EED6D10AF5B597 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHkIcKldnAQVacBcgRAk36AJ48Xank5Dt6paMmUbvhYrJOnl5iVQCfZYJl SAjGylS0IlUdGYTnXUjpj8M= =R1xE -----END PGP SIGNATURE----- --------------enig95F51FBB25EED6D10AF5B597--