pembem22 / blender

A clone of the official Blender repository
Other
15 stars 1 forks source link

build error #14

Closed happinesssweet closed 2 years ago

happinesssweet commented 2 years ago

I'm building the blender with CUDA and optix on ubuntu18.04,RTX2080 super. The optiX version is 7.3.0, and the C++ compiler is gcc 9.4. But the code produces 2 errors:

  1. 'function "rgb_to_spectrum" has already been defined'
  2. 'function "spectrum_to_gray" has already been defined'

I find that in 'blender/intern/cycles/kernel/util/color.h' the function"rgb_to_spectrum" and "spectrum_to_gray" are defined twice with different input type. when I comment out one of the definitions, it produces other new errors. Just want to know how to solve the error. Thanks.

pembem22 commented 2 years ago

I've fixed this some time ago, shouldn't be a problem now.