Hi,

Build fails on Ubuntu 11.04 (Natty) that Boost version is 1.42.  Also,
the build should fail on Debian stable (Squeeze).

I think these distributions are not so ancient because it was released
only one year ago or is a latest release.

Thomas, can attached patch be applied?  This patch uses filesystem v2
if Boost version is less than 1.44.

--
IRIE Shinsuke

12/07/25, Thomas Dinges wrote:
Hi,
yes we upgraded to only support Boost filesystem 3.
So please update your Boost version, boost 1.40 is ancient (2009). ;-)

Regards,
Thomas

Am 25.07.2012 15:39, schrieb Paul Melis:
Hi,

On an Ubuntu 10.04.4 LTS system (x86_64) Blender no longer builds, due
to an error related to boost. Is Boost 1.40.0 not supported anymore?
It's the version of Boost included with 10.04.4 LTS.

_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers


Index: blender/intern/cycles/util/util_path.cpp
===================================================================
--- blender/intern/cycles/util/util_path.cpp	(revision 48947)
+++ blender/intern/cycles/util/util_path.cpp	(working copy)
@@ -26,6 +26,10 @@
 
 #include <stdio.h>
 
+#if (BOOST_VERSION < 104400)
+#define BOOST_FILESYSTEM_VERSION 2
+#endif
+
 #include <boost/filesystem.hpp> 
 #include <boost/algorithm/string.hpp>
 
@@ -58,7 +62,11 @@
 
 string path_filename(const string& path)
 {
+#if (BOOST_FILESYSTEM_VERSION == 2)
+	return boost::filesystem::path(path).filename();
+#else
 	return boost::filesystem::path(path).filename().string();
+#endif
 }
 
 string path_dirname(const string& path)
Index: blender/intern/cycles/util/util_cache.cpp
===================================================================
--- blender/intern/cycles/util/util_cache.cpp	(revision 48947)
+++ blender/intern/cycles/util/util_cache.cpp	(working copy)
@@ -26,6 +26,10 @@
 #include "util_path.h"
 #include "util_types.h"
 
+#if (BOOST_VERSION < 104400)
+#define BOOST_FILESYSTEM_VERSION 2
+#endif
+
 #include <boost/filesystem.hpp> 
 #include <boost/algorithm/string.hpp>
 
@@ -115,7 +119,11 @@
 		boost::filesystem::directory_iterator it(dir), it_end;
 
 		for(; it != it_end; it++) {
+#if (BOOST_FILESYSTEM_VERSION == 2)
+			string filename = it->path().filename();
+#else
 			string filename = it->path().filename().string();
+#endif
 
 			if(boost::starts_with(filename, name))
 				if(except.find(filename) == except.end())
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to