| Newsgroups |
gmane.comp.python.visualpython.user |
| Message-ID |
<[email protected]> |
Hello Steve, Tom,
find /usr/local/lib -name *boost_python* -ls reveals that there is a .dylib=
and .a versions, symlinked to /usr/local/lib,
/usr/local/lib/libboost_python-mt.a -> ../Cellar/boost/1.52.0/lib/libboost_=
python-mt.a
/usr/local/lib/libboost_python-mt.dylib -> ../Cellar/boost/1.52.0/lib/libbo=
ost_python-mt.dylib
So Tom suggestion was right, the libraries have a "-mt" appended.
I changed line 135 of setup.py to read,
libraries =3D ['boost_python-mt','boost_signals-mt'] =
I re-built. This time the build finishes successfully, but there is error w=
hen import visual in python:
----------------------------------
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions=
/2.7/lib/python2.7/site-packages/VPython-6.02-py2.7-macosx-10.8-x86_64.egg/=
visual/__init__.py", line 33, in <module>
from visual.visual_all import * # this statement not included in vis/__=
init__.py
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions=
/2.7/lib/python2.7/site-packages/VPython-6.02-py2.7-macosx-10.8-x86_64.egg/=
visual/visual_all.py", line 10, in <module>
from visual_common.cvisual import vector
ImportError: dlopen(/usr/local/Cellar/python/2.7.3/Frameworks/Python.framew=
ork/Versions/2.7/lib/python2.7/site-packages/VPython-6.02-py2.7-macosx-10.8=
-x86_64.egg/visual_common/cvisual.so, 2): Symbol not found: __ZN5boost6pyth=
on7objects15function_objectERKNS1_11py_functionERKSt4pairIPKNS0_6detail7key=
wordES9_E
Referenced from: /usr/local/Cellar/python/2.7.3/Frameworks/Python.framewo=
rk/Versions/2.7/lib/python2.7/site-packages/VPython-6.02-py2.7-macosx-10.8-=
x86_64.egg/visual_common/cvisual.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7=
/lib/python2.7/site-packages/VPython-6.02-py2.7-macosx-10.8-x86_64.egg/visu=
al_common/cvisual.so
---------------------------------
I think the function named "__ZN5boost6python7objects15function_objectERKNS=
1_11py_functionERKSt4pairIPKNS0_6detail7keywordES9_E" is a hint that header=
s didn't get processed or some obscure problem with building against a dyna=
mic library (the .dylib) files.
Any suggestions? =
The includes directory has the following structure,
/usr/local/include/boost/<all boost files and folders>
Should I specify the boost subdirectory as,
[build_ext]
include-dirs=3D/usr/local/include/boost <---- ?
library-dirs=3D/usr/local/lib
Should I only link against the static library (is that what the .a files ar=
e?). If so, how to do that?
Best wishes,
Dan
PS. I should probably say, this is a fresh install of 10.8.2, with a latest=
Xcode (4.6), and latest homebrew (0.9.4, completely up-to-date).
On 13 Feb 2013, at 21:03, Steve Spicklemire <steve-/3wgw/[email protected]> wrote:
> Hi Dan,
> =
> What version of boost did you build?
> =
> "Library not found" probably means /usr/local/lib is not the right place.=
;-)
> =
> Can you try something like:
> =
> find /usr/local/lib -name libboost_python.a -ls
> =
> to see where it's hiding, and then change setup.cfg to point to:
> =
> library-dirs=3D/path/to/where/it/lives
> =
> -steve
> =
> On Feb 13, 2013, at 3:08 AM, "[email protected]" <[email protected]=
> wrote:
> =
>> Hello everyone,
>> =
>> Continuing from my earlier question, I have now installed all dependanci=
es using a combination of homebrew (http://mxcl.github.com/homebrew), pip a=
nd good-old python setup.py installing=85
>> =
>> Things seem to build fine, but I have a linking problem with boost. My b=
oost includes and library files live in the usual places /usr/local/include=
and /usr/local/lib (well symlinks managed by homebrew).
>> =
>> Any ideas on how to tell the install script the location of boost?
>> =
>> I have edited the site.cfg to read,
>> =
>> [build_ext]
>> include-dirs=3D/usr/local/include
>> library-dirs=3D/usr/local/lib
>> =
>> The list lines of the error reads,
>> =
>> ---
>> -L/usr/local/lib -lboost_python -lboost_signals -o build/lib.macosx-10.8=
-x86_64-2.7/visual_common/cvisual.so
>> ld: library not found for -lboost_python
>> clang: error: linker command failed with exit code 1 (use -v to see invo=
cation)
>> error: command 'c++' failed with exit status 1
>> ---
>> =
>> Any ideas?
>> =
>> Best wishes,
>> =
>> Dan
>> =
>> =
>> =
>> =
>> =
>> On 13 Feb 2013, at 14:39, Bruce Sherwood <[email protected]> wrote:
>> =
>>> Be sure to read the file OSX.txt in the tarball, which includes instruc=
tions on how to build the Boost libraries that you'll need.
>>> =
>>> Bruce Sherwood
>>> =
>>> =
>>> On Tue, Feb 12, 2013 at 3:56 PM, Scott Harris <[email protected]=
om> wrote:
>>> I'll give that a try. I do have vPython 6 running now with an "official=
" 2.7.3 python. =
>>> =
>>> I appreciate your efforts quite a bit! I've used VTK and wxPython heavi=
ly in the last, and it's great to be able ti integrate wx and VPython! =
>>> =
>>> -Scott
>>> =
>>> Scott Harris
>>> scott-KOQ3cyhuqtfta4EC/59zMFaTQe2KTcn/@public.gmane.org
>>> 37 Doe Trail POB 1278
>>> Nederland CO 80466-1278
>>> 720/231-6533 (cell)
>>> 303/258-0142 (office)
>>> =
>>> On Feb 12, 2013, at 1:53 PM, Bruce Sherwood <[email protected]> w=
rote:
>>> =
>>>> (I should mention that Adam Hausknecht's problem had nothing to do wit=
h VPython. The Tk package is broken on the Mac; for a fix, see http://www.p=
ython.org/getit/mac/tcltk/.)
>>>> =
>>>> You could try building from source, because Steve Spicklemire has made=
this quite easy to do, except that you may have difficulties dealing with =
installing all the dependencies (wxPython 2.9.4, numpy, FontTools, ttfquery=
, Polygon). Get the source "tarball" from the Linux download page at vpytho=
n.org, unpack, and in a terminal cd to the source code, then execute "sudo =
python2.7 setup.py install".
>>>> =
>>>> Bruce Sherwood
>>>> =
>>>> =
>>>> On Tue, Feb 12, 2013 at 1:05 PM, Scott Harris <scott@flatironresearch.=
com> wrote:
>>>> I too use EPD. On my machine, the VPython installer doesn't detect EPD=
and won't install. I'm on OS X 10.8.2
>>>> =
>>>> This is my python:
>>>> =
>>>> Enthought Python Distribution (EPD) free version -- www.enthought.com
>>>> Version: 7.3-2 (32-bit)
>>>> (type 'upgrade' or see www.enthought.com/epd/upgrade to get the full E=
PD)
>>>> =
>>>> Python 2.7.3 |EPD_free 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34=
) =
>>>> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>>>> Type "credits", "demo" or "enthought" for more information.
>>>> =
>>>> =
>>>> Getting VPython to work with EPD would be great.
>>>> =
>>>> Thanks,
>>>> -Scott
>>>> Scott Harris
>>>> scott-KOQ3cyhuqtfta4EC/59zMFaTQe2KTcn/@public.gmane.org
>>>> 37 Doe Trail POB 1278
>>>> Nederland CO 80466-1278
>>>> 720/231-6533 (cell)
>>>> 303/258-0142 (office)
>>>> =
>>>> =
>>>> ----------------------------------------------------------------------=
--------
>>>> Free Next-Gen Firewall Hardware Offer
>>>> Buy your Sophos next-gen firewall before the end March 2013 =
>>>> and get the hardware for free! Learn more.
>>>> http://p.sf.net/sfu/sophos-d2d-feb____________________________________=
___________
>>>> Visualpython-users mailing list
>>>> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>>> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>>> =
>>> =
>>> -----------------------------------------------------------------------=
-------
>>> Free Next-Gen Firewall Hardware Offer
>>> Buy your Sophos next-gen firewall before the end March 2013 =
>>> and get the hardware for free! Learn more.
>>> http://p.sf.net/sfu/sophos-d2d-feb_____________________________________=
__________
>>> Visualpython-users mailing list
>>> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>> =
>> ------------------------------------------------------------------------=
------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013 =
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb______________________________________=
_________
>> Visualpython-users mailing list
>> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/visualpython-users
> =
---------------------------------------------------------------------------=
---
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 =
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb