Previous Thread  Next Thread

chat icon Error when compiling Blender with Cmake in Archlinux x64

alexandredias

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?
Reply with quote


Tehrasha

Posted: Sun Feb 12, 2012 8:49 pm
Joined: 21 Apr 2010
Posts: 1264
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. Smile
Reply with quote


alexandredias

Posted: Sun Feb 12, 2012 8:57 pm
Joined: 12 Feb 2012
Posts: 4
I want Cycles support...

Thanks for helping!
Reply with quote


Tehrasha

Posted: Sun Feb 12, 2012 9:49 pm
Joined: 21 Apr 2010
Posts: 1264
Have you tried one if the graphicall.org builds?
Reply with quote


alexandredias

Posted: Sun Feb 12, 2012 10:05 pm
Joined: 12 Feb 2012
Posts: 4
Man I'm trying to compile it!

Thanks !
Reply with quote


stiv

Posted: Mon Feb 13, 2012 4:15 am
Joined: 05 Aug 2003
Posts: 3645
Quote:
undefined reference to `TIFFFindFieldInfo'


If I had to guess, I would say you are missing the TIFF lib.
Reply with quote


Tehrasha

Posted: Mon Feb 13, 2012 7:16 am
Joined: 21 Apr 2010
Posts: 1264
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.
Reply with quote


ldo

Posted: Fri Feb 17, 2012 10:42 am
Joined: 07 Nov 2010
Posts: 544
If your system is Debian (or a derivative, like Ubuntu, Linux Mint etc), and it already has a package for Blender 2.5x/2.6x, then try doing this to pull down all the necessary dependencies:

Code:
apt-get build-dep blender
Reply with quote


alexandredias

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...
Reply with quote


ldo

Posted: Sat Feb 18, 2012 12:57 am
Joined: 07 Nov 2010
Posts: 544
On my Debian system, Z_BEST_COMPRESSION is defined in /usr/include/zlib.h, which comes from the package zlib1g-dev.
Reply with quote


altitudebreath

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
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group