Skip to content

cmake fails to find IlmBase on Debian; should use pkg-config #230

Description

@snogglethorpe

I tried to compile OpenShadingLanguage on my Debian system, and while the build system apparently has some sort of configuration stuff for IlmBase, it fails on Debian.

I briefly looked at the cmake config stuff for it, in "src/cmake/modules/FindIlmBase.cmake", but it's pretty impenetrable (cmake: confusing), and I couldn't figure out how to fix it, or even how to manually alter the settings so I could specify my setup manually.

IlmBase's pkg-config setup gives the right compiler options to use to find IlmBase:

$ pkg-config --cflags IlmBase
-I/usr/include/OpenEXR  
$ pkg-config --libs IlmBase
-lImath -lHalf -lIex -lIlmThread -lpthread  

Really, FindIlmBase.cmake should use pkg-config to find what settings to use for IlmBase, as it should yield accurate info for any system which has IlmBase installed. [It could use the current more adhoc config stuff in the case where pkg-config isn't available, or doesn't know about IlmBase.

[I'm sorry I can't offer much help in changing this, as I don't know cmake.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions