Rss Feed Tweeter button Facebook button
Man I Can (MIC) » 3D Animation Project

Producer

Man-I-Can (MIC)
You can too! A Short Film Project

david hickson

David Hickson BFCT: I can’t afford a cool title.

Blenducation Owner

Executive in charge of finance, modeling concept and storyline creator. (I also Make the coffee.)

Building Blender 2.59.2 and beyond! For Windows Users

Share

You don’t have to Build Blender to use it! You can get a copy of a supported, fully working copy at Blender.org. Or grab the latest Builds from GraphicAll.org. This Tutorial is for those that want to try and Build their own Blender.exe application form source files.

The Set up:

Download and install the following three applications to your PC ( I am using Windows Vista).

TortoiseSVN:

Follow the linked image and install TortoiseVNC on your PC. I am running Windows Vista SP2 at the time of this article. We will use this program to collect all the needed files from Blender’s Repository so we can Build Blender. You can get it here.

CMake:

Next you must obtain a copy of CMake in order for us to “make” a file from the files we collect so Visual C++ can Build Blender. You can get this here.

 

 

 Visual C++ 2008 Express Edition:

This is the last program we will need. It is Microsoft Visual C++ 2008 Express Edition. You can get it here.

 

 

 

Step one: Getting the files.

Now that we have the SVN tools needed (TortioseSVN)  we can now connect to the Blender foundation Repository.

 If you have successfully installed TortioseSVN,  just right click on your desktop and you should see a couple of new options. Choose “SVN Checkout“. A new widow will appear asking for some information. Fill in the following directories…

 

  …The first is URL of the Repository. Just copy and Paste this directory https://svn.blender.org/svnroot/bf-blender/trunk/blender This is where all the coders do a commit (save all their work to).

The second, the Checkout Directory, is where do you want TortioseSVN to save these files. Please use the following directory C:\Blender\Blender (This could be anywhere on your PC’s hard drive but for now please use that directory. You can change the path later but it will make things easier to find later if you use the one above.)

 A window like this should pop up and download all the files that make up Blender. These are the files you will need to update each time you want to Build a new revised Blender.exe These revisions are  made by the coders as they make commits.  SVN will update only the changed files when you do future Checkouts of the code, this one should be kind of large.

 Step two: Get the LIBS

Now we need a set LIBs (libraries) to aid CMake and Visual C++ 2008 Express as they attempt to build Blender for us. To do this just right click on your desktop and do another checkout with SVN, but this time change the URL of the repository to https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows and the Checkout directory to C:\Blender\lib\Windows

Because  building a 64bit version of Blender requires a patch to work, I will be building a 32 bit version. But if you want to build the 64bit version you will need the 64 bit LIBs. You can get those here:  URL of the repository to https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64 and the Checkout directory to C:\Blender\lib\Win64

Now back to our 32 bit build….

 

 

Once you have download all the files from the Blender repository you should see the following file structure on your C drive:

 
   

Step three: Using CMake

Open the CMake application from where ever you installed it and you should get this nice window. 

CMake will create what is called a “solution” for Visual Studio 9 2008 Express to use to build Blender from all those source files downloaded. We will tell CMake that our source code is in C:/Blender/Blender and that it should build the solution or Binaries here C:/Blender/build 

 

Then click the configure button in the Lower left to open a pop up window to tell CMake that we will be using Visual Studio 9 2008 (if that is what you are using too).

Then Click Finish.

 

 

The results is a checklist of sorts. Here you can include or remove options that will be in your new Blender.exe.

Note: I didn’t make any changes to these but to include just be sure the little tick box has a check and to remove make sure there is no check mark in the tick box. If you make any changes you will need to click on the Configure button again. If you get errors you may want to try this with all the options off.

Now Click on the Generate button!

 Step four: Using Microsoft Visual C++

This is the part we have been work towards. Navigate to our new Solution called Blender.sln it should be in C:/Blender/build/

Double click that file and MSVS will open.

Two important settings need to be made in MSVS before we build Blender:

 

1. Be sure to change Debug to Release.

 2. Then look for INSTALL and Right click that and select build!

 

 Finally: time to enjoy Blender!

To find your new Blender.exe just navigate over to C:\Blender\build\Bin\Release, there you will find

your brand new Blender.exe! Enjoy!

 
   

 Final notes: Keeping up with new builds:

The Blender coders commit all the time so you may want to up date your Build. To do this just right click on your Blender repository copy (remember C:/Blender/Blender ?) and select SVN Update. Check out you LIBs too just to be safe.

Now start at step three above to rebuild a new solution for MSVS. Navigate to your Blender.sln and double click…

 

Problems with MSVS: call Support at 800-936-4900

Problems with CMake: Support is Here

Problems with TortoiseSVN: Go Here

Problems with this tutorial: Leave a comment.

Problems with to much money? Send some to us!

Special thanks to Mike Pan for his help with this and the guys in IRC #Blendercoders for their help!

 

 

SVN and sharing.

Share

Cyber studio back bone:

Ok, so the fact is we are a cyber studio and we will someday all meet, but as it is now we have to share files remotely or this will be a huge mess.

While Daniel is working on setting up the animatic and Milan is making Models we need to share these files and not step on each other toes by breaking what the other guy does. What we are using is an SVN server to store the files and each person can go in make changes, add files and get new copies to work on. Each of us is on a different Operating system also. Daniel is on Linux, Milan is on Mac OSX and I am on Windows and Mac OSX.

In order for us to share these files we need a server!

I just jumped over to my host (Dreamhost, whom I love by the way) and set up an SVN repository with cool log in names and passwords for everyone! Then I passed them out to each person that will need access. Daniel uses a terminal to login and grab his “Working copy” I used an application called Radipsvn and Tortiose to grab my copy and I pointed Milan to a great article on SVN on a mac. I also found this cool GUI application called Versions for him to use but is costs $55 us. We shall see what works best for him

The way it works:

how SVN helps

Image credit goes to Versions

It is rather an easy concept really, one guy makes a file and others in the group can make changes to it. Each of us can see what files have changed and by whom and when the changes were made.

Cost to run this is nearly nothing due to the fact that we are just using my existing Host (did I mention Dreamhost?) and we are using opensource solutions to access the repository.

Sharing has never felt so good.

 

§ 2 Responses to Producer

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Welcome Man I Can (MIC)

Log in

Lost your password?