[C++-sig] How to configure makefile for different build platforms

Wichert Akkerman wichert at wiggy.net
Thu Oct 6 14:59:45 CEST 2011


On 10/06/2011 02:55 PM, David Aldrich wrote:
>> On Ubuntu you can call pkg-config to figure out the right compiler and linker
>> options for both Boost and Python. I would expect CentOS to support that as
>> well.
>
> Hi Wichert
>
> Thanks for your suggestion. However, on my Ubuntu system:
>
> pkg-config --list-all
>
> lists neither python-dev not libboost-all-dev
>
> which are what my makefile needs to reference.

pkg-config does not use Debian packages names. Try using "python" for 
the current standard python 2 version, or pythonX.Y for specific 
versions. Boost appears to be installed in a standard location, so 
doesn't need any special compiler or linker options.

Wichert.




More information about the Cplusplus-sig mailing list