an't be of more help :(
--Liam
From: Cplusplus-sig
[mailto:cplusplus-sig-bounces+herron=ellington@python.org] On Behalf Of
David Aldrich
Sent: Thursday, March 10, 2016 7:21 AM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] Trouble building boost with Visual Studio 2010
@python.org] On Behalf Of
David Aldrich
Sent: Wednesday, March 09, 2016 11:59 AM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] Trouble building boost with Visual Studio 2010
Ok, thanks. The console defaults to 3.5, which is the problem.
I'll see what I can do.
If you get this
to be your 32-bit version, I think it will work. Else, you can muck around with
the "jam" files to try to point it to the python version you want.
--Liam
From: Cplusplus-sig
[mailto:cplusplus-sig-bounces+herron=ellington@python.org] On Behalf Of
David Aldrich
Sen
on of boost and boost python.
Hope that helps.
--Liam
From: Cplusplus-sig
[mailto:cplusplus-sig-bounces+herron=ellington@python.org] On Behalf Of
David Aldrich
Sent: Wednesday, March 09, 2016 5:05 AM
To: Development of Python/C++ integration
Subject: [C++-sig] Trouble building boost with Visu
> Just a quick guess: is it possible that your "libpython34.dll" file is a
> 64-bit
> binary, when the command really requires it to be a 32-bit binary ?
>
> I'm unfortunately unable to answer your question, as the question seems more
> about the build system than Boost.Python itself.
> Therefore
Hi
I am trying to build Boost 1.60 with Visual Studio 2010 Professional on Windows
10.
I use the command:
b2 toolset=msvc-10.0 --with-python link=shared
and get the following error:
python34.lib(python34.dll) : fatal error LNK1112: module machine type 'x64'
conflicts with target machine type
Hi
Thanks for your reply.
> Does your main program link with boost_python?
> You didn't paste the link command of main, which would have been helpful
> here.
I'm sorry, while sanitizing the command for posting here, I obscured some
meaning. The way the link process works is that the library in
Hi
I have an application that uses Boost Python. It links and runs fine on Centos
5 systems but fails on an Ubuntu 14.04 LTS system.
The code that uses Boost Python is compiled using:
g++ -c -Wall -m64 -DPYTHON_ENABLE -I../Kernel -I/usr/include/python2.7
-I/usr/include/ -O3 main.cpp -o _gnuRel
> I am running to the same issue. I am new to Python as well. Can you let me
> know how you solved your issue ?
Hi Ramesh
I'm sorry, that was a long time ago. I suggest you start a new thread on the
mailing list and explain your situation there with more detail.
Best regards
David
> > How would I get that from the command line please?
>
> python -c "import sys; print '%d.%d' % sys.version_info[:2]"
Fantastic. Thank you very much.
David
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinf
> sys.version_info
How would I get that from the command line please?
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig
> You can also extract this information from various methods in the distutils
> package. Even if you aren't using distutils to control the build, you could
> ask
> Python itself to print out the configuration variables. For instance:
>
> python -c "import distutils.sysconfig; print
> distutil
Re: [C++-sig] How to configure makefile for different build platforms
>
> On 10/06/2011 03:09 PM, David Aldrich wrote:
> >> pkg-config does not use Debian packages names. Try using "python" for
> >> the current standard python 2 version, or pythonX.Y for specific
>
> 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.
Thanks but --list-all only lists no
> 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
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_
Hi
I wonder if someone could help me out with a yum dependency problem please?
I am running Centos 5.5. I installed Boost 1.40 from the Black Op Software
repo. I now need to install python-devel, but when I do so I get:
=
$ sudo yu
Hi Ben
Thanks very much for your reply. Sorry that my response has been slow but I
have been trying to digest yours. I have also taken a detour to investigate
CMake.
>As to how to make your functionality available with a Python
>extension - I'm not sure exactly what kind of app you have,
>but
Hi Ravi
Thanks for your reply.
> Yes. PyOGRE or cctbx are excellent exmples of larger projects which use
> boost.python. You may want to use py++ to automate binding generation to
> save yourself quite some time.
Ok, I will look at py++.
> No. The python modules can be compiled using regular ma
parallel build system using bjam to build the extensions? And then maintain
both make's makefiles and bjam's Jamroot files?
Can .pyd files be loaded by the C++ linker?
Any advice would be gratefully received.
Best regards
David
=======
Hi
I am using Boost 1.43 on Windows XP, with MSVC 9.0 and Python 2.7.
I am trying to run the 'Hello world' example in libs\python\example\tutorial
I have created a user-config.jam file containing:
# MSVC configuration
using msvc : 9.0 ;
# Python configuration
using
Hi
I fixed this by replacing Py_Initialize() with Py_InitializeEx(0).
BR
David
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig
Hi
We have just added Py_Initialize() and Py_Finalize() calls to our C++
application, in order to support embedded Python.
Our's is a console application. We have noticed the side effect that CTRL-C no
longer terminates the application. This is true for both Linux and Windows
builds.
Is this
Hi
Thanks for the replies. It seems that some people do have concerns about SCons.
I think that CMake may be a better choice for us. We don't need the
cross-platform capability but if CMake has more comprehensible configuration
files and solves the #include dependency checking problem, that wo
Hi Niall
> I would strongly recommend that you use something more modern than
> GNU make. Boost's build system is much better. The one I use is scons
> (http://www.scons.org/) whose only main fault is O(N^2) scaling to
> source file number, a problem they are in the process of fixing.
I take your
Hi
I would be grateful for some help with setting up some makefiles for my C++
application, compiled with gcc under Linux, that uses Boost.Python.
The application consists of a static library that contains main() and various
shared libraries that are dynamically linked at runtime as required.
2010 16:48
> To: Development of Python/C++ integration
> Subject: Re: [C++-sig] Can boost_python dll be delay loaded?
>
> On 30 Jul 2010 at 10:56, David Aldrich wrote:
>
> > > I thought that the application installer registered the DLL manifests
> > > at their loca
Hi Niall
> I thought that the application installer registered the DLL manifests
> at their locations? It's like registering COM or .NET objects, in
> fact I think it's the same mechanism nowadays.
Well, I don't plan to use an application installer. Most of our users build and
run the applicatio
Hi Niall
> > > Wouldn't using an embedded manifest to specify a non-default DLL
> location be much easier?
Thanks for your reply. I have now succeeded in creating a manifest file for an
assembly that includes the boost_python dll's. But I don't understand how to
specify a non-default location f
Hi Niall
> Wouldn't using an embedded manifest to specify a non-default DLL location be
> much easier?
Thanks. I am not familiar with how that works. Please can you give me any tips
on how to do this?
Best regards
David
___
Cplusplus-sig mailing lis
Hi
I am working on a Windows application that uses boost_python, linked with
shared libraries.
I need to store the boost_python dll in a folder other than one in the usual
search path (exe folder, System32, search path). I propose to do this by
'delay loading' the boost_python dll and calling
Hi
I want to add a simple exception handler to my boost.python application. I want
it to print a simple message to the console, indicating the nature of the error.
I have seen:
try {
...
} catch ( error_already_set ) {
PyErr_Print();
}
But is there a better solution using a boost.pytho
I'm new to boost.python so am just a beginner. But I built boost.python with
bjam and then built my C++ application with MSVC 2008 (not bjam). Worked fine.
David
From: cplusplus-sig-bounces+david.aldrich=eu.nec@python.org
[mailto:cplusplus-sig-bounces+david.aldrich=eu.nec@python.org] On
es+pj=nexplore...@python.org] Im Auftrag von David
Aldrich
Gesendet: Dienstag, 20. Juli 2010 13:26
An: cplusplus-sig@python.org
Betreff: [C++-sig] Wanted: Examples of boost.python embedded usage
Hi
I am new to boost.python ( and to Python ) and need to demonstrate embedding
Python code i
Hi
I am new to boost.python ( and to Python ) and need to demonstrate embedding
Python code in a C++ application.
I would like to pass data to a Python function from C++ and retrieve the result.
Please can anyone suggest a tutorial that would show me how to do this please?
Best regards
David
es+pj=nexplore...@python.org] Im Auftrag von David
Aldrich
Gesendet: Mittwoch, 7. Juli 2010 15:04
An: cplusplus-sig@python.org
Betreff: [C++-sig] Newbie question about Boost.Python
Hi
I am trying to use Boost.Python on Windows XP using Visual C++ 2008 Express and
Python 2.7.
I have built Boost
Hi
I am trying to use Boost.Python on Windows XP using Visual C++ 2008 Express and
Python 2.7.
I have built Boost using bjam. The generated libraries include:
libboost_python-vc90-mt-gd-1_43.lib
I am now trying to run the example in the boost.python 'EmbeddingPython wiki
page, which begins:
Hi
I am new to Boost.Python and am trying to build its library using Visual C++
2008 on Windows XP.
I have downloaded and unzipped boost_1_43_0.zip and I have installed
boost-jam-3.1.18-1-ntx86.zip.
Next, I executed:
C:\boost_1_43_0\libs\python\example\quickstart>\boost-jam-3.1.18-1-ntx86\bja
38 matches
Mail list logo