guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error when including openexr


From: julien lepiller
Subject: Re: Error when including openexr
Date: Thu, 01 Jun 2017 10:07:34 +0200
User-agent: Roundcube Webmail/1.2.5

Le 2017-06-01 00:22, Danny Milosavljevic a écrit :
Hi Hartmut,

On Tue, 30 May 2017 16:48:38 +0200
Hartmut Goebel <address@hidden> wrote:

/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.

I discovered that OpenEXR/ImfInt64.h contains

#include "ImathInt64.h"
#include "ImfNamespace.h"

Maybe this should be "OpenEXR/ImathInt64.h" (same for the other)?

I think not.  cpp (the C preprocessor) has no notion of modules and
what it does is just process #include "xx" relative to the directory
of the file it currently reads (the one containing the "#include"
directive), no matter how it went there.  (If it can't find it then it
will fallback to the #include <xx> handler - but I think that's bad
form).

(If you wanted to specify the "OpenEXR/" you'd usually put
/gnu/store/…-openexr-2.2.0/include into the include path and include
it like this in OpenEXR/ImfInt64.h : #include <OpenEXR/ImathInt64.h>
with the <>)

Strange error message, though.

Is that gcc?  Which version?

I've seen something similar already, openexr includes are divided in ilmbase and openexr, so you need both inputs. See darktable in photo.scm for an example.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]