Login  Register

Re: Mac OS X homebrewed Boost - Boost development files not found

Posted by Luigi Ballabio on Oct 28, 2016; 7:28am
URL: http://quantlib.414.s1.nabble.com/Mac-OS-X-homebrewed-Boost-Boost-development-files-not-found-tp17828p17830.html

May you check config.log? It should show you the call to the compiler that caused the error.  The passed flags should contain '-I /usr/local/include' as well as the options you passed in CXXFLAGS.

Luigi

On Fri, Oct 28, 2016 at 2:34 AM Oleg Sokolinskiy <[hidden email]> wrote:
Hello,

I have installed Boost using “brew install boost” to /usr/local/

The /usr/local/include has a symbolic link: boost->../Cellar/boost/1.62.0/include/boost
and /usr/local/lib has lots of libboost_* files.
So, all looks well…

However,
./configure --with-boost-include=/usr/local/include/ --with-boost-lib=/usr/local/lib/ --prefix=/usr/local/ CXXFLAGS='-02 -stdlib=libstdc++ -mmacosx-version-min=10.6' LDFLAGS='-stdlib=libstdc++ -mmacosx-version-min=10.6’

THIS RESULTS IN THE ERROR:  “Boost development files not found”

I also tried (out of desperation, really):
./configure --with-boost-include=/usr/local/include/boost/ --with-boost-lib=/usr/local/lib/ --prefix=/usr/local/ CXXFLAGS='-02 -stdlib=libstdc++ -mmacosx-version-min=10.6' LDFLAGS='-stdlib=libstdc++ -mmacosx-version-min=10.6’

and also, going directly to the “Cellar” where Homebrew puts Boost:

./configure --with-boost-include=/usr/local/Cellar/boost/1.62.0/include/ --with-boost-lib=/usr/local/lib/Cellar/boost/1.62.0/lib/ --prefix=/usr/local/Cellar/boost/1.62.0/ CXXFLAGS='-02 -stdlib=libstdc++ -mmacosx-version-min=10.6' LDFLAGS='-stdlib=libstdc++ -mmacosx-version-min=10.6’

I also tried omitting  --prefix and also adding /boost/ to it… Nothing works. Am I missing something obvious?

My OS is OS X Yosemite.

Thank you very much in advance for your help!
Best wishes,
Oleg
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users