Date
1 - 4 of 4
Install headers to /usr/include/
majid.nasiry65@...
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.
Thanks.
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.
Where is my mistake?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
Thanks.
headers should be in the devel package ( PN-dev ) please install that
in your image
toggle quoted message
Show quoted text
in your image
On Sat, Sep 12, 2020 at 2:58 AM <majid.nasiry65@...> 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.
change
do_install_append(){
install -d ${D}${includedir}
cp -r ${S}/cpp/lib/include/opendnp3 ${D}${includedir}
install -d ${D}${includedir}
cp -r ${S}/cpp/lib/include/opendnp3 ${D}${includedir}
}
to
do_install_append(){
install -d ${D}${includedir}/opendnp3
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@...> wrote:
It contains all of what I need, but only lib installed.tree -L 3On Sun, Sep 13, 2020 at 11:44 AM Khem Raj <raj.khem@...> wrote:what all files are inside opendnp3-dev ?On Sat, Sep 12, 2020 at 11:35 PM Majid Nasiry <majid.nasiry65@...> wrote:This is content of this directory :On Sun, Sep 13, 2020 at 10:56 AM Khem Raj <raj.khem@...> 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@...> 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@...> 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@...> 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.
>> >
>> >
>> >
>> >