linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #00248
[Bug 481833] Re: MacPorts boost lib not detected on OS X
I don't agree that proper way is to use MacPorts own GCC builds.
Not even MacPorts requires you to install its own GCC build in order to install/install any MacPorts packages.
It uses XCode GCC happily. MacPorts clearly says on its install page that XCode is one of its requirements:
http://www.macports.org/install.php
Also notice that XCode GCC (and now clang) is the officially supported C
compiler on OS X platform, so any software claiming OS X compatibility,
should be able to build with it.
Even LinuxDC++ builds/works this way perfectly, and we're using MacPorts
packages with XCode GCC in other projects without a single hitch, all
you have to do.
Also note you can freely mix libs/objects created by different builds of GCC (as long as the
CPU architectures match).
The only difference between XCode GCC and MacPorts GCC, is that the
latter "knows" about MacPorts header locations, so you don't have to
configure them manually. Although it's unclear for me why only boost lib
headers are missed this way.
To put it shortly: The point of MacPorts is not to supply an alternate
universe with the whole development toolchain, but rather to nicely
plugin into the default OS X development infrastructure (which is
XCode).
--
MacPorts boost lib not detected on OS X
https://bugs.launchpad.net/bugs/481833
You received this bug notification because you are a member of LinuxDC++
Team, which is subscribed to LinuxDC++.
Status in Linux DC++: Fix Committed
Bug description:
Hi,
Tested with latest bzr repository, after installing all dependencies via MacPorts 1.8.1,
this error remains when launching build with scons:
---
...
Checking for C++ header file boost/version.hpp... no
boost not found.
Note: You might have the lib but not the headers
---
boost headers *are* installed in /opt/local/include/boost/*, but it's not picked.
(all other MacPorts dependencies are recognized)
If I comment out the check in SConstruct and add -I/opt/local/include to CXXFLAGS,
it builds correctly.
References