Page 1 of 1

Problem compiling blender on 64 bit Fedora 7

Posted: Sun Jun 24, 2007 11:42 pm
by grzybu
Hi,

I can't buitd blender on Fedora 7.
On Fedora Core 6 it was working fine and I was able to build 64 bit blender build.
But now I have errors:

Code: Select all

Linking program ==> 'blender'
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libpython2.5.so when searching for -lpython2.5
/usr/bin/ld: skipping incompatible /usr/lib/libpython2.5.so when searching for -lpython2.5
/usr/bin/ld: skipping incompatible /usr/lib/libpython2.5.so when searching for -lpython2.5
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
/usr/bin/ld: cannot find -lgettextlib
collect2: ld returned 1 exit status
scons: *** [/home/install/blender/build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
How to force scons linking using 64bit libraries?

Re: Problem compiling blender on 64 bit Fedora 7

Posted: Mon Jun 25, 2007 1:10 am
by jesterKing
grzybu wrote:Hi,

I can't buitd blender on Fedora 7.
On Fedora Core 6 it was working fine and I was able to build 64 bit blender build.
But now I have errors:

Code: Select all

/usr/bin/ld: cannot find -lgettextlib
collect2: ld returned 1 exit status
scons: *** [/home/install/blender/build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
How to force scons linking using 64bit libraries?
First install gettext, then try again.

/Nathan

Re: Problem compiling blender on 64 bit Fedora 7

Posted: Mon Jun 25, 2007 1:21 am
by grzybu
jesterKing wrote:
First install gettext, then try again.

/Nathan
I have gettext installed:

Code: Select all

 ldconfig -p | grep gettext
        libgettextsrc-0.16.1.so (libc6,x86-64) => /usr/lib64/libgettextsrc-0.16.1.so
        libgettextsrc-0.16.1.so (libc6) => /usr/lib/libgettextsrc-0.16.1.so
        libgettextpo.so.0 (libc6,x86-64) => /usr/lib64/libgettextpo.so.0
        libgettextpo.so (libc6,x86-64) => /usr/lib64/libgettextpo.so
        libgettextlib-0.16.1.so (libc6,x86-64) => /usr/lib64/libgettextlib-0.16.1.so
        libgettextlib-0.16.1.so (libc6) => /usr/lib/libgettextlib-0.16.1.so

Posted: Mon Jun 25, 2007 8:03 am
by jesterKing
If you haven't done already, you need to copy config/linux2-config.py to user-config.py (into the same directory where SConstruct lives) and make sure all *_LIBPATH variables point to the /usr/lib64 directory - or whereever each 64bit library is installed. This means that for gettext the options

Code: Select all

BF_GETTEXT = '/usr'
BF_GETTEXT_INC = '${BF_GETTEXT}/include'
BF_GETTEXT_LIB = 'gettextlib'
BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
will be

Code: Select all

BF_GETTEXT = '/usr'
BF_GETTEXT_INC = '${BF_GETTEXT}/include'
BF_GETTEXT_LIB = 'gettextlib'
BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib64'
/Nathan

Posted: Mon Jun 25, 2007 7:19 pm
by grzybu
Thanks, now it works fine :)