OpenEXR Not Found During Build

I am on Arch Linux and am building Blender from source. I have done this every few weeks for the last two years at least.

Anyway, I noticed that for some reason OpenEXR was reported as not being found.


Could NOT find OpenEXR (missing:  /usr/lib/libHalf.so /usr/lib/libIlmImf.so /usr/lib/libIex.so /usr/lib/libImath.so)

To make a long story short, If I go into the FindOpenEXR.cmake file and output some debugging messages, I see that the line:


FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenEXR  DEFAULT_MSG
    ${_openexr_LIBRARIES} OPENEXR_INCLUDE_DIR)

causes the problem. I can write out to the screen the info where the libraries are, and the libs are actually there. The paths are correct as well. If I “force” the code to build (I added a set(OPENEXR_FOUND True) just before the check to ensure it is included a couple of lines below this one), it will build and compile just fine!

Is there something I’m missing as to why the FIND_PACKAGE_HANDLE_STANDARD_ARGS is reporting an error finding the OpenEXR libs even thought they are there? Is anyone else having this problem?

My bad, fixed in svn r37538,

also I found this post by accident, best mail the developer list for these kinds of errors.

OK, will do. Thanks!