Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Trying to compile Blender 2.91.2 w. OpenImageDenoise
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 299

PostPosted: Tue Mar 16, 2021 7:40 pm    Post subject: [SOLVED]Trying to compile Blender 2.91.2 w. OpenImageDenoise Reply with quote

Hello,

I built OpenImageDenoise from git, made symlinks to the module in /usr/lib64 and symlinked the include files to /usr/include/OpenImageDenoise.
Added this to the ebuild:
Code:
-DWITH_OPENIMAGEDENOISE=ON
-DOPENIMAGEDENOISE_LIBRARY="/usr/lib64/libOpenImageDenoise.so"
-DOPENIMAGEDENOISE_INCLUDE_DIR="/usr/include/OpenImageDenoise"


For some reason cmake can't find the files?
Code:
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENIMAGEDENOISE_OPENIMAGEDENOISE_LIBRARY (ADVANCED)
    linked by target "cycles_device" in directory /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/intern/cycles/device

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
 * ERROR: media-gfx/blender-2.91.2::gorg86 failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3346:  Called cmake_src_configure
 *   environment, line 1560:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=media-gfx/blender-2.91.2::gorg86'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/blender-2.91.2::gorg86'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/blender-2.91.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/blender-2.91.2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2_build'
 * S: '/var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2'


What am I missing here?

edit:
all messages: https://pastebin.com/aZr90qnZ

edit 2:
Just emerged Blender and the Denoiser is working I just had to set OPENIMAGEDENOISE_OPENIMAGEDENOISE_LIBRARY too.
I get those warnings after the emerge though:
Code:
 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletDynamics/Vehicle/btWheelInfo.h:37:8: warning: ‘<anonymous>.btWheelInfo::m_raycastInfo’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:117:11: warning: ‘*((void*)(&<anonymous>)+184).btMatrix3x3::m_el[0]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:118:11: warning: ‘*((void*)(&<anonymous>)+184).btMatrix3x3::m_el[1]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:119:11: warning: ‘*((void*)(&<anonymous>)+184).btMatrix3x3::m_el[2]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btTransform.h:61:28: warning: ‘*((void*)(&<anonymous>)+184).btTransform::m_origin’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletDynamics/Vehicle/btWheelInfo.h:37:8: warning: ‘<anonymous>.btWheelInfo::m_clientInfo’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletDynamics/Vehicle/btWheelInfo.h:37:8: warning: ‘<anonymous>.btWheelInfo::m_clippedInvContactDotSuspension’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletDynamics/Vehicle/btWheelInfo.h:37:8: warning: ‘<anonymous>.btWheelInfo::m_suspensionRelativeVelocity’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletDynamics/Vehicle/btWheelInfo.h:37:8: warning: ‘<anonymous>.btWheelInfo::m_wheelsSuspensionForce’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletDynamics/Vehicle/btWheelInfo.h:37:8: warning: ‘<anonymous>.btWheelInfo::m_skidInfo’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:117:11: warning: ‘*((void*)(& a)+56).btMatrix3x3::m_el[0]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:118:11: warning: ‘*((void*)(& a)+56).btMatrix3x3::m_el[1]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:119:11: warning: ‘*((void*)(& a)+56).btMatrix3x3::m_el[2]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:413:9: warning: ‘a.btSoftBody::Anchor::m_c1’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:413:9: warning: ‘a.btSoftBody::Anchor::m_c2’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:261:9: warning: ‘<anonymous>.btSoftBody::Node::m_x’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:261:9: warning: ‘<anonymous>.btSoftBody::Node::m_q’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:261:9: warning: ‘<anonymous>.btSoftBody::Node::m_v’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:261:9: warning: ‘<anonymous>.btSoftBody::Node::m_vn’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:261:9: warning: ‘<anonymous>.btSoftBody::Node::m_f’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:261:9: warning: ‘<anonymous>.btSoftBody::Node::m_n’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/BulletSoftBody/btSoftBody.h:261:9: warning: ‘<anonymous>.btSoftBody::Node::m_splitv’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:117:11: warning: ‘*((void*)(&<anonymous>)+280).btMatrix3x3::m_el[0]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:118:11: warning: ‘*((void*)(&<anonymous>)+280).btMatrix3x3::m_el[1]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:119:11: warning: ‘*((void*)(&<anonymous>)+280).btMatrix3x3::m_el[2]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:117:11: warning: ‘*((void*)(&<anonymous>)+376).btMatrix3x3::m_el[0]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:118:11: warning: ‘*((void*)(&<anonymous>)+376).btMatrix3x3::m_el[1]’ is used uninitialized in this function [-Wuninitialized]
 * /var/tmp/portage/media-gfx/blender-2.91.2/work/blender-2.91.2/extern/bullet2/src/LinearMath/btMatrix3x3.h:119:11: warning: ‘*((void*)(&<anonymous>)+376).btMatrix3x3::m_el[2]’ is used uninitialized in this function [-Wuninitialized]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: https://www.blender.org
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   /usr/bin/blender
 * QA Notice: Unresolved soname dependencies:
 *
 *      /usr/bin/blender: libOpenImageDenoise.so.1
 *


How do I fix this? especially the unresolved soname issue?
This is how it looks like in /usr/lib64:
Code:
lrwxrwxrwx 1 root root  24 Mar 16 21:42 /usr/lib64/libOpenImageDenoise.so -> libOpenImageDenoise.so.1
lrwxrwxrwx 1 root root  28 Mar 16 21:42 /usr/lib64/libOpenImageDenoise.so.1 -> libOpenImageDenoise.so.1.3.0
-rwxr-xr-x 1 root root 35M Mar 16 21:41 /usr/lib64/libOpenImageDenoise.so.1.3.0


edit 3:
Just did an env-update and emerged again, all warnings are gone. Solved I guess.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum