Skip to contentSkip to conversation

Compiling/linking applications using libdevmapper

DISCUSSION Yathindra 2 participants 3 messages Dec 12, 2011 – Dec 13, 2011 Device mapper

lore
Share & tools
lore

Yathindra

author
#0 lore raw

Hi,

I'm actually doing a make and make install in the LVM source code directory so I can compile and link my application using -ldevmapper.

I'm wondering if this is the only way (correct way) to build applications using libdevmapper ?

Thanks,
Yathi

#1 lore raw

Dne 12.12.2011 20:10, Yathindra napsal(a):

Quoted 8 lines

Hi,

I'm actually doing a make and make install in the LVM source code directory so I can compile and link my application using -ldevmapper.

I'm wondering if this is the only way (correct way) to build applications using libdevmapper ?

If you want to build only device mapper part from lvm2 src tarball you may use:

make device-mapper

or just directly:

make install_device-mapper

(though there seems to be a minor issue with the install target which might need some cosmetic cleanup - but it should install correctly everything you need)

Zdenek

author
#2 lore raw

Hi,

Actually, I'm using some of the API's from libdevmapper and as such I'm not installing device mapper. So I'm linking my application by using -ldevmapper, but for devmapper library (-ldevmapper), do I need to build the device mapper part from lvm2 src ?

Thanks again,
Yathi

Quoted 22 lines · Zdenek Kabelac

Dne 12.12.2011 20:10, Yathindra napsal(a):

Quoted 8 lines

Hi,

I'm actually doing a make and make install in the LVM source code directory so I can compile and link my application using -ldevmapper.

I'm wondering if this is the only way (correct way) to build applications using libdevmapper ?

If you want to build only device mapper part from lvm2 src tarball you may use:

make device-mapper

or just directly:

make install_device-mapper

(though there seems to be a minor issue with the install target which might need some cosmetic cleanup - but it should install correctly everything you need)

Zdenek