[Top][All Lists]

[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 14:16:26 +0000
User-agent: Thunderbird (X11/20080707)

Hi Kirill,

Brilliantov Kirill Vladimirovich wrote:
Stuart Hughes wrote on 01/22/2010 12:08 PM:
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

Thank you Stuart!
You answer solve my problem, but I found new problem - script don't work with Version contained -, e.g. 20100110-2245.
$ ./ltib -m prep -p x264

Building target platforms: ppc
Building for target ppc
error: line 5: Illegal char '-' in version: Version         : 20100110-2245
Build time for x264: 0 seconds

Renaming source package and change spec-file solve this problem.

That's the right thing to do as this is a restriction imposed by RPM.
However don't rename the source package as this will confuse people. Keep the source name, but just change the Source tag. Also please change the Vendor tag (if you are not from Freescale). You could just put LTIB if you like. Here's a suggestion:

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             :
Source          : %{name}-snapshot-20100110-2245.tar.bz2
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

I work with version 8.4.1.
$ cat release_logs/RELEASE_INFO
Release date = Tue May 19 08:31:38 2009 UTC
Release user = feixp
Release host = FLtib
Release dir  = /home/feixp/india_test/ltib
CVS wtag     = Tbranch-mpc8377ewlan-9-1-1
CVS tag      = rel-mpc8377ewlan-9-2-2-rc2
Release tag  = ltib-mpc8377ewlan-20090519
App version  = 8.4.1
CVS version  = $Revision: 1.440 $
git version  = none

I have to build ffmpeg with H264 support.
Where can I find sample for include external library in programm or what directory I need include for build my package?

I don't really understand the question. Is it ffmpeg that needs to link to this new package or something else?

You can look at any of the other existing packages that are similar to get ideas. As long as your package installs headers/libs in the normal places, anything referencing them should automatically find them.

Regards, Stuart

reply via email to

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