Open lgritz opened 1 year ago
Ah, I did need that installation line that we removed in code review. When I push a fix, will the "bleeding edge" CI test run, so I can monitor an outcome there?
I can force it to run by poking the button to rerun one of the failed tests.
I think this fixes it https://github.com/AcademySoftwareFoundation/openexr/pull/1398
please LMK how that goes
@Vertexwahn This change impacts bazel/example. Sadly the break doesn't follow any of the ones you've helped me fix previously. I'm not sure why the example can't see the openexr dependencies. I'm guessing maybe
deps = ["//:OpenEXR", "//:OpenEXRCore"],
but I don't really understand why that's necessary, since it's not also specifying Imath and other dependencies.
Fixed OSL's CI
Great, thanks for the confirmation. Enabling OpenEXRConfig.h to be able to include a file from OpenEXR needs another look; maybe the version should be parsed from the config.in instead to avoid all the CI, build system, and packaging jujitsu that goes along with a parameterized configuration file.
@meshula
Bazel assumes includes are relative to the WORKSPACE.bazel file. When trying to build Iex (bazel build //:Iex
) you are including "OpenEXRCore/openexr_version.h" - but the expected path would be "src/lib/OpenEXRCore/openexr_version.h" (relative to the WORKSPACE file). Via the includes
attribute of cc_library
additional include dirs can be set. You need to add here "src/lib".
Here is the diff to fix the issues:
diff --git a/BUILD.bazel b/BUILD.bazel
index 0e932677..17140b27 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -105,6 +105,7 @@ cc_library(
"//conditions:default": [],
}),
includes = [
+ "src/lib",
"src/lib/Iex",
"src/lib/OpenEXR",
"src/lib/OpenEXRCore",
@@ -231,6 +232,7 @@ cc_library(
"//conditions:default": [],
}),
includes = [
+ "src/lib",
"src/lib/IlmThread",
"src/lib/OpenEXR",
"src/lib/OpenEXRCore",
Branch with this changes included is here: https://github.com/Vertexwahn/openexr/tree/fix-it
Imath is a transitive dependency of OpenEXR. To see the full dependency graph you can do:
bazel query --noimplicit_deps 'deps(//bazel/example:Demo)' --output graph > graph.in
dot -Tpng < graph.in > dependency_graph.png
Possibly caused by #1386, OSL's "bleeding edge" CI test that uses top-of-main OpenEXR is getting this suspicious build break: