View topic - compiling yafray on fedora

compiling yafray on fedora

Users-contributed CVS development builds. Post here your questions about compiling the source code.

compiling yafray on fedora

Post Wed Jan 28, 2009 9:57 pm

hello this is the result of the scons swig command
what is the solution to resolve this kind of error
Code: Select all
scons swig
scons: Reading SConscript files ...
using configuration from config/linux2-config.py
Using config file: user-config.py

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/gael/yafaray/yafaray/tools/buildtools.py", line 111, in check_config
Checking for C library pthread... (cached) yes
Checking for C library z... (cached) yes
Checking for C++ library Half... (cached) yes
Checking for C++ library Iex... (cached) yes
Checking for C++ library Imath... (cached) yes
Checking for C++ library IlmImf... (cached) yes
Checking for C library xml2... (cached) yes
Checking for C library jpeg... (cached) yes
Checking for C library png... (cached) yes
Checking for C library freetype... (cached) yes
Using config file: yafray_config.h
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/bindings/yafrayinterface_wrap.os -c -Wall -fPIC -O3 -ffast-math -DHAVE_PTHREAD -DHAVE_EXR -DHAVE_XML -DHAVE_JPEG -DHAVE_PNG -DHAVE_ZLIB -DHAVE_FREETYPE -DBUILDING_YAFRAYPLUGIN -I. -Iinclude -I/usr/include/python2.5 build/bindings/yafrayinterface_wrap.cc
build/bindings/yafrayinterface_wrap.cc:139:20: erreur: Python.h : Aucun fichier ou dossier de ce type
build/bindings/yafrayinterface_wrap.cc:2525:4: erreur: #error "This python version requires swig to be run with the '-classic' option"
build/bindings/yafrayinterface_wrap.cc:745: erreur: expected initializer before ‘*’ token
build/bindings/yafrayinterface_wrap.cc:800: erreur: expected initializer before ‘*’ token
build/bindings/yafrayinterface_wrap.cc:821: erreur: expected initializer before ‘*’ token
In file included from /usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/stdexcept:43,
                 from build/bindings/yafrayinterface_wrap.cc:2544:
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/exception:40: erreur: expected declaration before end of line
scons: *** [build/bindings/yafrayinterface_wrap.os] Error 1
scons: building terminated because of errors.
noog
 
Posts: 1
Joined: Wed Jan 28, 2009 9:55 pm

Post Thu Jan 29, 2009 4:51 pm

I received similar error..I am not sure what exactly it was but....I went to the source file and removed some decelerations actually it was a "Pointer" which was not declared or the compiler was showing its not declared.

Actually I found 3 -4 such errors while compiling.

Well I think in your case you need to have swig on your system and follow the below instruction as :-

"#error "This python version requires swig to be run with the '-classic' option" "
-----------------------
http://yafaray.manojky.net
hemuman
 
Posts: 26
Joined: Mon Jan 12, 2009 7:46 pm
Location: India

Post Fri Jan 30, 2009 4:31 pm

noog, make sure you have Python 2.5 installed (including the dev files, since they seem to be missing according to the first error:

build/bindings/yafrayinterface_wrap.cc:139:20: erreur: Python.h : Aucun fichier ou dossier de ce type

or are simply at a different location than the included /usr/include/python2.5 directory).
bert_b
 
Posts: 265
Joined: Sun Mar 23, 2008 11:31 pm

Re: compiling yafray on fedora

Post Wed Jul 29, 2009 6:40 pm

What options do I have to install yafaray on my Fedora 11? I don't want to compile it from source because of future updates problems.
Hiisi
 
Posts: 1
Joined: Wed Jul 29, 2009 6:29 pm

Re: compiling yafray on fedora

Post Fri Jul 31, 2009 8:10 am

Hiisi wrote:What options do I have to install yafaray on my Fedora 11? I don't want to compile it from source because of future updates problems.


Atrpms guys have non official fedora packages (including f11).
Current package is 0.1.0.315, a bit outdated, but I think they will update it soon.
Atrpms website where you can find packages: http://www.atrpms.net
Atrpms repository configuration: http://www.atrpms.net/install.html

In the mean time I used their spec file to quick build a 0.1.1 version, it's not meant to be official as it is simply a rebuild:
http://www.soulbit.net/yafaray-0.1.1-1.fc11.i386.rpm
http://www.soulbit.net/yafaray-blender- ... 1.i386.rpm
Michele Castigliego
ALTASIS - http://www.altasis.it
User avatar
subcomandante
Site Admin
 
Posts: 232
Joined: Thu May 29, 2008 11:06 am
Location: Turin, Italy

Re: compiling yafray on fedora

Post Fri Aug 07, 2009 6:07 am

I had same problem... fixed it by:

yum install python-devel
ppoodd
 
Posts: 21
Joined: Wed Jul 29, 2009 12:03 am

Re: compiling yafray on fedora

Post Fri Aug 07, 2009 6:12 am

During render:

dlerror: /usr/local/lib/yafaray/libsunsky.so: cannot restore segment prot after reloc: Permission denied
dlerror: /usr/local/lib/yafaray/libDarkSky.so: cannot restore segment prot after reloc: Permission denied

?
ppoodd
 
Posts: 21
Joined: Wed Jul 29, 2009 12:03 am

Re: compiling yafray on fedora

Post Fri Aug 21, 2009 10:36 am

ppoodd wrote:During render:

dlerror: /usr/local/lib/yafaray/libsunsky.so: cannot restore segment prot after reloc: Permission denied
dlerror: /usr/local/lib/yafaray/libDarkSky.so: cannot restore segment prot after reloc: Permission denied

?


Try disabling selinux.
Michele Castigliego
ALTASIS - http://www.altasis.it
User avatar
subcomandante
Site Admin
 
Posts: 232
Joined: Thu May 29, 2008 11:06 am
Location: Turin, Italy


Return to Testing Builds



Who is online

Users browsing this forum: No registered users and 3 guests

cron