Error when compiling Blender with Cmake in Archlinux x64

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

alexandredias
Posts: 4
Joined: Sun Feb 12, 2012 8:29 pm

Error when compiling Blender with Cmake in Archlinux x64

Postby alexandredias » Sun Feb 12, 2012 8:37 pm

Hello everyone, i'm trying to compile Blender with Cmake. But every time i tried to compile, console returned this error :

Code: Select all

/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?

Tehrasha
Posts: 1264
Joined: Wed Apr 21, 2010 6:21 am
Location: Iowa

Postby Tehrasha » Sun Feb 12, 2012 8:49 pm

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. :)

alexandredias
Posts: 4
Joined: Sun Feb 12, 2012 8:29 pm

Postby alexandredias » Sun Feb 12, 2012 8:57 pm

I want Cycles support...

Thanks for helping!

Tehrasha
Posts: 1264
Joined: Wed Apr 21, 2010 6:21 am
Location: Iowa

Postby Tehrasha » Sun Feb 12, 2012 9:49 pm

Have you tried one if the graphicall.org builds?

alexandredias
Posts: 4
Joined: Sun Feb 12, 2012 8:29 pm

Postby alexandredias » Sun Feb 12, 2012 10:05 pm

Man I'm trying to compile it!

Thanks !

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Mon Feb 13, 2012 4:15 am

undefined reference to `TIFFFindFieldInfo'


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

Tehrasha
Posts: 1264
Joined: Wed Apr 21, 2010 6:21 am
Location: Iowa

Postby Tehrasha » Mon Feb 13, 2012 7:16 am

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 ... s/Building

No errors, and Cycles works fine.

ldo
Posts: 544
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Postby ldo » Fri Feb 17, 2012 10:42 am

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: Select all

apt-get build-dep blender

alexandredias
Posts: 4
Joined: Sun Feb 12, 2012 8:29 pm

Postby alexandredias » Fri Feb 17, 2012 7:50 pm

Code: Select all

/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...

ldo
Posts: 544
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Postby ldo » Sat Feb 18, 2012 12:57 am

On my Debian system, Z_BEST_COMPRESSION is defined in /usr/include/zlib.h, which comes from the package zlib1g-dev.

altitudebreath
Posts: 1
Joined: Fri Mar 09, 2012 12:15 pm
Location: Ukraine

Postby altitudebreath » Fri Mar 09, 2012 12:25 pm

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


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 0 guests