[C++-sig] OS X boost.python tutorial question
grobinson at goombah.com
Fri Jun 24 18:23:55 CEST 2005
Some of this is a repeat of an early question, but I really need an answer if
one is available to be had. We want to use boost.py in our product, Goombah
(http://www.python.com). We have it working on Windows, and have C code working
in the product that uses boost.python on Windows. But we need it to work on OS X
too if we're going to use it, since Goombah is a cross-platform product.
I have built boost.python successfully (at least it gives no "failure" or
"skipped" messages). I did it by going to the root boost directory and entering:
"-sPYTHON_VERSION=2.3" "-sTOOLS=darwin" "-sBUILD=debug release"
I then went to the ../examples/tutorial folder and ran bjam with the same
arguments, and that too seemed to complete successfully.
hello.so was created and was in the directory
However the tutorial text explicitly states that libboost_python.so will be
created too. No such file was created. I don't know whether the it's the
documentation that's in error or whether something didn't work right in the
build. Can someone tell me which is the case?
When I enter interactive python and try to import the hello module, I get:
import hello Traceback (most recent call last): File "<stdin>", line 1, in ?
ImportError: Failure linking new module:
-linkable-true/libboost_python.dylib: dyld: python can't open library:
-linkable-true/libboost_python.dylib (No such file or directory, errno = 2)
libboost_python.dylib was created, and is in the stated location (if ../../..
means ~/Desktop/boost_1_32_0/ on my machine). So I don't know why it's giving me
release/shared-linkable-true/libboost_python.dylib -rwxr-xr-x 1 root staff
1102392 24 Jun 09:53
If anyone can help me get the tutorial working I'd really appreciate it.
More information about the Cplusplus-sig