On Nov 21, 2008, at 9:20 AM, Greg Landrum wrote:
The Q3 release (and current svn version, of course) do build (and
work!) on MacOS.

I've compiled it on my 10.4 machine but it required some changes that Greg put into svn and which aren't in the Q3 release. We had that discussion by private email, but it should probably have been done on- list. There are still two things which need to be done to compile from svn on my box:

1) I edited Jamroot to point to my numpy include directory.

was:

<toolset>darwin:<include>/System/Library/Frameworks/ Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include

changed to:

<toolset>darwin:<include>/Library/Frameworks/Python.framework/ Versions/2.5/lib/python2.5/site-packages/numpy/core/include

2) 10.4 uses an old version of yacc (v1.28 from 1999!), which for some reason Boost doesn't know how to handle. Greg's looking in to how to fix this automatically, but another solution might be to assume that the number of people compiling with 10.4 is dwindling and not worth worrying about.


The problem occurs when converting the yacc grammars for SMILES and SMARTS. Here's a diagnostic error message:

GraphMol/SmilesParse/smiles.ll:30:26: error: smiles.tab.hpp: No such file or directory
GraphMol/SmilesParse/smiles.ll: In function 'int yysmiles_lex()':
GraphMol/SmilesParse/smiles.ll:44: error: 'CHI_CLASS_TOKEN' was not declared in this scope GraphMol/SmilesParse/smiles.ll:46: error: 'AT_TOKEN' was not declared in this scope

The problem is the created output file is "smiles.tab.cpp.h" instead of "smiles.tab.hpp"

[josiah:~/ftps/RDKit_Q32008_1/Code] dalke% find . -name 'smiles.tab*'
./GraphMol/SmilesParse/bin/darwin/release/macosx-version-10.4/ threading-multi/smiles.tab.cpp ./GraphMol/SmilesParse/bin/darwin/release/macosx-version-10.4/ threading-multi/smiles.tab.cpp.h ./GraphMol/SmilesParse/bin/darwin/release/macosx-version-10.4/ threading-multi/smiles.tab.o

so it looks like the output was ".cpp.h" instead of ".hpp". I manually copied it to the ".hpp" form and it seems to have worked - I ended up with problems with smarts.tab.hpp instead:


That is, I renamed the file, recompiled, and ended up with similar problems with the SMARTS grammar. I then renamed "smarts.tab.cpp.h" to "smarts.tab.hpp" and recompiled. That gets me to completion.


                                Andrew
                                [email protected]



Reply via email to