From BlenderWiki
Building with Visual Studio 2003
These instructions are intended for MSVC .NET 2002, but they should work just fine for MSVC .NET 2003 and Visual Studio 2005 as well.
Pre-requisites
- sources and correct directory structure (see Getting Sources)
- the QuickTime 7 SDK, so that you have ../lib/windows/QTDevWin/Libraries and ../lib/windows/QTDevWin/CIncludes
Building in general
Building on msvc7:
- build the blender/extern/bullet/continuous_vc7.sln
- build the blender/extern/extern.sln solution
- build the blender/intern/intern.sln solution
- build the blender/projectfiles_vc7/blender/blender.sln solution
There are 4 solution configurations now for extern.sln and intern.sln Blender Debug and Blender Release are for building BlenderPlayer and Blender. 3D Plugin Debug and Release are for building the ActiveX web plugin. You should build a solution appropriate to what you want to do.
The blender.sln has 6 configurations now: Blender debug and release, BlenderPlayer debug and release and 3D Plugin debug and release. Choose the config you want and then 'build solution' (as apposed to build blender).
You can bring up the activeX plugin in the test container and regester it and play with it there. It should build now in both a JIT debug and release version. BlenderPlayer.exe and Blender.exe will build to blender/bin or blender/bin/debug with their correct .dll dependencies already in the folders. Also .Blender gets copied to the blender/bin/debug.
Blender and BlenderPlayer now build a true debug build with links to the CRT and Python. (It was building a release version for both the debug and release builds before)
For both the internal libraries and blender it is 'safe' to ignore the warnings.
Enabling and Disabling features
With the build system you can either dis- or enable some features of Blender. If you don't need the gameengine, then you can turn it off, etc.
Toggle OpenEXR Support
To enable OpenEXR output support in Blender, you will need to modify a few options. First, open blender.sln. Open properties of the "BL_src" project, goto configuration-> C++ -> Preprocessor and add "WITH_OPENEXR" to the project. Follow these same steps and add the option to the BL_imbuf, BRE_render and blender projectfiles. Now, open the properties page of the "blender" project and goto configuration -> Linker -> Input, and under "Libraries to include", add 'Iex.lib', 'Imath.lib', 'IlmImf.lib', 'Half.lib'. Also, under Linker -> [default page] add the following to "Directories to inlclude": "../../../lib/windows/openexr/lib_msvc". It should work now.







![[]](/skins/blender/open.png)
