← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 481833] Re: MacPorts boost lib not detected on OS X

 

The instructions given above are *not* a good way to compile LinuxDC++
on Mac OS X, because it mixes libraries and compilers from different
packaging systems (XCode vs MacPorts).

If you want to use MacPorts' libboost to compile linuxdcpp, then the
proper way to do this is to make a MacPorts port of LinuxDC++, either by
adding it to the official macports repository, or running your own
MacPorts repository.

I went for the 2nd option since I have no time to maintain a MacPorts
port myself - I don't use a Mac and only did this as a favour for a few
friends that needed a Mac ADC client. However, if someone is willing, I
can supply the MacPorts metafiles I created, and you can file a request
to add it to the official MacPorts repository, and help maintain it.

-- 
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