Page 2 of 2

Posted: Tue Oct 11, 2005 2:37 am
by Napoleon
After commenting out #define USE_BULLET, below is the error i get:

link @c:\docume~1\owner\locals~1\temp\tmpzyz7eb.lnk
Using tempfile c:\docume~1\owner\locals~1\temp\tmpmg_wgj.lnk for command line:link /nologo /SUBSYSTEM:CONSOLE /MACHINE:IX86 /ENTRY:mainCRTStartup /INCREMENTAL
:NO /NODEFAULTLIB:"msvcprt.lib" /NODEFAULTLIB:"glut32.lib" /NODEFAULTLIB:"libcd.
lib" /NODEFAULTLIB:"libcpd.lib" /NODEFAULTLIB:"libcp.lib" /NODEFAULTLIB:"libcmtd.lib" /OUT:blender.exe /LIBPATH:C:\blenderdev\build\win32\lib /LIBPATH:lib /LIBPATH:C:\blenderdev\lib\windows\freetype\lib /LIBPATH:C:\blenderdev\lib\windows\python\lib /LIBPATH:C:\blenderdev\lib\windows\sdl\lib /LIBPATH:C:\blenderdev\lib\windows\png\lib /LIBPATH:C:\blenderdev\lib\windows\jpeg\lib /LIBPATH:C:\blenderdev\lib\windows\gettext\lib /LIBPATH:C:\blenderdev\lib\windows\zlib\lib /LIBPATH:C:\blenderdev\lib\windows\openal\lib /LIBPATH:C:\blenderdev\lib\windows\iconv\lib
/LIBPATH:C:\blenderdev\lib\windows\QTDevWin\Libraries blender_creator.lib blender_blendersrc.lib blender_render.lib blender_yafray.lib blender_renderconverter.
lib blender_radiosity.lib blender_BSP.lib blender_blenkernel.lib blender_LOD.lib blender_IK.lib blender_ONL.lib blender_elbeem.lib blender_readblenfile.lib blender_img.lib blender_blenkernel.lib blender_blenloader.lib blender_blenpluginapi.lib blender_imbuf.lib blender_avi.lib blender_blenlib.lib blender_makesdna.lib blender_kernel.lib blender_GHOST.lib blender_STR.lib blender_guardedalloc.lib blender_CTR.lib blender_MEM.lib blender_MT.lib blender_BMF.lib soundsystem.lib blender_quicktime.lib freetype2ST.lib blender_FTF.lib extern_ftgl.lib freetype2ST.lib KX_blenderhook.lib KX_converter.lib PHY_Dummy.lib PHY_Physics.lib KX_ketsji.lib SCA_GameLogic.lib RAS_rasterizer.lib RAS_OpenGLRasterizer.lib blender_expressions.lib SG_SceneGraph.lib blender_MT.lib KX_blenderhook.lib KX_network.lib blender_kernel.lib NG_network.lib NG_loopbacknetwork.lib PHY_Sumo.lib PHY_Physics.lib blender_MT.lib extern_solid.lib extern_qhull.lib blender_python.lib python24.lib SDL.lib libpng_st.lib libjpeg.lib gnu_gettext.lib zlib.lib openal_static.lib qtmlClient.lib soundsystem.lib ws2_32.lib dxguid.lib vfw32.lib winmm.lib iconv.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libcmt.lib libc.lib opengl32.lib glu32.lib C:\blenderdev\build\win32\source\creator\dynamic_buildinfo.obj source\icons\winblender.res
LINK : fatal error LNK1181: cannot open input file 'dxguid.lib'
scons: *** [blender.exe] Error 1181
intern\string\STR_String.h(144) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
scons: building terminated because of errors.
C:\blenderdev\blender>


Thnx for your help.

Posted: Tue Oct 11, 2005 8:28 pm
by bjornmose
Napoleon

dxguid.lib is in the directX SDK folder
my batch helping the compiler find it looks like that

Code: Select all

@echo off

Set INCLUDE=C:\DXsdk\include;%INCLUDE%
Set LIB=C:\DXsdk\lib;%LIB%

echo setting include and lib to C:\dxsdk
BM

Posted: Tue Oct 11, 2005 11:29 pm
by Napoleon
Bjornmose,

