All of lore.kernel.org
 help / color / mirror / Atom feed
* Install headers to /usr/include/
@ 2020-09-12  9:58 majid.nasiry65
  2020-09-13  2:28 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: majid.nasiry65 @ 2020-09-12  9:58 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 827 bytes --]

Hi
I have a recipe for a library. It install .so files correctly but headers not installed. It can install files any where except /usr/inclue/ directory.
> 
> 
> SUMMARY = "An open source library for DNP3"
> HOMEPAGE = "http://dnp3.github.io/"
> SECTION = "libs"
> DEPENDS = ""
> LICENSE = "Apache-2.0"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> 
> 
> SRCREV = "639edaf1a5d2d74bc04efdd9ddf165bc14a06390"
> SRC_URI = "git://github.com/dnp3/opendnp3.git;branch=release"
> 
> S = " ${WORKDIR} /git"
> 
> EXTRA_OECMAKE += "-DNP3_TLS=ON"
> 
> do_install_append (){
> install -d ${D}${includedir}
> cp -r ${S} /cpp/lib/include/opendnp3 ${D}${includedir}
> }
> 
> FILES_${PN} += " ${includedir} "
> 
> inherit cmake
> 

Where is my mistake?
Thanks.

> 
> 
>

[-- Attachment #2: Type: text/html, Size: 2706 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] Install headers to /usr/include/
  2020-09-12  9:58 Install headers to /usr/include/ majid.nasiry65
@ 2020-09-13  2:28 ` Khem Raj
       [not found]   ` <CABnAseLDo+L59bNtfaGSSFcf-NC==-ZK78zZD9-xHWPMfX0PdQ@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2020-09-13  2:28 UTC (permalink / raw)
  To: majid.nasiry65; +Cc: yocto

headers should be in the devel package  ( PN-dev ) please install that
in your image

On Sat, Sep 12, 2020 at 2:58 AM <majid.nasiry65@gmail.com> wrote:
>
> Hi
> I have a recipe for a library. It install .so files correctly but headers not installed. It can install files any where except /usr/inclue/ directory.
>
> SUMMARY = "An open source library for DNP3"
> HOMEPAGE = "http://dnp3.github.io/"
> SECTION = "libs"
> DEPENDS = ""
> LICENSE = "Apache-2.0"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
>
>
> SRCREV = "639edaf1a5d2d74bc04efdd9ddf165bc14a06390"
> SRC_URI = "git://github.com/dnp3/opendnp3.git;branch=release"
>
> S = "${WORKDIR}/git"
>
> EXTRA_OECMAKE += "-DNP3_TLS=ON"
>
> do_install_append(){
>     install -d ${D}${includedir}
>     cp -r ${S}/cpp/lib/include/opendnp3 ${D}${includedir}
> }
>
> FILES_${PN} += "${includedir}"
>
> inherit cmake
>
> Where is my mistake?
> Thanks.
>
>
>
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] Install headers to /usr/include/
       [not found]           ` <CABnAseJZ2Dz9AMcUVQXSRmsxm_qv4OSqe+xrcox8EozQYB8Q9w@mail.gmail.com>
@ 2020-09-13  7:52             ` Khem Raj
  2020-09-13  8:47               ` majid.nasiry65
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2020-09-13  7:52 UTC (permalink / raw)
  To: Majid Nasiry, yocto


[-- Attachment #1.1: Type: text/plain, Size: 3294 bytes --]

change

do_install_append(){
     install -d ${D}${includedir}
     cp -r ${S}/cpp/lib/include/opendnp3 ${D}${includedir}
 }


to

do_install_append(){
     install -d ${D}${includedir}/opendnp3
     cp -R --no-dereference --preserve=mode,links
${S}/cpp/lib/include/opendnp3/*
${D}${includedir}/opendnp3/
 }

reading mailing list.
idon't send personal emails, Always keep mailing lists in Cc so others can
also see the proceedings.

On Sun, Sep 13, 2020 at 12:27 AM Majid Nasiry <majid.nasiry65@gmail.com>
wrote:

> It contains all of what I need, but only lib installed.
> tree -L 3
> [image: image.png]
>
> On Sun, Sep 13, 2020 at 11:44 AM Khem Raj <raj.khem@gmail.com> wrote:
>
>> what all files are inside opendnp3-dev ?
>>
>> On Sat, Sep 12, 2020 at 11:35 PM Majid Nasiry <majid.nasiry65@gmail.com>
>> wrote:
>>
>>> This is content of this directory :
>>> [image: image.png]
>>>
>>>
>>>
>>> On Sun, Sep 13, 2020 at 10:56 AM Khem Raj <raj.khem@gmail.com> wrote:
>>>
>>>> what do you see in packages-split/ directory in build area for this
>>>> package ?
>>>>
>>>> On Sat, Sep 12, 2020 at 11:11 PM Majid Nasiry <majid.nasiry65@gmail.com>
>>>> wrote:
>>>> >
>>>> > Hi Khem
>>>> > I tried this :
>>>> >
>>>> > do_install_append(){
>>>> >     install -d ${D}${includedir}
>>>> >     cp -r ${S}/cpp/lib/include/opendnp3 ${D}${includedir}
>>>> >
>>>> >     install -d ${D}/usr/include-2
>>>> >     cp -r ${S}/cpp/lib/include/opendnp3 ${D}/usr/include-2
>>>> > }
>>>> >
>>>> > FILES_${PN}-dev += "${includedir}"
>>>> > FILES_${PN}-dev += "/usr/include-2/"
>>>> >
>>>> > but it did't work. When I change the last two lines to FILES_${PN} +=
>>>> .. . , the "/usr/include-2/" directory installed and "opendnp3" folder
>>>> copied too, but in -dev state nothing happened.
>>>> >
>>>> > Any suggestions?
>>>> >
>>>> > Regards
>>>> >
>>>> > On Sun, Sep 13, 2020 at 6:58 AM Khem Raj <raj.khem@gmail.com> wrote:
>>>> >>
>>>> >> headers should be in the devel package  ( PN-dev ) please install
>>>> that
>>>> >> in your image
>>>> >>
>>>> >> On Sat, Sep 12, 2020 at 2:58 AM <majid.nasiry65@gmail.com> wrote:
>>>> >> >
>>>> >> > Hi
>>>> >> > I have a recipe for a library. It install .so files correctly but
>>>> headers not installed. It can install files any where except /usr/inclue/
>>>> directory.
>>>> >> >
>>>> >> > SUMMARY = "An open source library for DNP3"
>>>> >> > HOMEPAGE = "http://dnp3.github.io/"
>>>> >> > SECTION = "libs"
>>>> >> > DEPENDS = ""
>>>> >> > LICENSE = "Apache-2.0"
>>>> >> > LIC_FILES_CHKSUM =
>>>> "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
>>>> >> >
>>>> >> >
>>>> >> > SRCREV = "639edaf1a5d2d74bc04efdd9ddf165bc14a06390"
>>>> >> > SRC_URI = "git://github.com/dnp3/opendnp3.git;branch=release"
>>>> >> >
>>>> >> > S = "${WORKDIR}/git"
>>>> >> >
>>>> >> > EXTRA_OECMAKE += "-DNP3_TLS=ON"
>>>> >> >
>>>> >> > do_install_append(){
>>>> >> >     install -d ${D}${includedir}
>>>> >> >     cp -r ${S}/cpp/lib/include/opendnp3 ${D}${includedir}
>>>> >> > }
>>>> >> >
>>>> >> > FILES_${PN} += "${includedir}"
>>>> >> >
>>>> >> > inherit cmake
>>>> >> >
>>>> >> > Where is my mistake?
>>>> >> > Thanks.
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> > 
>>>>
>>>

[-- Attachment #1.2: Type: text/html, Size: 7674 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 29420 bytes --]

[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 11567 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Install headers to /usr/include/
  2020-09-13  7:52             ` Khem Raj
