dillongoostudios / goo-engine

Custom build of blender with some extra NPR features.
Other
982 stars 129 forks source link

Building is failing [Windows] #93

Open renanklehm opened 2 months ago

renanklehm commented 2 months ago

Branch: goo-engine-v4.1-release CMake Version: 3.29.6 Visual Studio 2022 (v17.11.4)

Build.log

I followed the steps on: https://developer.blender.org/docs/handbook/building_blender/windows/

After succesfully running make update, I've tried running make, but it resulted in a failed build with the following error:

Build FAILED.

F:\goo-engine\intern\cycles\scene\image.cpp(638,14): error C2668: 'ccl::`anonymous-namespace'::isfinite': ambiguous call to overloaded function [F:\build_windows_x64_vc17_Release\intern\cycles\scene\cycles_scene.vcxproj]
F:\goo-engine\intern\cycles\scene\image.cpp(638,37): error C2668: 'ccl::`anonymous-namespace'::isfinite': ambiguous call to overloaded function [F:\build_windows_x64_vc17_Release\intern\cycles\scene\cycles_scene.vcxproj]
F:\goo-engine\intern\cycles\scene\image.cpp(638,60): error C2668: 'ccl::`anonymous-namespace'::isfinite': ambiguous call to overloaded function [F:\build_windows_x64_vc17_Release\intern\cycles\scene\cycles_scene.vcxproj]
F:\goo-engine\intern\cycles\scene\image.cpp(639,14): error C2668: 'ccl::`anonymous-namespace'::isfinite': ambiguous call to overloaded function [F:\build_windows_x64_vc17_Release\intern\cycles\scene\cycles_scene.vcxproj]
F:\goo-engine\intern\cycles\scene\image.cpp(651,14): error C2668: 'ccl::`anonymous-namespace'::isfinite': ambiguous call to overloaded function [F:\build_windows_x64_vc17_Release\intern\cycles\scene\cycles_scene.vcxproj]
    0 Warning(s)
    5 Error(s)

(Full log attached)

fan87 commented 1 month ago

See https://github.com/blender/blender/commit/92d935a2059e99dd4cbfcf18c14870ee77476ab2

Try this:

git remote add upstream https://github.com/blender/blender
git fetch upstream
git cherry-pick 92d935a2059e99dd4cbfcf18c14870ee77476ab2
make