From owner-freebsd-ports@FreeBSD.ORG Sat Feb 7 17:55:34 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81F0D1065726; Sat, 7 Feb 2009 17:55:34 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao101.cox.net (eastrmmtao101.cox.net [68.230.240.7]) by mx1.freebsd.org (Postfix) with ESMTP id 2CEBB8FC13; Sat, 7 Feb 2009 17:55:34 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao101.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20090207175534.FPYI15713.eastrmmtao101.cox.net@eastrmimpo01.cox.net>; Sat, 7 Feb 2009 12:55:34 -0500 Received: from localhost ([68.103.37.153]) by eastrmimpo01.cox.net with bizsmtp id D5vZ1b0053JFCbG025vZSe; Sat, 07 Feb 2009 12:55:33 -0500 X-Authority-Analysis: v=1.0 c=1 a=zb7FQxCRR54A:10 a=H9ipkAzz5xsA:10 a=r_tqflb6AAAA:8 a=6I5d2MoRAAAA:8 a=8oZ7AMNAgL0pdb73XOAA:9 a=izonox3_JhGDvtPgfv0A:7 a=USM_nsPJ4B54UI5iQPlmXxb2Xy8A:4 a=SV7veod9ZcQA:10 a=wD7v0anZblUA:10 a=4vB-4DCPJfMA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Sat, 07 Feb 2009 11:56:11 -0600 To: "Martin Wilke" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <20090207105330.GB33094@bsdcrew.de> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20090207105330.GB33094@bsdcrew.de> User-Agent: Opera Mail/9.63 (Linux) Cc: ports@freebsd.org, kde-freebsd@kde.org Subject: Re: Call for Help: QT4.5 problems on FreeBSD. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2009 17:55:34 -0000 On Sat, 07 Feb 2009 04:53:30 -0600, Martin Wilke wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Howdy, > > I've started work on QT 4.5 RC1 and I'm almost finished, > but I've run into some problemes and I need your help. > > QT 4.5 now has gtk20 support which means x11-toolkit/qt4-gui > now depends on gtk20. The build failed with: > > http://nopaste.info/16e19abbb9_nl.html > > > I fixed that with set CLFAGS: > > CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH \ > CFLAGS="${CFLAGS}" > MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib \ > PATH=${WRKSRC}/bin:$$PATH CFLAGS="${CFLAGS}" > > CFLAGS+= -I${LOCALBASE}/include/gtk-2.0 -I${LOCALBASE}/include/atk-1.0 \ > -I${LOCALBASE}/include/cairo -I${LOCALBASE}/include/pango-1.0 \ > -I${LOCALBASE}/include/glib-2.0 You should use pkg-config instead of hardcore. You can check in x11-toolkits/pango for example. ---------------------------------- GLIB2_CFLAGS= `pkg-config glib-2.0 --cflags` [...] CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \ ${GLIB2_CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" ---------------------------------- You can do same with --libs for below in the 'LIBS +=' part. I am surpised for QT to not use pkg-config or something to allow QT to get buildable without have someone to add hack. Maybe, you should report to QT bugtracker or something. Or maybe there is something missing. As for the rest other than this, I have no idea for QT problem. Cheers, Mezz > Build is now fine but all qt4-gui dependency on ports > fail now with: > > http://nopaste.info/efd2d1f63f_nl.html > > A dirty workaround is to set: > ${ECHO_CMD} LIBS += -lgobject-2.0 >> ${WRKSRC}/${PORTNAME}.pro > > This fixed the build for qt4-* ports that use gui. But > qt4* dependency on ports failed with the same error. > I think the dirty workaround is really bad, what we need here > a good fix. Also I already tested setting -lgobject-2.0 > to the CFLAGS from qt4-gui but then all ports failed with > > /usr/local/lib/qt4/libQtGui.so: undefined reference to > `QCoreApplicationPrivate::checkReceiverThread(QObject*) > > Now, the question is, is this a general problem with QT 4.5 > or a ports problem? Could someone please take a look and give > us some help? > > You can find the patch here: > http://people.freebsd.org/~miwi/qt4/qt45rc1.diff > > > Note: Please set 'WANT_QT_DEBUG=YES' to your /etc/make.conf. > > > Thanks Martin > > > - -- > > +-----------------------+-------------------------------+ > | PGP : 0x05682353 | Jabber : miwi(at)BSDCrew.de | > | ICQ : 169139903 | Mail : miwi(at)FreeBSD.org | > +-----------------------+-------------------------------+ > | Mess with the Best, Die like the Rest! | > +-----------------------+-------------------------------+ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (FreeBSD) > > iEYEARECAAYFAkmNaCkACgkQFwpycAVoI1Pz6gCdHgoxp/H3VL/LgXQ0Kp/8xUa3 > on8AoIeogTyqtdHp8Pk8LqWcLKv+Qmjh > =YNue > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org