From: <boy...@gm...> - 2013-02-13 13:19:08
|
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/libboost_python-mt.dylib So Tom suggestion was right, the libraries have a "-mt" appended. I changed line 135 of setup.py to read, libraries = ['boost_python-mt','boost_signals-mt'] I re-built. This time the build finishes successfully, but there is error when 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.framework/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: __ZN5boost6python7objects15function_objectERKNS1_11py_functionERKSt4pairIPKNS0_6detail7keywordES9_E Referenced from: /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_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/visual_common/cvisual.so --------------------------------- I think the function named "__ZN5boost6python7objects15function_objectERKNS1_11py_functionERKSt4pairIPKNS0_6detail7keywordES9_E" is a hint that headers didn't get processed or some obscure problem with building against a dynamic 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=/usr/local/include/boost <---- ? library-dirs=/usr/local/lib Should I only link against the static library (is that what the .a files are?). 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 <st...@sp...> 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=/path/to/where/it/lives > > -steve > > On Feb 13, 2013, at 3:08 AM, "boy...@gm..." <boy...@gm...> wrote: > >> Hello everyone, >> >> Continuing from my earlier question, I have now installed all dependancies using a combination of homebrew (http://mxcl.github.com/homebrew), pip and good-old python setup.py installing… >> >> Things seem to build fine, but I have a linking problem with boost. My boost 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=/usr/local/include >> library-dirs=/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 invocation) >> error: command 'c++' failed with exit status 1 >> --- >> >> Any ideas? >> >> Best wishes, >> >> Dan >> >> >> >> >> >> On 13 Feb 2013, at 14:39, Bruce Sherwood <Bru...@nc...> wrote: >> >>> Be sure to read the file OSX.txt in the tarball, which includes instructions on how to build the Boost libraries that you'll need. >>> >>> Bruce Sherwood >>> >>> >>> On Tue, Feb 12, 2013 at 3:56 PM, Scott Harris <sc...@fl...> 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 heavily in the last, and it's great to be able ti integrate wx and VPython! >>> >>> -Scott >>> >>> Scott Harris >>> sc...@fl... >>> 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 <Bru...@nc...> wrote: >>> >>>> (I should mention that Adam Hausknecht's problem had nothing to do with VPython. The Tk package is broken on the Mac; for a fix, see http://www.python.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 vpython.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 <sc...@fl...> 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 EPD) >>>> >>>> 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 >>>> sc...@fl... >>>> 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 >>>> Vis...@li... >>>> 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 >>> Vis...@li... >>> 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 >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users > |