Hi Dafna,

On 01/01/2018 02:03 PM, Dafna Hirschfeld wrote:
Hi,
thanks,
I work alone, and have no people I know to consult with.
Does the PREFERRED_VERSION influence static linking only ? So that the package 
version in the DEPENDS list is decided according to that variable ?
If so, why can't it be a recipe specific ?
If I want package A to statically link with lua5.3 and package B to be 
statically linked with lua5.2 . How can I do that ?

Thanks


On Mon, Jan 1, 2018 at 2:27 PM, John Ernberg 
<john.ernb...@actia.se<mailto:john.ernb...@actia.se>> wrote:

Hi Dafna,

On 12/30/2017 06:25 PM, Dafna Hirschfeld wrote:
Hi,

I want to add the vlc package , which has "lua" package in it's DEPNENDS 
variable.
But vlc needs lua5.2 and the default is lua5.3
So when running vlc on the target I get "undefined symbol" in the 
liblua_plugin.so
So how do I set the packages in DEPENDS to be in specific version ?

I added lua_5.2.2.bb<http://lua_5.2.2.bb> found in this repo 
https://git.congatec.com/yocto/meta-openembedded.git to 
meta-openembedded/meta-oe/recipes-devtools/lua/

and added

PREFERRED_VERSION_lua = "5.2%"

to meta-openembedded/meta-multimedia/recipes-multimedia/vlc/vlc.inc

but this didn't have any effect.

thanks


PREFERRED_VERSION is a config-variable, try setting it in your local.conf.

Best regards // John

If you want both in your filesystem you need to give the packages unique names 
so that the packages can co-exit alongside each other in Yocto. Name the 
lua_5.2.2 recipe in a way that it can be installed without opting out of Lua 
5.3 (e.g. lua52_5.2.2), then add the new package to your image. You might need 
to do some patching for this to work, in which case it's usually easier to 
patch the package with the problem dependency to work with the already provided 
packages instead. (e.g. patch VLC to work with Lua 5.3).

Best regards // John
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to