forked from blender/blender
Fix various build issues and warnings on Linux #63
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BogdanNagirniak/blender#63
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "brecht/blender:hydra-build-linux"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Compile error in Windows
@ -43,9 +55,21 @@ set(INC_SYS
${BOOST_INCLUDE_DIR}
${TBB_INCLUDE_DIR}
${GFLAGS_INCLUDE_DIRS}
${LIBDIR}/MaterialX/include
This produces compile error
D:\amd\blender-git\lib\win64_vc15\usd\include\pxr/usd/usdMtlx/reader.h(31,10): fatal error C1083: Cannot open include file: 'MaterialXCore/Document.h': No such file or directory (compiling source file D:\amd\blender-git\blender\source\b lender\render\hydra\scene_delegate\mtlx_hydra_adapter.cc) [D:\amd\blender-git\buildnew\source\blender\render\hydra\bf_render_hydra.vcxproj]
The thing is that we should not be using
LIBDIR
here, since that assumes precompiled libraries which is not always the case.So instead I added
MaterialXCore
toLIB
, which should automatically add the associated includes when used withfind_package(MaterialX)
. This is the system that we are trying to move towards. However Windows doesn't seem to do this.Can you get
find_package(MaterialX)
working inplatform_win32.cmake
?If not, I guess you could do something manual there:
After updates, build is working now.