Installing all failed: undefined reference to png_set_longjump_fn


I am trying install 2.83 but it is showing error

I had a similar error recently. In my case it was caused by using the wrong version of libpng - it was using the system package when it should have been using the version in the prebuilt libs.

I fixed it by manually editing CMakeCache.txt so that the filepath for libpng pointed to the one in the prebuilt libs

1 Like

I have tried editing libpng and still it is not working