[C++-sig] boost graph bgl-python on MAC OS X 10.6.3

2010-04-28 Thread Andrew Schweitzer
Hi, I'm trying to use the bgl-python library which exposes boost's graph 
library ('bgl') to python.


Has anyone built this recently for MAC OS X?

I tried versions bgl-python.0.9 and svn-HEAD. I got different errors in 
both cases. I suspect I'm doing something obvious wrong. Here is what I 
got from svn-HEAD:


../boost_1_42_0/bjam installwarning: No toolsets are configured.
warning: Configuring default toolset "gcc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=x" option to override our guess.
warning: For more configuration options, please consult
warning: 
http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html

notice: could not find main target install
notice: assuming it is a name of file to create.
/Users/schweitz/Documents/misc/boost/boost_1_42_0/tools/build/v2/build/project.jam:740: 
in attribute

warning: rulename $($(project).attributes).get expands to empty string
/Users/schweitz/Documents/misc/boost/boost_1_42_0/tools/build/v2/build/project.jam:752: 
in project.target

...
/Users/schweitz/Documents/misc/boost/boost_1_42_0/boost-build.jam:17: in 
module scope

don't know how to make install
...found 1 target...
...can't find 1 target...


Any ideas?

Thanks

Andrew

___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


Re: [C++-sig] Problems with boost tuples to python conversion

2010-04-28 Thread Maciej Sitarz

On 28.03.2010 11:53, Roman Yakovenko wrote:

On Sun, Mar 28, 2010 at 4:53 AM, Maciej Sitarz  >
So that would be a big problem, because that's a C++ API for a library
which

isn't developed by me.
Maybe you know how the pyogre developers handled this situation? The
tuple.hpp is from theirs repo, but I didn't manage to investigate how did
they do it.


I sent the question to PyOgre main developer. When the answer will be
available, I will publish it here.


Quite some time has past, thats a pity that there's no response.

So if there are such problems with automatic boost::tuples conversion, 
maybe it's possible to write some converters by hand?


For example for this tuple:
boost::tuple

Let's say just to read the values from the tuple. I've got some 
functions inserting the values and I just need to read them.



Best regards
--
Maciek Sitarz
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


Re: [C++-sig] Problems with boost tuples to python conversion

2010-04-28 Thread Roman Yakovenko
On Thu, Apr 29, 2010 at 2:24 AM, Maciej Sitarz  wrote:
> On 28.03.2010 11:53, Roman Yakovenko wrote:
>>
>> On Sun, Mar 28, 2010 at 4:53 AM, Maciej Sitarz  >
>> So that would be a big problem, because that's a C++ API for a library
>> which
>>>
>>> isn't developed by me.
>>> Maybe you know how the pyogre developers handled this situation? The
>>> tuple.hpp is from theirs repo, but I didn't manage to investigate how did
>>> they do it.
>>
>> I sent the question to PyOgre main developer. When the answer will be
>> available, I will publish it here.
>
> Quite some time has past, thats a pity that there's no response.

Agree

> So if there are such problems with automatic boost::tuples conversion, maybe
> it's possible to write some converters by hand?
>
> For example for this tuple:
> boost::tuple
>
> Let's say just to read the values from the tuple. I've got some functions
> inserting the values and I just need to read them.

I did it some time ago:
http://language-binding.net/pyplusplus/troubleshooting_guide/automatic_conversion/automatic_conversion.html
. The source code is available under "Download" section.

HTH


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig