On 2011-10-5 18:12, David Aldrich wrote:
Hi
I have a C++ application that uses Boost.Python. We build it on Centos
5.3, with Python 2.4 and Boost 1.34.
Our makefile uses explicit paths to find Python and Boost. For the
headers we use:
PYTHON = /usr/include/python2.4
BOOST_INC = /usr/include/boost
INCPATH=$(PYTHON)
INCPATH+=$(BOOST_INC)
CXXFLAGS += $(patsubst %,-I%,$(INCPATH))
$(CXX) -c $(CXXFLAGS) sourcefile etc
Now I need to support building on Ubuntu 10.04 which has Python 2.6, not
2.4, installed.
Please can someone suggest how I can modify the makefile to conveniently
handle the different Python paths according to the build platform.
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.
Wichert.
--
Wichert Akkerman <wich...@wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig