Discussion:
libxml2 error
wuteng wu
2013-12-18 07:50:03 UTC
Permalink
Hi,

I built the Yocto 1.5 project for my SAMA5D34-EK board, i add the libxml2
by IMAGE_INSTALL_append = " libxml2", i got the image and programmed it
into NAND Flash of the board, but when i type *python -c "import libxml2" *from
the hyper Terminal , it gave out the message: *"*

*Traceback (most recent call last): File "", line 1, in ImportError: No
module named libxml2"*
I can find libxml2.so.2.9 under the usr/lib dir, i'm wondering where does
the error comes from, could anyone help me to solve the problem ? Thx.
Burton, Ross
2013-12-18 09:42:10 UTC
Permalink
I built the Yocto 1.5 project for my SAMA5D34-EK board, i add the libxml2 by
IMAGE_INSTALL_append = " libxml2", i got the image and programmed it into
NAND Flash of the board, but when i type python -c "import libxml2" from the
hyper Terminal , it gave out the message: "Traceback (most recent call
last): File "", line 1, in ImportError: No module named libxml2"
I can find libxml2.so.2.9 under the usr/lib dir, i'm wondering where does
the error comes from, could anyone help me to solve the problem ? Thx.
Our libxml2 is built without Python, you'll need to remove the
--disable-python options from the recipe.

Ross
Burton, Ross
2013-12-18 14:44:20 UTC
Permalink
Please don't take conversations off the list, so that others can help/learn.
I'm newbie to Yocto, could u tell me more details?
EXTRA_OECONF = "--without-python --without-debug --without-legacy
--without-catalog --without-docbook --with-c14n --without-lzma
--with-fexceptions"
EXTRA_OECONF_class-native = "--with-python=${STAGING_BINDIR}/python
--without-legacy --with-catalog --without-docbook --with-c14n
--without-lzma"
EXTRA_OECONF_class-nativesdk = "--with-python=${STAGING_BINDIR}/python
--without-legacy --with-catalog --without-docbook --with-c14n
--without-lzma"
EXTRA_OECONF_linuxstdbase = "--without-python --with-debug --with-legacy
--with-catalog --with-docbook --with-c14n --without-lzma"
Is the --without-python option that i need to modify?
Yes, apologies I got the option name wrong when writing the mail.

Ross
Burton, Ross
2013-12-19 10:19:12 UTC
Permalink
Please don't take conversations off the list, so that other can
help/learn. If your mailer doesn't automatically include
After changed all those "without-python" to "with-python", i try to build
| In file included from
|
error: unknown type name 'xmlCatalogPtr'
| xmlCatalogPtr obj;
| ^
|
error: unknown type name 'xmlCatalogPtr'
| PyObject * libxml_xmlCatalogPtrWrap(xmlCatalogPtr obj);
I suggest you approach the libxml2 maintainers about this compile
error. There's a mailing list and IRC channel listed on their web
site.

Ross

Continue reading on narkive:
Loading...