View topic - [solved]compile yafaray286 on win32 fail

[solved]compile yafaray286 on win32 fail

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

[solved]compile yafaray286 on win32 fail

Post Sun Nov 02, 2008 5:59 am

hi,all
i get the following codes and tools before compile yafaray:
1. yafray 286 from svn,
2. blender 2.47 ,
3. scons 1.1.0,
4. python 2.5.2.

My yafaray directory is:
Code: Select all
ROOT\
|--blender\
......|---yafaray_ui.py
......|---python\
......|---(other dirs and files)
|--libs\msvc\
|--yafaray\
......|---config\
......|---user-config.py
......|---(other dirs and files)



i followed the steps in http://www.yafray.org/forum/viewtopic.php?t=1364, and creat user-config.py like this:
Code: Select all
WITH_BF_OPENAL = 'false'
WITH_BF_GAMEENGINE='true'
WITH_BF_BULLET = 'true'
WITH_BF_INTERNATIONAL = 'false'
WITH_BF_ODE = 'true'
WITH_BF_OPENEXR = 'true'
WITH_BF_FTGL = 'true'
WITH_BF_FMOD = 'false'
WITH_BF_SDL = 'true'
WITH_BF_FFMPEG = 'false'
WITH_BF_QUICKTIME = 'true'



Change YF_PYTHON_LIBPATH in win32-vc-config.py(ROOT\yafray\config\config\win32-vc-config.py) to:
Code: Select all
YF_PYTHON_LIBPATH = 'D:\Program_Files\Python\2.5.2\libs'



Then, i try to compile yafaray, but fail.
Code: Select all
>cd ROOT\yafray
>scons
scons: Reading SConscript files ...
using configuration from config/win32-vc-config.py
Using config file: user-config.py
Checking for C library pthreadVC2... no
Checking for C library zlib... no
Checking for C++ library Half... no
Checking for C library libxml2_a... no
Checking for C library libjpeg... no
Checking for C library libpng... no
Checking for C library freetype... no
Error: not all enabled libraries are available!
if they are installed, make sure the paths are setup correctly
if you don't have them, try disabling with the appropriate WITH_YF_* option



i open config\win32-vc-config.py, and try to find the reason.
There are following lines in this file:
Code: Select all
BASE_LPATH = '#../libs/msvc'
BASE_IPATH = '#../libs/msvc'
### pthreads
YF_PTHREAD_INC = '${BASE_IPATH}/pthreads/include'
YF_PTHREAD_LIBPATH = '${BASE_LPATH}/pthreads/lib'
YF_PTHREAD_LIB = 'pthreadVC2'


But i think BASE_LPATH and BASE_IPATH are right as for my yafaray directories.

I am confuised, and don't know what to do next.
Can anyone help me ?
Last edited by yaoyansi on Sun Nov 02, 2008 8:06 am, edited 1 time in total.
yaoyansi
 
Posts: 3
Joined: Sun Nov 02, 2008 5:20 am

Post Sun Nov 02, 2008 8:05 am

It is solved.
The reason is I forgot to set enviroment vars of vc++.

Now, this is my step:
>cd Root\yafaray
>"D:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
>scons

that's all.
yaoyansi
 
Posts: 3
Joined: Sun Nov 02, 2008 5:20 am


Return to Testing Builds



Who is online

Users browsing this forum: No registered users and 3 guests