On 26 June 2017 at 21:46, Ehrlich Andrei <andrei.ehrl...@corpuls.com> wrote:
> Please excuse the newbie question I want to ask, but I started with yocto
and cmake 3 month ago and now I have a couple of recipes based on cmake.
One of that cmake files installs links using following code:
>
> install(
>             CODE "execute_process( \
>                 COMMAND ${CMAKE_COMMAND} -E create_symlink \
>                 __tool \
>                 ${CMAKE_INSTALL_PREFIX}/bin/tool_${DST_NAME} \
>             )"
>
> When the code is executed in yocto  the do_install task fails with
following error:
> failed to create symbolic link '/usr/bin/tool_intf': Permission denied

The code should account for DESTDIR I think: maybe something like
"$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/bin/tool_${DST_NAME}" as the target

HTH,
  Jussi
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to