thanks for your help so far. I tried two ways, first i created a batch file called dx90dsk.bat which i run after i run vcvars32.bat for visual c++2003. How ever when i run scons it terminates with errors. I therefore decided to modify the vcvars32.bat directly and to add the include and lib folders to the appropriate lines. It stills yeilds error shortly after scons starts.

How exactly do i use your batch file?

Posted: Fri Oct 14, 2005 3:43 am
by Napoleon
well am getting there i think but the problem is scons builds the individual exe's but cannot build a release version ie a .zip file. Below are the errors:

Creating library blenderplayer.lib and object blenderplayer.exp
libpng_st.lib(pngwutil.o) : warning LNK4217: locally defined symbol __iob imported in function _png_write_cHRM
libpng_st.lib(pngerror.o) : warning LNK4049: locally defined symbol __iob imported
libpng_st.lib(pngrutil.o) : warning LNK4217: locally defined symbol __iob imported in function _png_handle_tEXt
libjpeg.lib(jerror.o) : warning LNK4049: locally defined symbol __iob imported
zipit(["blenderrelease"], ["blender.exe"])
scons: *** [blenderrelease] No such file or directory
scons: building terminated because of errors.
IOError: [Errno 2] No such file or directory: '.\\..\\build\\win32\\scons-signat
ures.tmp':
File "C:\Python24\scons-0.96.91\SCons\Script\Main.py", line 1280:
_exec_main()
File "C:\Python24\scons-0.96.91\SCons\Script\Main.py", line 1274:
_main(args, parser)
File "C:\Python24\scons-0.96.91\SCons\Script\Main.py", line 1247:
SCons.SConsign.write()
File "C:\Python24\scons-0.96.91\SCons\SConsign.py", line 110:
syncmethod()
File "C:\Python24\scons-0.96.91\SCons\dblite.py", line 78:
f = _open(self._tmp_name, "wb", self._mode)
Exception exceptions.IOError: (2, 'No such file or directory', '.\\..\\build\\win32\\scons-signatures.tmp') in <bound method dblite.__del__ of <SCons.dblite.dblite instance at 0x01A40238>> ignored
C:\blenderdev\blender>

thanks

Posted: Sat Oct 15, 2005 9:36 pm
by bjornmose
Hi Napoleon,
looks like you succesfully built a shiny new blender.exe which resides in you 'blah'/blender. It won't run there because it's missing some *.dll's there like sdl.dll and gnu_gettext.dll. Further it'd like to have a .blender folder beside to read some other data. I usually rename that blender.exe to _foo_blender.exe and copy it beside the blender.exe to a running installation. It will happyly run from there. You could of course copy the installation folder to MyFunkyOwnBlender and copy the new blender.exe there.

The /release option in scons means to build a complete redistributable setup, with .blender folder, python scipts and all.
I doubt you want to do this, but if you want to do so you need to have the NSIS package installed.
---> http://nsis.sourceforge.net/

my workflow after CVS checkout

delete config.opts ( yeah weird coders might have canged things there )

in cmd box

Code: Select all

setenv 
vcvars32
setDX
scons clean
setenv.bat is from psdk, vcvars32.bat is from vc7, setDX.bat contains the lines posted above. ( you might take vcvars32.bat from vc6 too to build with msvc6 .. i have vcvars7.bat and vcvars6.bat to switch :) )

edit config.opts ( disableing player, gameengine or so.. )

Code: Select all

scons
this should end up with something like:

Code: Select all

.....
scons: Nothing to be done for `default'.
scons: done building targets.
copy the new blender.exe to _foo_ ( is a copy of running blender directory )
run it there

BM

P.S. nice tool for dos NC/MC junkies like me --> http://www.ghisler.com/

Posted: Sun Oct 16, 2005 9:28 am
by kidb
And:
Napoleon wrote: scons: *** [blenderrelease] No such file or directory
In my last cvsbuilds from October13/14 there was a file missing:
"release/text/release_240-alpha1.txt" . As I am working with linux I created (touch) an empty file with this name. So I think you should create this file for Windows too.

Posted: Sun Oct 16, 2005 11:50 pm
by Napoleon
Thanks all i have built blender just the way i want it for the first time on windows.