@ 2020-09-13  8:47               ` majid.nasiry65
  0 siblings, 0 replies; 4+ messages in thread
From: majid.nasiry65 @ 2020-09-13  8:47 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 99 bytes --]

I did what you said but not working.

Sorry about personal messages. I'am new with this stuffs.

[-- Attachment #2: Type: text/html, Size: 113 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-13  8:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12  9:58 Install headers to /usr/include/ majid.nasiry65
2020-09-13  2:28 ` [yocto] " Khem Raj
     [not found]   ` <CABnAseLDo+L59bNtfaGSSFcf-NC==-ZK78zZD9-xHWPMfX0PdQ@mail.gmail.com>
     [not found]     ` <CAMKF1srH8=6KuhVruQqFo3ZvQsogyKmdHjapdcJaAzcHN7Ls0w@mail.gmail.com>
     [not found]       ` <CABnAseJ-+AdwjKi9oG5rSKXrBin5FksyjOouwgX7pKeJmDFD+A@mail.gmail.com>
     [not found]         ` <CAMKF1spUGNAtq8JMb39N1FFi=z-faxEnNcWWw1GxLoAje-5xxQ@mail.gmail.com>
     [not found]           ` <CABnAseJZ2Dz9AMcUVQXSRmsxm_qv4OSqe+xrcox8EozQYB8Q9w@mail.gmail.com>
2020-09-13  7:52             ` Khem Raj
2020-09-13  8:47               ` majid.nasiry65

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.