[Bf-committers] Best way to work with Blender source code?

Thomas Meyer public at meyer-thomas.com
Mon Aug 29 09:49:36 CEST 2011


Hello,
I need some hints for working with the (current) Blender source code.
For example, I want to add a new function to
...blender-2.59 src\source\blender\blenlib\intern\math_vector.c
The function name is for example 'doSomeStuff(int val)' etc.
So, what is the best way to build this 'new Blender' (called branch?).
What is the most effective way (time saving)?
How do you work with the Blender source code?

I have
MS Windows 7,
MS Visual Studio 2008 Standard Edition (german),
TortoiseSVN,
Python v3.2.1 (and for scons build v2.6 [video from Jester King])
CMake v2.8.5

I have downloaded the last trunk and made a succesfull new
build with CMake (the install project; and just for a try, for the 
cycles renderer, too).
When I update the files with TortoiseSVN and want to make a new build
with CMake, I get linker errors (with ffmpeg).
Output snippet (in german):
...
16>------ Erstellen gestartet: Projekt: blender, Konfiguration: Release 
Win32 ------
16>Kompilieren...
16>buildinfo.c
16>creator.c
16>Code wird generiert...
16>Verknüpfen...
16>   Bibliothek "D:\BlenderBuild\cmake-build\bin\Release\blender.lib" 
und Objekt "D:\BlenderBuild\cmake-build\bin\Release\blender.exp" werden 
erstellt.
16>libjpeg.lib(jerror.o) : warning LNK4049: Lokal definiertes Symbol 
"__iob" wurde importiert.
16>libpng_st.lib(pngerror.o) : warning LNK4049: Lokal definiertes Symbol 
"__iob" wurde importiert.
16>libpng_st.lib(pngwutil.o) : warning LNK4049: Lokal definiertes Symbol 
"__iob" wurde importiert.
16>libpng_st.lib(pngrutil.o) : warning LNK4049: Lokal definiertes Symbol 
"__iob" wurde importiert.
16>bf_imbuf.lib(anim_movie.obj) : error LNK2019: Verweis auf nicht 
aufgelöstes externes Symbol "_do_init_ffmpeg" in Funktion "_startffmpeg".
16>bf_rna.lib(rna_scene_gen.obj) : error LNK2019: Verweis auf nicht 
aufgelöstes externes Symbol "_ffmpeg_verify_image_type" in Funktion 
"_rna_RenderSettings_file_format_set".
16>D:\BlenderBuild\cmake-build\bin\Release\blender.exe : fatal error 
LNK1120: 2 nicht aufgelöste externe Verweise.
16>Das Buildprotokoll wurde unter 
"file://d:\BlenderBuild\cmake-build\source\creator\blender.dir\Release\BuildLog.htm" 
gespeichert.
16>blender - 3 Fehler, 4 Warnung(en)
...

But when I delete the complete build folder and build again, I get a new 
runnable Blender version.
Visual Studio needs about 15 minutes for a 'new' runnable Blender 
version. For an updated version about 3 minutes, but with linker errors. 
What can I do and how can I then work with my own version?

Thank you very much,
       Thomas






More information about the Bf-committers mailing list