Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build success with Mac OS X #32

Closed
prb opened this issue May 12, 2015 · 4 comments
Closed

Build success with Mac OS X #32

prb opened this issue May 12, 2015 · 4 comments

Comments

@prb
Copy link

prb commented May 12, 2015

Just wanted to share a build success with other Mac OS users:

  • Install Boost via MacPorts.
  • Set up Python virtualenv.
  • Edit setup.py, replacing boost_random with boost_random-mt throughout.
  • Build with:
BOOST_ROOT=/opt/local CPLUS_INCLUDE_PATH=/opt/local/include python setup.py build
BOOST_ROOT=/opt/local CPLUS_INCLUDE_PATH=/opt/local/include python setup.py install
@gregory-marton
Copy link
Contributor

Is there a bug or feature request here?

@prb
Copy link
Author

prb commented Jul 22, 2015

There are several, I think, but all focused on documentation. You could regard the above success story as a proposed patch for documentation. It is also the case that I only went that route because none of the examples work with the docker image.

@riastradh-probcomp
Copy link
Contributor

The boost_random issue is basically a bug in MacPorts, that it does not install the non-mt versions of the boost libraries, not even in the form of symlinks to the -mt versions.

Everywhere else, the library is in fact boost_random, and since (a) Crosscat is not multithreaded, and (b) the -mt versions of libraries are optional things to build in boost, using boost_random instead of boost_random-mt is correct.

We could just use the -mt variant on OS X, under the assumption that probably most boost builds for OS X include multithreading support, although that would be overkill for, e.g., Homebrew-installed boost, which if I recall correctly builds both variants.

@riastradh-probcomp
Copy link
Contributor

No longer relevant because we need no longer link against boost (although we still use boost header files), as of ad8adbb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants