From: Hugh F. <hug...@an...> - 2008-05-06 08:49:49
|
I'm just starting to fill in the stubs for my native Mac OS Carbon version of VPython, which in turn seems to be triggering previously hidden Boost errors. Things like bool check() const; in boost/python/extract.hpp are being reported as errors by Xcode 'doesn't declare anything' I downloaded the Boost 1_34_1 sources and bjam, did a bjam build and then bjam install. If that wasn't enough, I have absolutely no idea how to proceed. Can anybody point me to either a nice prebuilt installer for Boost on MacOS, or at least some detailed instructions on pitfalls and how to avoid them? -- Hugh Fisher DCS, ANU |
From: Steve S. <st...@sp...> - 2008-05-06 09:04:28
|
Hi Hugh, I haven't had a chance yet to work on the vpython/boost stuff, but I did get boost to build on Mac OS. Finals are almost over, so I hope to jump in with you soon! Can you compile the example program here: http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix- variants.html It worked for me with the following command line: c++ -I /usr/local/include/boost-1_34_1 example.cpp -o example good luck! -steve On May 6, 2008, at 4:49 AM, Hugh Fisher wrote: > > I'm just starting to fill in the stubs for my native Mac > OS Carbon version of VPython, which in turn seems to be > triggering previously hidden Boost errors. Things like > bool check() const; > in boost/python/extract.hpp are being reported as errors > by Xcode 'doesn't declare anything' > > I downloaded the Boost 1_34_1 sources and bjam, did a > bjam build and then bjam install. If that wasn't enough, > I have absolutely no idea how to proceed. > > Can anybody point me to either a nice prebuilt installer > for Boost on MacOS, or at least some detailed instructions > on pitfalls and how to avoid them? > > -- > Hugh Fisher > DCS, ANU > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http:// > java.sun.com/javaone > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Martin C. <cos...@wa...> - 2008-05-06 12:30:28
|
Hugh Fisher wrote: > I'm just starting to fill in the stubs for my native Mac > OS Carbon version of VPython, which in turn seems to be > triggering previously hidden Boost errors. Things like > bool check() const; > in boost/python/extract.hpp are being reported as errors > by Xcode 'doesn't declare anything' > > I downloaded the Boost 1_34_1 sources and bjam, did a > bjam build and then bjam install. If that wasn't enough, > I have absolutely no idea how to proceed. > > Can anybody point me to either a nice prebuilt installer > for Boost on MacOS, or at least some detailed instructions > on pitfalls and how to avoid them? You can install boost (versions between 1.32 to 1.35) via Fink. Boost1.34 is used for building vpython (the released X11 version) with Fink. -- Martin |
From: Bruce S. <Bru...@nc...> - 2008-05-06 14:07:49
|
Note in the CVS file MAC-OSX.txt (which is somewhat out of date) these comments, which may or may not be relevant to your problem: Before making a change to src/Makefile.in, I got a message about possible mismatch of versions, as though when I build against /sw/bin/python2.5 and then run /sw/bin/python2.5 the system thinks these are different pythons. Martin Costabel commented: "I am getting this, too, when using the dynamic boost-python library, but not with the static libboost_python-mt.a. This is certainly a bug with the libboost_python-mt.dylib, but I haven't yet found a combination of build flags to build it correctly, in particular in a way that would also work on OSX 10.5." Following his suggestion, I put Mac-specific code into src/Makefile.in to link to these other libraries. But then I got this error message in the link phase of the make: /usr/bin/ld: table of contents for archive: /sw/lib/libboost_python-mt.a is out of date; rerun ranlib(1) (can't load from it) So I executed ranlib /sw/lib/libboost_python-mt.a, redid the make, executed make install, and it worked. Bruce Hugh Fisher wrote: > I'm just starting to fill in the stubs for my native Mac > OS Carbon version of VPython, which in turn seems to be > triggering previously hidden Boost errors. Things like > bool check() const; > in boost/python/extract.hpp are being reported as errors > by Xcode 'doesn't declare anything' > > I downloaded the Boost 1_34_1 sources and bjam, did a > bjam build and then bjam install. If that wasn't enough, > I have absolutely no idea how to proceed. > > Can anybody point me to either a nice prebuilt installer > for Boost on MacOS, or at least some detailed instructions > on pitfalls and how to avoid them? > |
From: Martin C. <cos...@wa...> - 2008-05-06 14:49:01
|
Bruce Sherwood wrote: > Note in the CVS file MAC-OSX.txt (which is somewhat out of date) these > comments, which may or may not be relevant to your problem: > > Before making a change to src/Makefile.in, I got a message about > possible mismatch of versions, > as though when I build against /sw/bin/python2.5 and then run > /sw/bin/python2.5 the system thinks > these are different pythons. Martin Costabel commented: > > "I am getting this, too, when using the dynamic boost-python library, > but not with the static > libboost_python-mt.a. This is certainly a bug with the > libboost_python-mt.dylib, but I haven't > yet found a combination of build flags to build it correctly, in > particular in a way that would > also work on OSX 10.5." In the meantime, I found the right flags. The current Fink boost1.34 (or 1.35) libraries work for me with vpython (3.2.9 or also 4beta24), using the dynamic library. -- Martin |
From: Steve S. <st...@sp...> - 2008-05-06 15:13:29
|
Hi Martin, Hugh, Bruce, etc... Forgive me if I'm not thinking about this right... but for a new native/carbon build I'd think we'd want to steer clear of fink as much as possible. I got the impression we were trying to make a completely stand-alone vpython that doesn't require any fink, not even for libraries/etc... I got boost to build OK in /usr/local/ with fink "turned off". I guess the next step is to try to get some of vpython to compile and link against those header files and libraries? -steve On May 6, 2008, at 10:47 AM, Martin Costabel wrote: > Bruce Sherwood wrote: >> Note in the CVS file MAC-OSX.txt (which is somewhat out of date) >> these >> comments, which may or may not be relevant to your problem: >> >> Before making a change to src/Makefile.in, I got a message about >> possible mismatch of versions, >> as though when I build against /sw/bin/python2.5 and then run >> /sw/bin/python2.5 the system thinks >> these are different pythons. Martin Costabel commented: >> >> "I am getting this, too, when using the dynamic boost-python library, >> but not with the static >> libboost_python-mt.a. This is certainly a bug with the >> libboost_python-mt.dylib, but I haven't >> yet found a combination of build flags to build it correctly, in >> particular in a way that would >> also work on OSX 10.5." > > In the meantime, I found the right flags. The current Fink > boost1.34 (or > 1.35) libraries work for me with vpython (3.2.9 or also 4beta24), > using > the dynamic library. > > -- > Martin > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http:// > java.sun.com/javaone > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Martin C. <cos...@wa...> - 2008-05-06 18:33:26
|
Bruce Sherwood wrote: > We can use fink to get packages we need for BUILDING Visual, as long as we can incorporate static libraries so that a user doesn't need fink. You can always repeat manually what Fink does. Most of a Fink package description is just a short documentation of the steps necessary to get the sources, patch them and build and install the package. You can use the experience and information contained in the package description to build things yourself. Of course, this goes both ways: Once you manage to create an aqua version of vpython, I will probably try to make a Fink package of it, because I consider Fink also as a convenient all-purpose package manager. I consider typing a single command "fink install visual-py25" simpler than reading and following any instructions to download and install a package, even if it exists in the form of a dmg with precompiled binaries in it. -- Martin |
From: Steve S. <st...@sp...> - 2008-05-06 20:50:22
|
I'm sure that would work... however, I've had serious trouble with fink in the past where I didn't *realize* it was being used to resolve various dependencies and then someone without fink could not run an app I had built due to shared libraries being linked in without my knowledge! I guess I know just enough to be dangerous.. ;-). Anyway.. I guess I'd say we might use fink to sort out how to build something (e.g., boost) but it would be best, in the interest of building a truly stand-alone library, to avoid building with fink enabled (i.e., after running /sw/bin/init.sh). Of course.. all IMVHO. ;-) -steve On May 6, 2008, at 12:10 PM, Bruce Sherwood wrote: > We can use fink to get packages we need for BUILDING Visual, as > long as we can incorporate static libraries so that a user doesn't > need fink. > > Bruce Sherwood > > Sent via BlackBerry by AT&T > > -----Original Message----- > From: Steve Spicklemire <st...@sp...> > > Date: Tue, 6 May 2008 11:13:03 > To:Martin Costabel <cos...@wa...> > Cc:Steve Spicklemire <st...@sp...>, Bruce Sherwood > <Bru...@nc...>, Hugh Fisher > <hug...@an...>, visualpython- > us...@li... > Subject: Re: [Visualpython-users] Help with Boost on Mac OS > > > Hi Martin, Hugh, Bruce, etc... > > Forgive me if I'm not thinking about this right... but for a new > native/carbon build I'd think we'd want to steer clear of fink as > much as possible. I got the impression we were trying to make a > completely stand-alone vpython that doesn't require any fink, not > even for libraries/etc... > > I got boost to build OK in /usr/local/ with fink "turned off". I > guess the next step is to try to get some of vpython to compile and > link against those header files and libraries? > > -steve > > On May 6, 2008, at 10:47 AM, Martin Costabel wrote: > >> Bruce Sherwood wrote: >>> Note in the CVS file MAC-OSX.txt (which is somewhat out of date) >>> these >>> comments, which may or may not be relevant to your problem: >>> >>> Before making a change to src/Makefile.in, I got a message about >>> possible mismatch of versions, >>> as though when I build against /sw/bin/python2.5 and then run >>> /sw/bin/python2.5 the system thinks >>> these are different pythons. Martin Costabel commented: >>> >>> "I am getting this, too, when using the dynamic boost-python >>> library, >>> but not with the static >>> libboost_python-mt.a. This is certainly a bug with the >>> libboost_python-mt.dylib, but I haven't >>> yet found a combination of build flags to build it correctly, in >>> particular in a way that would >>> also work on OSX 10.5." >> >> In the meantime, I found the right flags. The current Fink >> boost1.34 (or >> 1.35) libraries work for me with vpython (3.2.9 or also 4beta24), >> using >> the dynamic library. >> >> -- >> Martin >> >> >> --------------------------------------------------------------------- >> - >> --- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save >> $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http:// >> java.sun.com/javaone >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users >> > > |