Skip to contentSkip to conversation

unable to create softlink for precompilied libraries

DISCUSSION chandrasekhar c 3 participants 7 messages Apr 6, 2017 – Apr 7, 2017

lore
Share & tools
lore
#0 lore raw

Hi, I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create  soft links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it didn't create any link file.Below is my recipe do_install_append() {         install -d ${D}${libdir}/         install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2         ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so         install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success         ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success         ln -sf libMSOComm.so.1 ${D}${libdir}/libMSOComm.so //This is not happening} Can any one tell me a solution for this. 
Thanks and Regards,Chandrasekhar

#1 lore raw
Quoted 7 lines · chandrasekhar c

Hi,
I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create  soft links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it didn't create any link file.
Below is my recipe

do_install_append() {

Quoted 8 lines

         install -d ${D}${libdir}/
         install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2
         ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
         install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success ln -sf libMSOComm.so.1 ${D}${libdir}/libMSOComm.so //This is not happening }
Can any one tell me a solution for this.

Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?

Quoted 3 lines


Thanks and Regards,
Chandrasekhar

#2 lore raw

Hi ,No, I will do the changes and let you know the result.Regards,ChandrasekharFrom: Fabien Lahoudere <[email protected]>Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530To: [email protected]: Re: [yocto] unable to create softlink for precompilied librariesOn Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:> Hi,  > I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create   soft> links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it> didn't create any link file.> Below is my recipe>  > do_install_append() {>                   install -d ${D}${libdir}/>                 install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2>                 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so>                 install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success>                 ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success>                 ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This is not happening> }> Can any one tell me a solution for this.Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?>  > Thanks and Regards,> Chandrasekhar--_______________________________________________yocto mailing [email protected]://lists.yoctoproject.org/listinfo/yocto

#3 lore raw

Hi,I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in my recipe still the issue is presentThanks ChandraFrom: chandrasekhar c <[email protected]>Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530To: "Fabien Lahoudere " <[email protected]>Cc: "[email protected]" <[email protected]>Subject: Re: [yocto] unable to create softlink for precompilied librariesHi ,No, I will do the changes and let you know the result.Regards,ChandrasekharFrom: Fabien Lahoudere <[email protected]>Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530To: [email protected]: Re: [yocto] unable to create softlink for precompilied librariesOn Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:> Hi,  > I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create   soft> links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it> didn't create any link file.> Below is my recipe>  > do_install_append() {>                   install -d ${D}${libdir}/>                 install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2>                 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so>                 install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success>                 ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success>                 ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This is not happening> }> Can any one tell me a solution for this.Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?>  > Thanks and Regards,> Chandrasekhar--_______________________________________________yocto mailing [email protected]://lists.yoctoproject.org/listinfo/yocto --_______________________________________________yocto mailing [email protected]://lists.yoctoproject.org/listinfo/yocto

#4 lore raw

Can you check that the file is installed in image folder and in package in the WORKDIR of your recipe?

Quoted 58 lines · chandrasekhar c

Hi,
I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in my recipe still the issue is present

Thanks
Chandra

From: chandrasekhar c <[email protected]>
Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530
To: "Fabien Lahoudere " <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [yocto] unable to create softlink for precompilied libraries

Hi ,
No, I will do the changes and let you know the result.

Regards,
Chandrasekhar

From: Fabien Lahoudere <[email protected]>
Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530
To: [email protected]
Subject: Re: [yocto] unable to create softlink for precompilied libraries

Quoted 2 lines · chandrasekhar c

Hi,
I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create

soft

Quoted 9 lines

links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it didn't create any link file.
Below is my recipe

do_install_append() {
                  install -d ${D}${libdir}/
                install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
                install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is

success

Quoted 4 lines

                ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This is not happening }
Can any one tell me a solution for this.

Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?

Quoted 3 lines


Thanks and Regards,
Chandrasekhar

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto --
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#5 lore raw
In reply to chandrasekhar c
Quoted 4 lines · chandrasekhar c

Hi,
I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in my recipe still the issue is present

that may not be enough. .so are treated as symlinks and shoved into -dev packages by default. if you need unversioned libraries then you have to let the system know that its not a dev library symlink

FILES_${PN} += "${libdir}/*.so"
FILES_SOLIBSDEV = ""
INSANE_SKIP_${PN} += "dev-so"

Quoted 67 lines

Thanks
Chandra

From: chandrasekhar c <[email protected]>
Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530
To: "Fabien Lahoudere " <[email protected]>
Cc: "[email protected]" <[email protected]>

Subject: Re: [yocto] unable to create softlink for precompilied libraries

Hi ,
No, I will do the changes and let you know the result.

Regards,
Chandrasekhar

From: Fabien Lahoudere <[email protected]>
Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530
To: [email protected]
Subject: Re: [yocto] unable to create softlink for precompilied libraries

Quoted 18 lines · chandrasekhar c

Hi,
I have a third party precompilied libraries. I erota a recipe to copy to
rootfs and create soft
links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it
didn't create any link file.
Below is my recipe

do_install_append() {
                  install -d ${D}${libdir}/
                install -m 0777 ${S}/libMSO.so.1.2
${D}${libdir}/libMSO.so.1.2
                ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
                install -m 0777 ${S}/libMSOComm.so.1.2
${D}${libdir}/libMSOComm.so.1.2 //This is success
                ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1
//This is success
                ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This
Quoted 3 lines

is not happening
}
Can any one tell me a solution for this.

Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?

Quoted 3 lines

Thanks and Regards,
Chandrasekhar

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto --

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#6 lore raw

Thank you Khem, it worked.

Regards,
Chandrasekhar

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Thursday, April 06, 2017 7:18 PM
To: chandrasekhar c <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] unable to create softlink for precompilied libraries

Quoted 4 lines · chandrasekhar c

Hi,
I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in my recipe still the issue is present

that may not be enough. .so are treated as symlinks and shoved into -dev packages by default. if you need unversioned libraries then you have to let the system know that its not a dev library symlink

FILES_${PN} += "${libdir}/*.so"
FILES_SOLIBSDEV = ""
INSANE_SKIP_${PN} += "dev-so"

Quoted 66 lines

Thanks
Chandra

From: chandrasekhar c <[email protected]>
Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530
To: "Fabien Lahoudere " <[email protected]>
Cc: "[email protected]" <[email protected]>

Subject: Re: [yocto] unable to create softlink for precompilied libraries

Hi ,
No, I will do the changes and let you know the result.

Regards,
Chandrasekhar

From: Fabien Lahoudere <[email protected]>
Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530
To: [email protected]
Subject: Re: [yocto] unable to create softlink for precompilied libraries

Quoted 17 lines · chandrasekhar c

Hi,
I have a third party precompilied libraries. I erota a recipe to copy to
rootfs and create soft
links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it didn't create any link file. Below is my recipe

do_install_append() {
                  install -d ${D}${libdir}/
                install -m 0777 ${S}/libMSO.so.1.2
${D}${libdir}/libMSO.so.1.2
                ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
                install -m 0777 ${S}/libMSOComm.so.1.2
${D}${libdir}/libMSOComm.so.1.2 //This is success
                ln -sf libMSOComm.so.1.2 
${D}${libdir}/libMSOComm.so.1 //This is success
                ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so 
Quoted 1 line

//This is not happening } Can any one tell me a solution for this.

Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?

Quoted 3 lines

Thanks and Regards,
Chandrasekhar

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto --

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto