From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: QtHaveModule Date: Sun, 14 Aug 2016 14:25:53 +0800 Message-ID: <87mvkf27f2.fsf@member.fsf.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYos0-0000cP-Df for guix-devel@gnu.org; Sun, 14 Aug 2016 02:26:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYorw-0001C2-8E for guix-devel@gnu.org; Sun, 14 Aug 2016 02:26:03 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:43354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYorw-0001By-1g for guix-devel@gnu.org; Sun, 14 Aug 2016 02:26:00 -0400 In-Reply-To: (David Craven's message of "Tue, 9 Aug 2016 21:04:49 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Craven Cc: guix-devel David Craven writes: > [...] > >> cat >"$out/bin/qt.conf" <> [Paths] >> Prefix = $out >> Plugins = lib/qt5/plugins >> Imports = lib/qt5/imports >> Qml2Imports = lib/qt5/qml >> Documentation = share/doc/qt5 >> EOF > > I am not sure what the best way to proceed is, since $out should be > $GUIX_ENVIRONMENT, > but $GUIX_ENVIRONMENT isn't known when we build qtbase. What I think > needs to happen > for QtHaveModule to work is we need to generate a qt.conf file when a > guix environment is > created that has qtbase as a dependency and make sure it's symlinked > into the bin directory. > > [0] https://github.com/qt/qtsensors/blob/dev/qtsensors.pro > [1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/qt-5/qt-env.nix Hi, I just sent a patch to add 'QMAKEPATH' as search-path, which should fix this issue.