linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #00253
[Bug 481833] Re: MacPorts boost lib not detected on OS X
> Actually, you can also build MacPorts from source and naturally you'll need XCode for that.
This is the scenario I am talking about. Here, it's better ("more correct") to use MP gcc to compile MP packages from MP source, because then you make sure everything is self-contained in the MP system. Using XCode is mixing two toolchains and asking for disaster.
> I reckon most users won't bother building it from source though, when there is a plain installer.
As a MacPorts developer, you should build MP packages by making a Portfile for it, then using "port build" or whatever the command is. Any other way (such as using "gcc" directly) might work, but is essentially an improper hack.
> Could be that some ports have special requirements, but please don't form the general idea around a few exceptions.
This is the *rule*, not the exception. In any source-based packaging system, packages have a "build-depends" list of packages from the same packaging system, that are required to build the package. The build is done using the packaging system's own toolchain. Eg. dpkg-buildpackage for debian, port for MP.
> You may even build packages which are already present in base OS install
You should realise that this is "the smoking gun". MP needs its own version of the packages for its own build system, because it is a *self-contained packaging system*, like dpkg/apt. For example, in any debian system you can use gcc to compile a program, but this is not the "proper way" of creating a software package for debian (this is analogous to what you seem to be doing - installing MacPorts libraries then using gcc to compile another non-MacPorts software). Anyone who wants to do this should realise that they might need to add some extra flags or hacks for the compile to work.
--
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