Take the 2-minute tour ×

I have successfully built and installed Mesa for my Host Ubuntu 12.04 LTS, everything looks good, demos work, But when i try to cross-compiling Mesa for my ARM-linux boad, there are always error msg as below:

checking python2 module: libxml2... no configure: error: failed to find required module libxml2

i tried to find solution, but none of those tips from internet can help me, i am sure i have correctly installed the libxml2 for my system base on the fact that i can install Mesa on my Ubuntu host.

How did i cross-compile :

1. I sourced the environment-setup file of the root-filesystem before cross-compiling Mesa.

2. ./configure ---target=arm-linux-gnueabi --host=arm-linux-gnueabi --prefix=/Mesa. then the error come up.

is it because there are something missing in my rootfs ? but seems that libxml2 has been included in the rootfs: i can find libxml2.so.2.9 under the usr/lib dir of rootfs, i get confused, why the libxml2 cannot be found during the ./configure progress?

by the way, when i type: python -c "import libxml2" in the terminal after sourcing the environment-setup file of the rootfs, i gte error msg as below:

python -c "import libxml2" Traceback (most recent call last): File "", line 1, in ImportError: No module named libxml2

however when i did it without sourcing the environment-setup file, there is no error at all.

Does anyone have similar experiences to share? thx.

share|improve this question
add comment


Your Answer



Browse other questions tagged or ask your own question.