Stuart Henderson <s...@spacehopper.org> writes:

> Building it I had a problem with it trying to #include <execinfo.h>
> and not finding it. Fixed with the diff below, I just removed the
> #include - it doesn't actually use the backtrace functions on
> OpenBSD anyway - this was causing my build to fail repeatably.
> It does make me wonder why you didn't see it though.

That is strange, I rebuilt again with the new OpenImageIO and still
not a problem.

> I also had a problem building it if pugixml is installed, I think
> this is a conflict between openimageio's own copy of pugixml and the
> standalone one. I'm building oiio with -DUSE_EXTERNAL_PUGIXML=ON to see
> if that helps (it will take a while to build..) - if not then next step
> is probably to try updating oiio.

I successfully built the new openimageio. tried the blender build with
pugixml installed, got the pugixml-related error. installed the new
openimageio, rebuilt blender and saw no error. So all these adjustments
work on my end (aside from the execinfo.h, which I can't reproduce)

Thanks,
Andrea

> Index: patches/patch-source_blender_blenlib_intern_system_c
> ===================================================================
> RCS file: patches/patch-source_blender_blenlib_intern_system_c
> diff -N patches/patch-source_blender_blenlib_intern_system_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-source_blender_blenlib_intern_system_c      16 Nov 2020 
> 14:04:49 -0000
> @@ -0,0 +1,13 @@
> +$OpenBSD$
> +
> +Index: source/blender/blenlib/intern/system.c
> +--- source/blender/blenlib/intern/system.c.orig
> ++++ source/blender/blenlib/intern/system.c
> +@@ -38,7 +38,6 @@
> + #  include <dbghelp.h>
> + #  pragma warning(pop)
> + #else
> +-#  include <execinfo.h>
> + #  include <unistd.h>
> + #endif
> + 

Reply via email to