[libvirt] libvirt: python bindings

Hi, I'm writing XenServer APIs for libvirt and trying to test it on virt-Manager. I need to build the libvirt python bindings for that. I tried this for libvirt. ./configure -with-xenapi -with-python make make install I suppose this is supposed to build a .libs directory with libvirtmod.so in the ~/libvirt/python/ But I don't seem to have this at all after build. It was a clean build with no errors. I need libvirtmod.so to link with virt-manager. I'm using libvirt version 0.7.4 Can anyone help me with this. Am I missing something here Thanks in Advance, -SP

On Thu, Jan 28, 2010 at 05:52:45PM +0000, Sharadha Prabhakar (3P) wrote:
Hi, I'm writing XenServer APIs for libvirt and trying to test it on virt-Manager. I need to build the libvirt python bindings for that. I tried this for libvirt. ./configure -with-xenapi -with-python
You need to use -- not just - with arguments, eg --with-python
make make install
I suppose this is supposed to build a .libs directory with libvirtmod.so in the ~/libvirt/python/ But I don't seem to have this at all after build. It was a clean build with no errors. I need libvirtmod.so to link with virt-manager. I'm using libvirt version 0.7.4 Can anyone help me with this. Am I missing something here
Also make sure you have python-devel RPM installed (or equivalent) and have not disabled shared libraries when running configure. Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On 28 janv. 2010, at 19:11, Daniel P. Berrange wrote:
On Thu, Jan 28, 2010 at 05:52:45PM +0000, Sharadha Prabhakar (3P) wrote:
Hi, I'm writing XenServer APIs for libvirt and trying to test it on virt-Manager. I need to build the libvirt python bindings for that. I tried this for libvirt. ./configure -with-xenapi -with-python
You need to use -- not just - with arguments, eg --with-python
make make install
I suppose this is supposed to build a .libs directory with libvirtmod.so in the ~/libvirt/python/ But I don't seem to have this at all after build. It was a clean build with no errors. I need libvirtmod.so to link with virt-manager. I'm using libvirt version 0.7.4 Can anyone help me with this. Am I missing something here
Also make sure you have python-devel RPM installed (or equivalent) and have not disabled shared libraries when running configure.
When python-dev is not installed, configure currently (in version 0.7.5) disables the bindings: configure: Could not find python2.5/Python.h, disabling bindings and final output says Python: no When --with-python is provided, shouldn't we error out instead of disabling bindings more or less silently? -- Pierre Riteau -- PhD student, Myriads team, IRISA, Rennes, France http://perso.univ-rennes1.fr/pierre.riteau/

On 29 janv. 2010, at 10:05, Pierre Riteau wrote:
On 28 janv. 2010, at 19:11, Daniel P. Berrange wrote:
On Thu, Jan 28, 2010 at 05:52:45PM +0000, Sharadha Prabhakar (3P) wrote:
Hi, I'm writing XenServer APIs for libvirt and trying to test it on virt-Manager. I need to build the libvirt python bindings for that. I tried this for libvirt. ./configure -with-xenapi -with-python
You need to use -- not just - with arguments, eg --with-python
make make install
I suppose this is supposed to build a .libs directory with libvirtmod.so in the ~/libvirt/python/ But I don't seem to have this at all after build. It was a clean build with no errors. I need libvirtmod.so to link with virt-manager. I'm using libvirt version 0.7.4 Can anyone help me with this. Am I missing something here
Also make sure you have python-devel RPM installed (or equivalent) and have not disabled shared libraries when running configure.
When python-dev is not installed, configure currently (in version 0.7.5) disables the bindings: configure: Could not find python2.5/Python.h, disabling bindings and final output says Python: no
When --with-python is provided, shouldn't we error out instead of disabling bindings more or less silently?
No reaction? -- Pierre Riteau -- PhD student, Myriads team, IRISA, Rennes, France http://perso.univ-rennes1.fr/pierre.riteau/

On 02/02/2010 09:58 AM, Pierre Riteau wrote:
On 29 janv. 2010, at 10:05, Pierre Riteau wrote:
On 28 janv. 2010, at 19:11, Daniel P. Berrange wrote:
On Thu, Jan 28, 2010 at 05:52:45PM +0000, Sharadha Prabhakar (3P) wrote:
Hi, I'm writing XenServer APIs for libvirt and trying to test it on virt-Manager. I need to build the libvirt python bindings for that. I tried this for libvirt. ./configure -with-xenapi -with-python
You need to use -- not just - with arguments, eg --with-python
make make install
I suppose this is supposed to build a .libs directory with libvirtmod.so in the ~/libvirt/python/ But I don't seem to have this at all after build. It was a clean build with no errors. I need libvirtmod.so to link with virt-manager. I'm using libvirt version 0.7.4 Can anyone help me with this. Am I missing something here
Also make sure you have python-devel RPM installed (or equivalent) and have not disabled shared libraries when running configure.
When python-dev is not installed, configure currently (in version 0.7.5) disables the bindings: configure: Could not find python2.5/Python.h, disabling bindings and final output says Python: no
When --with-python is provided, shouldn't we error out instead of disabling bindings more or less silently?
Yes, that sounds like the desired behavior. Thanks, Cole
participants (4)
-
Cole Robinson
-
Daniel P. Berrange
-
Pierre Riteau
-
Sharadha Prabhakar (3P)