From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Error when including openexr Date: Thu, 1 Jun 2017 13:06:58 +0200 Message-ID: <20170601110658.GA2242@jurong> References: <592D8646.5040706@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGNwZ-0007dY-DH for guix-devel@gnu.org; Thu, 01 Jun 2017 07:07:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGNwW-0002nL-8A for guix-devel@gnu.org; Thu, 01 Jun 2017 07:07:07 -0400 Received: from mailrelay6.public.one.com ([91.198.169.200]:48794) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dGNwV-0002mw-UT for guix-devel@gnu.org; Thu, 01 Jun 2017 07:07:04 -0400 Content-Disposition: inline In-Reply-To: <592D8646.5040706@crazy-compilers.com> 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: Hartmut Goebel Cc: guix-devel Hello, On Tue, May 30, 2017 at 04:48:38PM +0200, Hartmut Goebel wrote: > I try building a package using openexr. Building fails with > /gnu/store/…-openexr-2.2.0/include/OpenEXR/ImfInt64.h:44:24: > fatal error: ImathInt64.h: No such file or directory > but file …-openexr-2.2.0/include/OpenEXR/ImathInt64.h exists. this looks a lot like a problem I had with the hugin package (currently as a patch in the debbug tracker). I ended up doing the following: + ;; The header files of ilmbase (propagated by openexr) are not found + ;; when included by the header files of openexr, and an explicit + ;; flag needs to be set. + (string-append "-DCMAKE_CXX_FLAGS=-I" + (assoc-ref %build-inputs "ilmbase") + "/include/OpenEXR") Andreas