Solved blender 2.72b-update

Exits with
Code:
/usr/ports/graphics/blender/work/blender-2.72b/source/blender/blenfont/intern/bl
f_glyph.c:265:20: error: implicit conversion changes signedness: 'unsigned int'
to 'int' [-Werror,-Wsign-conversion]
  g->width = bitmap.width;
  ~ ~~~~~~~^~~~~
/usr/ports/graphics/blender/work/blender-2.72b/source/blender/blenfont/intern/bl
f_glyph.c:266:21: error: implicit conversion changes signedness: 'unsigned int'
to 'int' [-Werror,-Wsign-conversion]
  g->height = bitmap.rows;
  ~ ~~~~~~~^~~~
2 errors generated.
--- source/blender/blenfont/CMakeFiles/bf_blenfont.dir/intern/blf_glyph.c.o ---
*** [source/blender/blenfont/CMakeFiles/bf_blenfont.dir/intern/blf_glyph.c.o] Er
ror code 1
Changed the lines 265, 266 in blf_glyph.c to
Code:
g->width = (int)bitmap.width;
and
g->height = (int)bitmap.rows;
After this it works - it 's a bug - I will send it to the maintainer.

(later I found this: https://developer.blender.org/rB2420a3c189951dbe910bd65e3b2c58082bfb4b1b)
 
I think this could help someone:

In /usr/ports/distfiles/, untar the blender-2.72b.tar.gz file. Change the lines commented above(265 and 266), delete the blender-2.72b.tar.gz file. Then create the new tar.gz file: tar -zcvf blender-2.72b.tar.gz blender-2.72b && rm -r blender-2.72b

Go to /usr/ports/graphics/blender, and type: make NO_CHECKSUM=yes install clean.

This works for me.

Thanks talsamon!
 
Back
Top