this patch hopefully should abort configure earlier if non-thirdparty build requested openexr, but openexr was not found on system...
On Sunday, April 10, 2022, Andrew Randrianasulu <[email protected]> wrote: > > > On Sunday, April 10, 2022, Andrea paz <[email protected]> wrote: > >> > can you post output of 'pkg-config --libs OpenEXR'? >> > >> > also be sure you have OpenEXR headers installed >> $ pkg-config --libs OpenEXR >> -pthread -lOpenEXR-3_1 -lOpenEXRUtil-3_1 -lOpenEXRCore-3_1 -lIex-3_1 >> -lIlmThread-3_1 -lImath-3_1 >> >> On Arch there is only the "openexr" package, which provides: >> >> usr/include/OpenEXR/ImfHeader.h and usr/bin/exrheader >> >> I don't know if they fit. >> > > > there is also https://archlinux.org/packages/extra/x86_64/imath/ > > as dependency, but I guess this mean we need more work for supporting > openexr3 AND openexr2.... > > for now try to disable it manually >
From 1449cfe1cedfdc440c31f08c977ea01f0401a074 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <[email protected]> Date: Sun, 10 Apr 2022 18:54:49 +0300 Subject: [PATCH 71/71] Abort earlier if non-3rd party and openexr requested but not found --- cinelerra-5.1/configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac index 43cc3087..9b71d513 100644 --- a/cinelerra-5.1/configure.ac +++ b/cinelerra-5.1/configure.ac @@ -581,6 +581,8 @@ if test "x$HAVE_$1" != "xno"; then fi ]) +IMMATH_HEADERS=$(pkg-config --cflags Imath) + CHECK_LIB([X11], [X11], [XOpenDisplay]) CHECK_HEADERS([X11], [X11 headers], [X11/X.h X11/Xlib.h X11/Xutil.h X11/cursorfont.h]) CHECK_HEADERS([X11], [X11 headers], [X11/keysym.h X11/Sunkeysym.h X11/Xatom.h X11/XF86keysym.h]) @@ -623,6 +625,8 @@ CHECK_LIB([libsndfile], [sndfile], [sf_open]) CHECK_HEADERS([libsndfile], [sndfile headers], [sndfile.h]) CHECK_LIB([ilmbase], [IlmImf], [ImfOpenInputFile]) CHECK_HEADERS([ilmbase], [IlmImf headers], [OpenEXR/ImfCRgbaFile.h]) +CHECK_LIB([Imath], [IlmImf], [ImfOpenInputFile]) +CHECK_HEADERS([Imath], [Imath headers], [OpenEXR/ImfCRgbaFile.h]) CHECK_LIB([libvpx], [vpx], [vpx_codec_decode]) CHECK_HEADERS([libvpx], [vpx headers], [vpx/vpx_decoder.h]) CHECK_LIB([mjpegtools], [mjpegutils], [mjpeg_info]) @@ -873,6 +877,14 @@ EXROStream() : Imf::OStream("mypath") {} }; AC_LANG_POP(C++) AC_MSG_RESULT([$HAVE_OPENEXR]) ]) + + +if test "x$WANT_CIN_3RDPARTY" = "xno"; then + if test "x$HAVE_OPENEXR" != "xyes" -a "x$WANT_OPENEXR" = "xyes"; then + AC_MSG_ERROR([requires OpenEXR but OpenEXR not found.]) + fi +fi + AC_SUBST([HAVE_OPENEXR]) # have all or none test "x$HAVE_openexr" = "xyes" && \ @@ -882,6 +894,7 @@ HAVE_openexr=no \ HAVE_ilmbase=no \ HAVE_OPENEXR=no + # build global_config OBJDIR=`uname -m` AC_SUBST(OBJDIR) -- 2.35.1
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin

