Vertexwahn

Results 52 comments of Vertexwahn

@pleprince You need to add some source files to the OpenEXR lib in the `BUILD.bazel` file: ``` cc_library( name = "OpenEXR", srcs = [ ... "src/lib/OpenEXR/ImfZstdCompressor.cpp", "src/lib/OpenEXRCore/internal_zstd.c", "src/lib/OpenEXR/ImfZstdCompressor.h", ], ......

@pleprince It turned out that the c-blosc2 Bazel module still has some issues. I opened a [PR](https://github.com/bazelbuild/bazel-central-registry/pull/1773) on the Bazel Central Registry to fix it. Once https://github.com/bazelbuild/bazel-central-registry/pull/1773 is merged you...

@pleprince I just added the updated version of c-blosc2 to my personal Bazel registry. You can create a `.bazelrc` (at the root dir or the OpenEXR repo, next to MODULE.bazel...

@pleprince Just tested on Ubunut 22.04: ``` diff --git a/.bazelversion b/.bazelversion index a8907c02..21c8c7b4 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.0.2 +7.1.1 diff --git a/MODULE.bazel b/MODULE.bazel index 63d3f067..ba4e4e2d...

@pleprince https://github.com/bazelbuild/bazel-central-registry/pull/1773 is merged now. Use `bazel_dep(name = "c-blosc2", version = "2.12.0.bcr.2")` now! Should fix the Bazel build issues.

You can also use [Bazel](https://bazel.build/) to build OpenEXR -> https://github.com/Vertexwahn/BazelDemos/tree/main/third_party_libraries/cpp/OpenEXR

Take a look at [the CI instructions](https://github.com/AcademySoftwareFoundation/openexr/blob/fc3ba3cf02ea9322674dc91e5594675241a23a44/.github/workflows/ci_workflow.yml#L425) to see how OpenEXR is built using CMake. You can also build with [Bazel](https://bazel.build/). [Here](https://github.com/Vertexwahn/BazelDemos/tree/main/third_party_libraries/cpp/OpenEXR) is an example.

@hlu2021 I added some notes how to setup it here: https://github.com/Vertexwahn/BazelDemos/tree/main/third_party_libraries/cpp/OpenEXR

@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"...

@mmorel-35 I proposed to add a `MODULE.bazel` file to this repo already here -> https://github.com/nlohmann/json/pull/4111 I personally would suggest to add a `MODULE.bazel` it to this repo since this makes...