I've built RDKit_Q32009_1 on Mac OS X 10.6 using boost_1_41_0 .

I did this using the bjam installed via MacPorts, which has a default toolset 
of "gcc" and which seemed to cause some difficulty. My solution was to tell it 
to use the "darwin" toolset.


Here are the differences vs. what's described at
http://code.google.com/p/rdkit/wiki/BuildingOnMacOs

numpy - I installed via easy_install
boost - I unpackaged the source into /usr/local/boost_1_41_0/
boost numeric bindings - I copied the files into the correct
 locations under /usr/local/boost_1_41_10 

building boost - I used the new Boost installation, described at
http://www.boost.org/doc/libs/1_41_0/more/getting_started/unix-variants.html

They described the build command as
./bootstrap.sh --prefix=path/to/installation/prefix

Since I installed to /usr/local (which is the default path), I did
./bootstrap.sh

Then
sudo bjam install

I had difficulties after running
  cd $RDBASE/Code; python CompleteJamroot.py; bjam
which turned out to be because I didn't set up all of my environment variables.

Here are the environments I've defined in my $HOME/.cshrc 
(BTW, why does RDKit use $BOOSTHOME instead of $BOOST_ROOT ?)

## RDKIT
setenv RDBASE /Users/dalke/ftps/RDKit_Q32009_1
setenv BOOSTHOME /usr/local/boost_1_41_0
setenv BOOST_BUILD_PATH $BOOSTHOME
set path=($path $RDBASE/bin)
setenv PYTHONPATH ${PYTHONPATH}:${RDBASE}
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${RDBASE}/bin

I did the bjam but ran into problems. I got the error message

ld: unknown option: -h 

This turned out to be because I didn't specify a toolset to bjam. The default 
is "gcc" for my bjam, but that might be because I installed bjam through 
MacPorts instead of installing it myself.

The error comes from how it builds a dynamic library using 

"g++"  ...  -Wl,-h  ...

where Apple's ld doesn't support the -h option. The solution is to use the 
"darwin" toolset instead of "gcc". I did that by adding "using darwin ;" to 
Code/Jamroot

[RDKit_Q32009_1/Code] dalke% head -5 Jamroot
import os ;
using darwin ;

local BOOSTHOME = [ os.environ BOOSTHOME ] ;
local RDBASE = [ os.environ RDBASE ] ;
[RDKit_Q32009_1/Code] dalke% 

With that, I could build RDKit and import it from Python.

                                Andrew
                                [email protected]



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to