linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #00252
[Bug 481833] Re: MacPorts boost lib not detected on OS X
Sorry, but you are wrong in several points. XCode GCC is used to build/compile _ports_. Not
MacPorts itself. When you install MacPorts, it will simply copy it's pre-built binary files (port
executable most importantly) into appropriate locations (/opt/local tree). No GCC needed for
that.
Check:
http://distfiles.macports.org/MacPorts/MacPorts-1.8.1-10.6-SnowLeopard.dmg
Actually, you can also build MacPorts from source and naturally you'll need XCode for that.
I reckon most users won't bother building it from source though, when there is a plain installer.
Then, when you install ports, you do not need MacPorts GCC. I never tried to install it, and it's
not present by default, yet, I can install any ports without problems, and each port is built locally
from source. Since there is no other GCC on my machine than XCode one, it's the one being
used.
Could be that some ports have special requirements, but please don't form the general idea
around a few exceptions.
MacPorts installs everything under /opt/local because MacPorts is not part of the operating system. You may
even build packages which are already present in base OS install (but with older version f.e.) and
overwriting system parts could be fatal, but for sure not very clean thing to do. Not to mention
there exist other "ports" system for OS X, and these might also collide if they'd use system locations.
So they are installed to a separate, non-system place.
XCode comes with 4.0.x and 4.2.x (both) GCC version since Leopard, where 4.0.x was
the default in Leopard, and 4.2.1 is default with new XCode which came out around
Snow Leopard.
--
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