From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 16:48:36 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 3A6B216A41F for ; Tue, 30 Aug 2005 16:48:36 +0000 (GMT) (envelope-from mfcardenas@prodigy.net.mx) Received: from smtp.prodigy.net.mx (nlpproxy04.prodigy.net.mx [148.235.52.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6280843D45 for ; Tue, 30 Aug 2005 16:48:34 +0000 (GMT) (envelope-from mfcardenas@prodigy.net.mx) Received: from smtp.prodigy.net.mx (nlpproxy04 [148.235.52.24]) by smtp.prodigy.net.mx (iPlanet Messaging Server 5.2 HotFix 2.05 (built Mar 3 2005)) with ESMTP id <0IM100AJTNYZ1F@smtp.prodigy.net.mx>; Tue, 30 Aug 2005 11:47:23 -0500 (CDT) Received: from voodoo.sorcery.net(dsl-201-138-31-9.prod-infinitum.com.mx [201.138.31.9]) by smtp.prodigy.net.mx (iPlanet Messaging Server 5.2 HotFix 2.05 (built Mar 32005)) with ESMTP id <0IM1003TCNYYAR@smtp.prodigy.net.mx>; Tue, 30 Aug 2005 11:47:23 -0500 (CDT) Date: Tue, 30 Aug 2005 11:48:28 -0500 From: Miguel =?iso-8859-1?q?C=E1rdenas?= To: freebsd-questions@freebsd.org> Message-id: <200508301148.29542.mfcardenas@prodigy.net.mx> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-disposition: inline User-Agent: KMail/1.7.2 X-imss-version: 2.031 X-imss-result: Passed X-imss-scores: Clean:34.71931 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:4 C:4 M:4 S:4 R:4 (8.0000 8.0000) Subject: FreeBSD 5.2.1 and Qt library 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: Tue, 30 Aug 2005 16:48:36 -0000 Hello list... I have a little problem compiling Qt-based programs, when running 'make' get the following error: bash$ make ( cd /src/moc ; make ) cd: can't cd to /src/moc *** Error code 2 and then stops. Am using the Qt that comes with the FreeBSD 5.2.1 Note that the program compiles perfectly under Linux, so it is not the project.pro configuration file generated by qmake, it tries to 'cd /src/moc' that obviously does not exist. I asked on Trolltech mailing list and they said it was a distribution problem, so that I should ask at FreeBSD mailing list... they suggested me to check for the QTDIR environment variable, and it is not set... How can I setup the QTDIR variable? I did it by hand using export in bash shell, but want to do it automatically while booting, which script or configuration file should I use? In Linux I use /etc/profile but am new to FreeBSD, just am porting a Qt software... Thanks!!!