ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] create packages


From: Stuart Hughes
Subject: Re: [Ltib] create packages
Date: Fri, 22 Jan 2010 09:08:19 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Kirill,

The quick answer to your question is if the spec file name is x264.spec then you need to run the command:

./ltib -m prep -p x264.spec

You can only use the incantation: ./ltib -m prep -p x264
once you've added your package to config/userspace/packages.lkc and config/userspace/pkg_map and run ./ltib -m config

Once unpacked, you can then just run: ./ltib -p x264.spec to build it and install it into the root filesystem.

Regards, Stuart

Brilliantov Kirill Vladimirovich wrote:
Hello!
I have build ffmpeg with H264 support.
I have reading LtibFaqPackages and copy x264 source in the /opt/freescale/pkgs, also I creating directory dist/lfs-5.1/x264 with x264.spec.

Below my spec:
~/FreeScale$ cat dist/lfs-5.1/x264/x264.spec
%define pfx /opt/freescale/rootfs/%{_target_cpu}

Summary         : free library for encoding H264/AVC video streams
Name            : x264
Version         : 20100110-2245
Release         : 1
License         : GPL
Vendor          : Freescale
Packager        : Brilliantov Kirill
Group           : Applications
URL             : http://www.videolan.org/developers/x264.html
Source          : %{name}-snapshot-%{version}.tar.bz2
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

%Description
%{summary}

%Prep
%setup

%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make

%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}

%Clean
rm -rf $RPM_BUILD_ROOT

%Files
%defattr(-,root,root)
%{pfx}/*

ls -l /opt/freescale/pkgs/x264-snapshot-20100110-2245.tar.bz2
-rw-r--r-- 1 kirill kirill 388095 2010-01-21 17:01 /opt/freescale/pkgs/x264-snapshot-20100110-2245.tar.bz2

When I run ./ltib -m prep -p x264:
~/FreeScale$ ./ltib -m prep -p x264

Cannot find spec file that contains the package name x264.
If necessary please give the whole spec file name (with the .spec extension).

traceback:
 main::mk_buildlist:1906
  main::validate_sn:1951
   main::build_rpm:719
    main::f_prep:983
     main:553

Exiting on error or interrupt

How can I solve this problem?
Thank you and excuse me for my bad english.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]