From owner-freebsd-questions@FreeBSD.ORG Sun Jul 25 17:55:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8124C16A4CE for ; Sun, 25 Jul 2004 17:55:19 +0000 (GMT) Received: from out012.verizon.net (out012pub.verizon.net [206.46.170.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3342543D54 for ; Sun, 25 Jul 2004 17:55:18 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from [192.168.1.3] ([68.161.120.54]) by out012.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040725175516.CJCU22270.out012.verizon.net@[192.168.1.3]>; Sun, 25 Jul 2004 12:55:16 -0500 Message-ID: <4103F3FD.4030505@mac.com> Date: Sun, 25 Jul 2004 13:55:09 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Jayson Alvarez References: <20040725164340.39903.qmail@web51608.mail.yahoo.com> In-Reply-To: <20040725164340.39903.qmail@web51608.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out012.verizon.net from [68.161.120.54] at Sun, 25 Jul 2004 12:55:15 -0500 cc: freebsd-questions@freebsd.org Subject: Re: Compiling Application, always a nightmare. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jul 2004 17:55:19 -0000 Mark Jayson Alvarez wrote: > Do I always have to wait for freebsd to make a port > for a certain application (that there might be somewhat > special process involve) or is it possible for me to > compile it from its sources by myself? With time and skilled effort, it's possible to compile any application from sources yourself. People who possess the appropriate knowledge may create instructions for how to build the software on FreeBSD without errors. This is what ports are, a set of Makefiles (and patches where needed) which make it easy and convenient for normal users to compile software for themselves, and also enable building precompiled packages. > For example, I am looking for kaffeine and as its > dependency, it says I will have to install xinelib > first so I downloaded its latest sources from their > main website xinehq.de(failing from retrieving it > first from freebsd.org/ports), but then, same as with > most of the applications that I have compiled from > their sources, it stops in the middle of "make" and I > always end up just installing a precompiled package in > .tgz format("sort of better luck next time: no package > available for xinelib") If you take a look at /usr/ports/multimedia/libxine, you will see exactly what is needed to build xinelib under FreeBSD. In particular, there are about a dozen changes to the source code under libxine/files which are needed for the software to compile and run under FreeBSD. That's somewhat unusual, and generally implies that libxine was not written very well or very portably. Good software requires zero changes to run on a different platform, but multimedia software tends to be finicky. > I really want to know what processess, or > pointers(ex;tools, environment variables and so on and > so forth.) should I consider when compiling from the > sources. Well, it obviously helps to be able to write and debug code. If you are reasonably competent as a software developer, the next step would be to read the Porter's Handbook at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook If you aren't a developer, your best bet is probably to use the ports or precompiled packages for now, and learn about coding by writing your own programs until you know enough to be able to understand and change/fix other people's code. -- -Chuck