Discussion:
How to install a rpm package in sysroot
He, Yunlong
2011-05-31 02:53:58 UTC
Permalink
Hi, Experts,

I have a rpm package with header files and libraries inside, what command can help to install it directly into sysroot? So that I can use it in QtCreator.

My sysroot is:
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs


Best Regards
He Yunlong (ºÎÔÆÁú)
Cube: GTC-18M08
iNet: 8751-1645
Tel: +86-010-57511645
Email: ***@intel.com<mailto:***@intel.com>
danny
2011-05-31 03:53:50 UTC
Permalink
Hi,

Try :
1) sudo mic-chroot /usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
then you should be in the chroot system.
2) copy your files to /tmp directory or /usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs/ directly.
3) then you can install rpm packages using rpm -ivh or copy files to any directry.

Hope usefull for you.


--

Best Regards,



At 2011-05-31 10:53:58£¬"He, Yunlong" <***@intel.com> wrote:

Hi, Experts,

I have a rpm package with header files and libraries inside, what command can help to install it directly into sysroot? So that I can use it in QtCreator.

My sysroot is:
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs


Best Regards
He Yunlong (ºÎÔÆÁú)
Cube: GTC-18M08
iNet: 8751-1645
Tel: +86-010-57511645
Email:***@intel.com
He, Yunlong
2011-05-31 05:24:28 UTC
Permalink
Thanks, Danny, but there is no ¡°bin¡± directory in the sysroot, so I can¡¯t change root to it. So it seems I can only extract the rpm and copy files to sysroot manually.

B.R.
He Yunlong

From: danny [mailto:***@163.com]
Sent: Tuesday, May 31, 2011 11:54 AM
To: He, Yunlong
Cc: meego-***@meego.com
Subject: Re:[MeeGo-SDK] How to install a rpm package in sysroot

Hi,

Try :
1) sudo mic-chroot /usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
then you should be in the chroot system.
2) copy your files to /tmp directory or /usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs/ directly.
3) then you can install rpm packages using rpm -ivh or copy files to any directry.

Hope usefull for you.
--
Best Regards,

At 2011-05-31 10:53:58£¬"He, Yunlong" <***@intel.com> wrote:

Hi, Experts,

I have a rpm package with header files and libraries inside, what command can help to install it directly into sysroot? So that I can use it in QtCreator.

My sysroot is:
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs


Best Regards
He Yunlong (ºÎÔÆÁú)
Cube: GTC-18M08
iNet: 8751-1645
Tel: +86-010-57511645
Email: ***@intel.com<mailto:***@intel.com>
Edmondas Girkantas
2011-05-31 08:25:04 UTC
Permalink
Post by danny
Hi,
1) sudo mic-chroot
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
then you should be in the chroot system.
2) copy your files to /tmp directory or
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs/
directly.
3) then you can install rpm packages using rpm -ivh or copy files to any directry.
Or just use madde xrpm feature:
http://wiki.meego.com/SDK/Tutorials/Use_3rd_party_libraries#Deploy_the_3rd_party_library_to_sysroot

--Edmondas
kaling ray
2011-05-31 04:27:36 UTC
Permalink
yunlong, Try this
rpm2cpio LIBRARY.rpm | cpio -idmv

thanks,
Kalinga
Post by He, Yunlong
Hi, Experts,
I have a rpm package with header files and libraries inside, what command
can help to install it directly into sysroot? So that I can use it in
QtCreator.
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
Best Regards
He Yunlong (ºÎÔÆÁú)
Cube: GTC-18M08
iNet: 8751-1645
Tel: +86-010-57511645
_______________________________________________
MeeGo-sdk mailing list
http://lists.meego.com/listinfo/meego-sdk
http://wiki.meego.com/Mailing_list_guidelines
http://meego.com/developers
Edmondas Girkantas
2011-05-31 06:24:56 UTC
Permalink
Post by He, Yunlong
Hi, Experts,
I have a rpm package with header files and libraries inside, what
command can help to install it directly into sysroot? So that I can
use it in QtCreator.
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
Hi,

I think this tutorial can help you:
http://wiki.meego.com/SDK/Tutorials/Use_3rd_party_libraries#Deploy_the_3rd_party_library_to_sysroot

Here you will find instructions how to use mad-admin xrpm feature.

--Edmondas
He, Yunlong
2011-05-31 09:23:12 UTC
Permalink
Thanks to ALL, xrpm feature is really helpful.

B.R.
He Yunlong

From: meego-sdk-bounces-***@public.gmane.org [mailto:meego-sdk-bounces-***@public.gmane.org] On Behalf Of Edmondas Girkantas
Sent: Tuesday, May 31, 2011 2:25 PM
To: meego-sdk-***@public.gmane.org
Subject: Re: [MeeGo-SDK] How to install a rpm package in sysroot

On 05/31/2011 05:53 AM, ext He, Yunlong wrote:
Hi, Experts,

I have a rpm package with header files and libraries inside, what command can help to install it directly into sysroot? So that I can use it in QtCreator.

My sysroot is:
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs

Hi,

I think this tutorial can help you:
http://wiki.meego.com/SDK/Tutorials/Use_3rd_party_libraries#Deploy_the_3rd_party_library_to_sysroot

Here you will find instructions how to use mad-admin xrpm feature.

--Edmondas

Mika Laitio
2011-05-31 07:05:08 UTC
Permalink
Post by He, Yunlong
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
1) Can you just extract it:
- cd
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
- rpm2cpio <rpm-pkg-name> | cpio -idmv

2)
Or if you have correct version of qemu installed (some distroes does not
ship qemu-binfmt-conf.sh within their qemu versions, so you may need to
rebuild/reinstall some other version from qemu)
- sudo su
- /usr/sbin/qemu-binfmt-conf.sh
- cd
/usr/lib/madde/linux/linux-i686/meego-core-ia32-sysroot-1.1.99.7.20110513.4-fs
- chroot .
- rpm -Uvh <packagename>

Mika
Post by He, Yunlong
Best Regards
He Yunlong (何云龙)
Cube: GTC-18M08
iNet: 8751-1645
Tel: +86-010-57511645
_______________________________________________
MeeGo-sdk mailing list
http://lists.meego.com/listinfo/meego-sdk
http://wiki.meego.com/Mailing_list_guidelines
http://meego.com/developers
Loading...