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 <[email protected]>
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 <[email protected]> wrote:
>
>> what all files are inside opendnp3-dev ?
>>
>> On Sat, Sep 12, 2020 at 11:35 PM Majid Nasiry <[email protected]>
>> wrote:
>>
>>> This is content of this directory :
>>> [image: image.png]
>>>
>>>
>>>
>>> On Sun, Sep 13, 2020 at 10:56 AM Khem Raj <[email protected]> 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 <[email protected]>
>>>> 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 <[email protected]> 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 <[email protected]> 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.
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>>
>>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50661): https://lists.yoctoproject.org/g/yocto/message/50661
Mute This Topic: https://lists.yoctoproject.org/mt/76797921/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-