Skip to contentSkip to conversation

about cross compile for device mapper

DISCUSSION 安 1 participant 1 message Jul 10, 2013 Device mapper

lore
Share & tools
lore

安

author
#0 lore raw

Hi all,

I need to use the dmsetup command in my embeded device, so I need to cross compile the dmsetup with arm-linux-gcc. And I have downloaded the source code of device-mapper.1.02.28 in my host linux(Centos 5.5). Then I make a configure script named "configure-mini2440.sh" in device-mapper.1.02.28/release/ :

#! /bin/sh

CC=arm-linux-gcc ../configure --enable-elf-shlibs --host=arm --prefix=/root/Desktop/common/device-mapper.1.02.28/release/

Then I do the configuration with "configure-mini2440.sh"

However when I do "make", some error occur.

Can anyone tell me a right way to do the cross compile?

Thank a lot.

------------------

--
Best Rgds,
Encore Deng
Mobile: 134 161 259 40
--