Posted: Sun Feb 12, 2012 8:37 pm
Joined: 12 Feb 2012
Posts: 4
Hello everyone, i'm trying to compile Blender with Cmake. But every time i tried to compile, console returned this error :
| Code: |
/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[2]: ** [bin/blender] Erro 1
make[1]: ** [source/creator/CMakeFiles/blender.dir/all] Erro 2
make: ** [all] Erro 2 |
Any idea?
Posted: Sun Feb 12, 2012 8:49 pm
Joined: 21 Apr 2010
Posts: 1169
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.
Posted: Sun Feb 12, 2012 8:57 pm
Joined: 12 Feb 2012
Posts: 4
I want Cycles support...
Thanks for helping!
Posted: Sun Feb 12, 2012 9:49 pm
Joined: 21 Apr 2010
Posts: 1169
Have you tried one if the
graphicall.org builds?
Posted: Sun Feb 12, 2012 10:05 pm
Joined: 12 Feb 2012
Posts: 4
Man I'm trying to compile it!
Thanks !
Posted: Mon Feb 13, 2012 4:15 am
Joined: 05 Aug 2003
Posts: 3489
| Quote: |
| undefined reference to `TIFFFindFieldInfo' |
If I had to guess, I would say you are missing the TIFF lib.
Posted: Mon Feb 13, 2012 7:16 am
Joined: 21 Apr 2010
Posts: 1169
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...
http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles/Building
No errors, and Cycles works fine.
Posted: Fri Feb 17, 2012 10:42 am
Joined: 07 Nov 2010
Posts: 543
If your system is Debian (or a derivative, like Ubuntu, Linux Mint etc), and it already has a package for Blender 2.5
x/2.6
x, then try doing this to pull down all the necessary dependencies:
| Code: |
| apt-get build-dep blender |
Posted: Fri Feb 17, 2012 7:50 pm
Joined: 12 Feb 2012
Posts: 4
| Code: |
/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[2]: ** [libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ico.imageio/icooutput.cpp.o] Erro 1
make[2]: *** Esperando que os outros processos terminem....
make[1]: ** [libOpenImageIO/CMakeFiles/OpenImageIO.dir/all] Erro 2
make: ** [all] Erro 2
|
I have libtiff3,libtiff4,libtiff... all dependecies to compile Blender...
Posted: Sat Feb 18, 2012 12:57 am
Joined: 07 Nov 2010
Posts: 543
On my Debian system, Z_BEST_COMPRESSION is defined in /usr/include/zlib.h, which comes from the package zlib1g-dev.
Posted: Fri Mar 09, 2012 12:25 pm
Joined: 09 Mar 2012
Posts: 1
Hi,
You need to recompile oiio library with new libtiff 4.0+ on your system
(Tested on Arch Linux - works fine)
cd <blender_src>
git clone
https://github.com/OpenImageIO/oiio.git oiio
make
then, in case of CMake build:
edit <blender_src>/build/CMakeCache.txt
a) find all 'oiio' references
b)change in paths:
<blender_src>/lib/<your_platform>/oiio
to <blender_src>/oiio/dist<your_platform>
c) change libOpenImageIO.a to libOpenImageIO.so
d) sudo cp <blender_src>/oiio/dist/linux64/lib/libOpenImageIO.so.1.0 /lib
cd <blender_src>/blender
make