ImfRgbaFile.h etc

Bug #1940833 reported by jpe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

the latest version does not compile. Somehow the CMake does not ask/know how to find

HUGIN/hugin-hugin/src/hugin_base/vigra_ext/ReduceOpenEXR.h:28:10:fatal error: ImfRgbaFile.h: No such file or directory
   28 | #include <ImfRgbaFile.h>

the file exists in /usr/include/OpenEXR/ (ubuntu linux)

Thanks for changing that

Revision history for this message
tmodes (tmodes) wrote :

CMake searches explicitly for this files and exits with an error if not found.
I tested this at the weekend at Ubuntu and also on Fedora. It works without intervention.

The error can only occur if you override OPENEXR_INCLUDE_DIR.

Changed in hugin:
status: New → Incomplete
Revision history for this message
jpe (jean-pierre-eckmann) wrote : Re: [Bug 1940833] Re: ImfRgbaFile.h etc

Thanks! But I do have

OPENEXR_INCLUDE_DIR:PATH=/usr/include/OpenEXR

in
CMakeCache.txt

shouldnt that suffice?

On Mon, 23 Aug 2021, tmodes wrote:

->CMake searches explicitly for this files and exits with an error if not found.
->I tested this at the weekend at Ubuntu and also on Fedora. It works without intervention.
->
->The error can only occur if you override OPENEXR_INCLUDE_DIR.
->
->** Changed in: hugin
-> Status: New => Incomplete
->
->--
->You received this bug notification because you are subscribed to the bug
->report.
->https://bugs.launchpad.net/bugs/1940833
->
->Title:
-> ImfRgbaFile.h etc
->
->Status in Hugin:
-> Incomplete
->
->Bug description:
-> the latest version does not compile. Somehow the CMake does not
-> ask/know how to find
->
-> HUGIN/hugin-hugin/src/hugin_base/vigra_ext/ReduceOpenEXR.h:28:10:fatal error: ImfRgbaFile.h: No such file or directory
-> 28 | #include <ImfRgbaFile.h>
->
-> the file exists in /usr/include/OpenEXR/ (ubuntu linux)
->
-> Thanks for changing that
->
->To manage notifications about this bug go to:
->https://bugs.launchpad.net/hugin/+bug/1940833/+subscriptions
->
->

Revision history for this message
jpe (jean-pierre-eckmann) wrote :

sorry for disturbing you.

a complete "make clean" fixed the thing

Thanks

Revision history for this message
tmodes (tmodes) wrote :

> But I do have
> OPENEXR_INCLUDE_DIR:PATH=/usr/include/OpenEXR
> in CMakeCache.txt
> shouldnt that suffice?

Yes, that should be enough.
This path is added to the include list
include_directories(${OPENEXR_INCLUDE_DIR})

This works nice on my Ubuntu and Fedora distro.
So I don't know what goes wrong on your side.

(Except you are using OpenEXR 3.x. This works only with current default branch.)

Revision history for this message
tmodes (tmodes) wrote :

Should be fixed in default branch.
(If not, please delete build directory and start again.)

Changed in hugin:
milestone: none → 2021.0beta1
status: Incomplete → Fix Committed
tmodes (tmodes)
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.