Hello everyone, i'm trying to compile Blender with Cmake. But every time i tried to compile, console returned this error :
|/home/alexandredias/blender-svn/lib/linux64/oiio/lib/libOpenImageIO.a(tiffinput.cpp.o): In function `OpenImageIO::v0::TIFFInput::find_tag(int, TIFFDataType, char const*)':
tiffinput.cpp:(.text._ZN11OpenImageIO2v09TIFFInput8find_tagEi12TIFFDataTypePKc[OpenImageIO::v0::TIFFInput::find_tag(int, TIFFDataType, char const*)]+0x2e): undefined reference to `TIFFFindFieldInfo'
collect2: ld returned 1 exit status
make: ** [bin/blender] Erro 1
make: ** [source/creator/CMakeFiles/blender.dir/all] Erro 2
make: ** [all] Erro 2
I believe that this is the same error that I was getting.
Disabling Cycles in my CMakeCache.txt file allowed to build.
Of course, if you -want- Cycles support, that isnt going to help you very much.
I want Cycles support...
Thanks for helping!
Have you tried one if the graphicall.org
Man I'm trying to compile it!
|undefined reference to `TIFFFindFieldInfo' |
If I had to guess, I would say you are missing the TIFF lib.
Stiv is correct, the tiff libraries are needed. I remember now, that I had that error, and fixed it by installing them. But then it went on to fail the boost libraries (which is what I thought I downloaded per the instructions..) But that was nearly 4:am and my brain was fizzling...
I just got everything to build with the instructions at...
No errors, and Cycles works fine.
If your system is Debian (or a derivative, like Ubuntu, Linux Mint etc), and it already has a package for Blender 2.5x
, then try doing this to pull down all the necessary dependencies:
|apt-get build-dep blender |
|/home/alexandredias/oiio/src/ico.imageio/icooutput.cpp: In member function ‘virtual bool OpenImageIO::v0::ICOOutput::open(const string&, const OpenImageIO::v0::ImageSpec&, OpenImageIO::v0::ImageOutput::OpenMode)’:
/home/alexandredias/oiio/src/ico.imageio/icooutput.cpp:328:43: error: ‘Z_BEST_COMPRESSION’ was not declared in this scope
make: ** [libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ico.imageio/icooutput.cpp.o] Erro 1
make: *** Esperando que os outros processos terminem....
make: ** [libOpenImageIO/CMakeFiles/OpenImageIO.dir/all] Erro 2
make: ** [all] Erro 2
I have libtiff3,libtiff4,libtiff... all dependecies to compile Blender...
On my Debian system, Z_BEST_COMPRESSION is defined in /usr/include/zlib.h, which comes from the package zlib1g-dev.
You need to recompile oiio library with new libtiff 4.0+ on your system
(Tested on Arch Linux - works fine)
git clone https://github.com/OpenImageIO/oiio.git
then, in case of CMake build:
a) find all 'oiio' references
b)change in paths:
c) change libOpenImageIO.a to libOpenImageIO.so
d) sudo cp <blender_src>/oiio/dist/linux64/lib/libOpenImageIO.so.1.0 /lib