










Moonray works, but why hd_render(hdMoonRay) is not packed?
Can't build
make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:233: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/Geometry.cc.o] Error 1 [ 14%] Linking CXX executable arras4test make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:107: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/Attribute.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:205: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/DsoFinder.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:177: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/DisplayFilter.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:191: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/Dso.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:149: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/Camera.cc.o] Error 1 [ 14%] Built target arras4test make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:163: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/Displacement.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:275: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/Layer.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:121: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/BinaryReader.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:135: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/BinaryWriter.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:93: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/AsciiWriter.cc.o] Error 1 make[2]: *** [moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/build.make:79: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/AsciiReader.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:47759: moonray/scene_rdl2/lib/scene/rdl2/CMakeFiles/scene_rdl2_tmp.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... -> error making: openmoonray-exit status 4 -> Failed to install the following packages. Manual intervention is required: openmoonray - exit status 4
ISPC v1.28.1 resolves all issues. Patching is not necessary anymore.
It seems to me that a few dependencies are missing: libmicrohttpd cppunit qt5-base qt5-script openimagedenoise usd and AUR one: random123
I updated the PKGBUILD, thanks.
It seems to me that a few dependencies are missing: libmicrohttpd cppunit qt5-base qt5-script openimagedenoise usd
and AUR one: random123
moonray has to be started like this:
moonray -threads 24 -out bla.exr -size 128 72 -dso_path /usr/rdl2dso/ -in scene.rdla -in scene.rdl
ISPC v1.28.0 has to be patched for moonray to work: https://github.com/ispc/ispc/issues/3545
From 34076d71e740812c4e71d338211ae7287b04f645 Mon Sep 17 00:00:00 2001
From: Gon Solo <gonsolo@gmail.com>
Date: Sat, 16 Aug 2025 21:19:39 +0200
Subject: [PATCH] Fix Openmoonray.
---
src/ast.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ast.cpp b/src/ast.cpp
index f4c66b6e..bdc19c7e 100644
--- a/src/ast.cpp
+++ b/src/ast.cpp
@@ -364,7 +364,7 @@ static ASTNode *lOptimizeNode(ASTNode *node, void *) {
return node;
}
- Assert(node->IsTypeChecked() && "Node must be type-checked before optimization");
+ //Assert(node->IsTypeChecked() && "Node must be type-checked before optimization");
// Mark that we're starting the optimization process for this node
node->StartOptimize();
--
2.50.1
From 87913aab2ddc356d38fe13934befda84b43cf247 Mon Sep 17 00:00:00 2001
From: Gon Solo <gonsolo@gmail.com>
Date: Sat, 16 Aug 2025 22:20:48 +0200
Subject: [PATCH 2/2] Fix Openmoonray II.
---
src/expr.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/expr.cpp b/src/expr.cpp
index 43e453c9..b19a1f7e 100644
--- a/src/expr.cpp
+++ b/src/expr.cpp
@@ -4341,7 +4341,7 @@ const Type *FunctionCallExpr::GetLValueType() const {
return nullptr;
}
const FunctionType *ftype = CastType<FunctionType>(type);
- if (ftype && ftype->GetReturnType()->IsReferenceType()) {
+ if (ftype && (ftype->GetReturnType()->IsPointerType() || ftype->GetReturnType()->IsReferenceType())) {
return ftype->GetReturnType();
} else {
// Only be a valid LValue type if the function returns a reference
--
2.50.1
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
I tried to do a minimal build first and even that was much work. From now on things can be added incrementally, this should be much easier.