Search code examples
boostcompilationblenderbuilding

Possible to build blender with latest boost libraries?


I have a working Blender up-to-date C/C++ build, but it compiles with Boost 1.49.

I would like to use latest Boost libraries (currently 1.53) because of its usage in a related project.

Is it daunting to compile blender with the latest boost? Has anyone got it working?

Alternatively, is it possible (or recommended) to just leave blender with existing boost 1.49 library and use Boost 1.53 for my small amount of code?

Many thanks!


Solution

  • I have boost 1.52 and blender builds and runs fine.

    After installing 1.53 you may need to recompile existing apps to link against the new libs, recent version of programs should be fine with the new libs but some older code may need small adjustments. One change I know of is from code using deprecated versions of boost::filesystem.

    To install multiple versions of boost you would want them installed in different locations. This would mean configuring boost with a different PREFIX and you would also need to point your apps to the location of boost libs you want to use with -I in CXXFLAGS and -L in LDFLAGS