michaelrsweet / mxml

Tiny XML library.
https://www.msweet.org/mxml
Apache License 2.0
428 stars 157 forks source link

how to cross-compile the mxml? #229

Closed leetoun closed 5 years ago

leetoun commented 5 years ago

i want to cross-compile the mxml,cause i want to use libmxml on my board. i have a chip of iMX6DL . is there some description or direction in the docs?

fanr520 commented 5 years ago

./configure --prefix=/root/libxml/bin --enable-threads --host=arm-linux CC=/mcuzone/work/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc AR=/mcuzone/work/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-ar

--prefix=install dir --enable-threads theads enabled CC arm gcc path name AR amr ar path name

leetoun commented 5 years ago

@fanr520 thank u very much。 i‘ve finished the cross-compile work。and i'll have a try with ur configuration。 best wishes for you!