yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #01140
Re: impossible to compile without python / sqlite3
-
To:
Yade Development Group <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Václav Šmilauer <eudoxos@xxxxxxxx>
-
Date:
Wed, 18 Mar 2009 18:09:05 +0100
-
In-reply-to:
<20090318010238.27f67b61@absurd>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.19) Gecko/20090105 Lightning/0.8 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666
1. have boost 1.33, we just need foreach.hpp
2. they don't have sqlite3 (only sqlite2)
3. boost::python::len is not defined in boost 1.33. And that's the
only reason for which I must disable python. Or we'll see if we
can upgrade boost....
You could install locally boost 1.35 or later (I did that on RHEL 4.?
machine, like 4 years old installation with only security updates) and
also sqlite3. Otherwise:
For foreach.hpp, just copy that header to some local include directory.
For boost::python::len, you can put this anywhere (into local
foreach.hpp, if you wish ;-) ):
namespace boost { namespace python {
inline ssize_t len(object const& obj)
{
ssize_t result = PyObject_Length(obj.ptr());
if (PyErr_Occurred()) throw_error_already_set();
return result;
}
sqlite3 problem:
- make sqlite3 optional (the check in SConscript)
- add some #ifdefs in GLSimulationPlayerViewer, and respective
SConstript entry
http://www.novell.com/products/linuxpackages/opensuse/index_group.html
It seems there must be a sqlite3 lib and headers in suse 10.3 (unless
opensuse 10.3 has nothing to do with suse 10.3). Can you doublecheck?
Vaclav
References