21 ноября 2009 в 11:39Рейтинг: 0
0
0
Wayfaerer, расскажи, пожалуйста, поподробнее как ты ставил yafaray на Lenny. Что-то я не осилю никак...
Я напишу что делал и задам вопросы, хорошо?
1. Распаковал, установил, всё что требует, ставил из репов.
2. Правлю linux2-config.py. Меняю на:
PREFIX = '/usr'
WITH_YF_QT='true'
Кстати, 64 к lib'ам надо приписывать? У меня amd64. Я приписал.
3. В каталоге ~/yafaray выполняю:
# scons
всё вроде проходит, пишет scons: done building targets.
4. Делаю scons swig. Нужно? В общем на этом этапе выдает следующее:
scons: Reading SConscript files ...
using configuration from config/linux2-config.py
user-config.py not available, doing no user overrides
scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/dragonfly/yafaray/tools/buildtools.py", line 9, in read_opts
scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/dragonfly/yafaray/tools/buildtools.py", line 22, in read_opts
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/dragonfly/yafaray/tools/buildtools.py", line 112, 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
Creating config file:yafray_config.h
Using user config file: yafray_user_config.h
sh: svnversion: not found
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 -DHAVE_QT -DBUILDING_YAFRAYPLUGIN -I. -Iinclude -I/usr/include/python2.5 build/bindings/yafrayinterface_wrap.cc
build/bindings/yafrayinterface_wrap.cc:149:20: error: Python.h: Нет такого файла или каталога
build/bindings/yafrayinterface_wrap.cc:2713:4: error: #error "This python version requires swig to be run with the '-classic' option"
build/bindings/yafrayinterface_wrap.cc:780: error: ‘PyObject’ was not declared in this scope
build/bindings/yafrayinterface_wrap.cc:780: error: ‘str’ was not declared in this scope
build/bindings/yafrayinterface_wrap.cc:781: error: expected ‘,’ or ‘;’ before ‘{’ token
build/bindings/yafrayinterface_wrap.cc:804: error: expected initializer before ‘*’ token
build/bindings/yafrayinterface_wrap.cc:830: error: expected initializer before ‘*’ token
build/bindings/yafrayinterface_wrap.cc:884: error: expected initializer before ‘*’ token
build/bindings/yafrayinterface_wrap.cc:905: error: expected initializer before ‘*’ token
In file included from /usr/include/c++/4.3/stdexcept:43,
from build/bindings/yafrayinterface_wrap.cc:2737:
/usr/include/c++/4.3/exception:40: error: expected declaration before end of line
scons: *** [build/bindings/yafrayinterface_wrap.os] Error 1
scons: building terminated because of errors.
5. Без особой надежды:
# scons install
... вроде всё без ошибок scons: done building targets.
6. Ну и копирую по совету Lanuhum с yafaray_0.1.1_ubuntu64.deb все нужные файлы.
Запускаю Blender, YafaRay Export 0.1.1 появился, жму, получаю сообщение "Python script error: check console" Смотрю в консоль и вижу:
YafaRay (N/A)
~yafrayInterface_t() delete scene...delete environment...done
YafaRay (N/A)
~yafrayInterface_t() delete scene...delete environment...done
YafaRay (N/A)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/dragonfly/.blender/scripts/yafaray_ui.py", line 2354, in <module>
main()
File "/home/dragonfly/.blender/scripts/yafaray_ui.py", line 2347, in main
TabMaterial = clTabMaterial()
File "/home/dragonfly/.blender/scripts/yafaray_ui.py", line 302, in __init__
self.yRender = yaf_export.yafrayRender(isPreview = True)
File "/home/dragonfly/.blender/scripts/yaf_export.py", line 65, in __init__
self.yi.loadPlugins(dllPath)
File "/home/dragonfly/.blender/scripts/yafrayinterface.py", line 97, in loadPlugins
def loadPlugins(*args): return _yafrayinterface.yafrayInterface_t_loadPlugins(*args)
TypeError: in method 'yafrayInterface_t_loadPlugins', argument 2 of type 'char const *'
Что-то с интерфейсом... Может Qt-библиотек не хватает?