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

Compilation fails on Mac OS X #5

Closed
zegervdv opened this issue Jun 8, 2015 · 6 comments
Closed

Compilation fails on Mac OS X #5

zegervdv opened this issue Jun 8, 2015 · 6 comments

Comments

@zegervdv
Copy link

zegervdv commented Jun 8, 2015

When trying to compile using the install.sh script, it fails with following output:
https://gist.github.com/zegervdv/66ac5b35cc71dd8f0e68

I have installed boost via homebrew, am I still missing some dependency?
Mac OS X 10.10.3

@nixprime
Copy link
Owner

nixprime commented Jun 9, 2015

Can you pull and try again (after 97dac8c)?

@zegervdv
Copy link
Author

zegervdv commented Jun 9, 2015

It still fails with the same error.

@nixprime
Copy link
Owner

I think you're suffering from the inverse of http://stackoverflow.com/questions/19912862/compiling-boostprogram-options-on-mac-os-x-with-g-4-8-mac-ports: your Boost libraries were compiled with GCC, but the compiler selected by CMake is Clang. How did you install Boost? Can you provide the output of otool -L /usr/local/lib/libboost_program_options-mt.dylib?

@zegervdv
Copy link
Author

→ otool -L /usr/local/lib/libboost_program_options-mt.dylib
/usr/local/lib/libboost_program_options-mt.dylib:
    /usr/local/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)

I've installed Boost with Homebrew from bottle. Maybe I should try to compile it?

@nixprime
Copy link
Owner

Actually, otool indicates that Boost was linked to libc++, which should only be the case for Clang... I wonder if you have another copy of Boost installed. Can you cd ~/.vim/plugged/cpsm/build and run cmake -DBoost_DEBUG=ON ..?

@zegervdv
Copy link
Author

This is the output:
https://gist.github.com/zegervdv/c2c891b006a882ea2d5a

It searches for boost libraries in MATLAB first. I don't use MATLAB anymore, so I removed it, which solved the problem.
Now I have the same issue as in #3.

Thank you for your help.

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

2 participants