wkjarosz / hdrview

A simple research-oriented image viewer with an emphasis on examining and comparing high-dynamic range (HDR) images, and including minimalistic editing and tonemapping capabilities.
Other
279 stars 11 forks source link

Build fails due to linker error #88

Closed kunaltyagi closed 1 year ago

kunaltyagi commented 1 year ago

Encountered a linker error during source build on master

Issue seems to be missing Imath_2_5::SingleMatrixExc and other symbols from OpenEXR targets install.log

wkjarosz commented 1 year ago

I assume this is on Linux? The GitHub action seems to compile fine on Linux, so you could compare how you configured/built to how it is set up in the ci-linux.yml workflow. I’m afraid I don’t have access to a Linux machine handy, but am open to pull requests if you are able to track down the issue.

kunaltyagi commented 1 year ago

This isn't an issue with my setup. I replicated the issue 100% same logs in a fresh docker image of ubuntu:22.04

apt udpate
apt install -y g++ cmake xorg-dev libglu1-mesa-dev zlib1g-dev libxrandr-dev

Except g++, rest all are from the CI config. Following the readme instructions after this setup results in the error. Docker works on windows, so you can replicate the issue there, and the setup and base image are simple and common

wkjarosz commented 1 year ago

@kunaltyagi I think this is related to #14. Can you check whether running cmake config twice like in:

https://github.com/wkjarosz/hdrview/blob/master/.github/workflows/ci-linux.yml

Fixes your issue?

Thanks.

wkjarosz commented 1 year ago

I believe #94 fixes this. If not, please create a new issue.