How to get static library in sdk?Difference between static and shared libraries?Android SDK installation doesn't find JDKHow to include GL/gl.h in SDK generate with YoctoHow to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?Yocto SDK with cmake toolchain fileYocto: Difference between CORE_IMAGE_EXTRA_INSTALL and IMAGE_INSTALLAdd lib to SDK generated from meta-toolchain-qt5 with YoctoHow to configure Yocto / Boost to support Python 2?Yocto: BUILD_LDFLAGS set to build system libraries, not targetHow to use header file <xmmintrin.h> with Yocto-generated SDK?
Which one is correct as adjective “protruding” or “protruded”?
On a tidally locked planet, would time be quantized?
Is it safe to use olive oil to clean the ear wax?
Why is so much work done on numerical verification of the Riemann Hypothesis?
"Spoil" vs "Ruin"
Is it possible to have a strip of cold climate in the middle of a planet?
why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`?
Argument list too long when zipping large list of certain files in a folder
What is Cash Advance APR?
How much character growth crosses the line into breaking the character
How to bake one texture for one mesh with multiple textures blender 2.8
Why do we read the Megillah by night and by day?
What should you do if you miss a job interview (deliberately)?
What does chmod -u do?
Should I outline or discovery write my stories?
Intuition of generalized eigenvector.
How should I respond when I lied about my education and the company finds out through background check?
What if a revenant (monster) gains fire resistance?
Freedom of speech and where it applies
Creature in Shazam mid-credits scene?
Is it better practice to read straight from sheet music rather than memorize it?
Is a bound state a stationary state?
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
What should you do when eye contact makes your subordinate uncomfortable?
How to get static library in sdk?
Difference between static and shared libraries?Android SDK installation doesn't find JDKHow to include GL/gl.h in SDK generate with YoctoHow to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?Yocto SDK with cmake toolchain fileYocto: Difference between CORE_IMAGE_EXTRA_INSTALL and IMAGE_INSTALLAdd lib to SDK generated from meta-toolchain-qt5 with YoctoHow to configure Yocto / Boost to support Python 2?Yocto: BUILD_LDFLAGS set to build system libraries, not targetHow to use header file <xmmintrin.h> with Yocto-generated SDK?
Everyone who searched how to include a static library in SDK, surely read this thread from 2014. I tried what they suggested, but that didn't work.
Reading the yocto mega manual version 2.1 (yocto morty), I found in chapter 5.9.12. (Poky Reference Distribution Changes), that they added DISABLE_STATIC variable, to disable generation of static libraries. I tried adding this to my recipe, and it didn't enable adding static library to SDK:
DISABLE_STATIC = ""
I can see the library in the sysroot when building the image. But it is not getting in the SDK.
So, what exactly do I need to do to get a static library and the headers in SDK?
What worked is adding the staticdev package to ´IMAGE_INSTALL´ in local.conf
, but I don't want to have to do that.
I created an example recipe, which demonstrates my problem. The directory structure is like this:
example-staticlib/
example-staticlib/example-staticlib_0.1.bb
example-staticlib/files/
example-staticlib/files/lib.c
example-staticlib/files/lib.h
example-staticlib/files/Makefile
example-staticlib_0.1.bb :
DESCRIPTION = "example stared library"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://$COMMON_LICENSE_DIR/LGPL-2.0;md5=9427b8ccf5cf3df47c29110424c9641a"
SRC_URI = "file://lib.c
file://lib.h
file://Makefile"
PR = "r0"
S = "$WORKDIR"
ALLOW_EMPTY_$PN = "1"
do_install ()
oe_runmake install DEST=$D
TOOLCHAIN_TARGET_TASK += "example-staticlib-dev"
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
lib.c:
int foo()
return 42;
lib.h:
int foo();
Makefile:
TARGET=libexample.a
all:$(TARGET)
install :
@install -d $(DEST)/usr/lib/
@install -m 0644 $(TARGET) $(DEST)/usr/lib/
@install -d $(DEST)/usr/include/
@install -m 0644 lib.h $(DEST)/usr/include/
$(TARGET) : lib.c
$(CC) -c lib.c -o lib.o
$(AR) rcs $@ lib.o
clean:
rm -rf lib.o $(TARGET)
How exactly to modify the recipe, in order to get the static library in the SDK?
sdk static-libraries yocto
add a comment |
Everyone who searched how to include a static library in SDK, surely read this thread from 2014. I tried what they suggested, but that didn't work.
Reading the yocto mega manual version 2.1 (yocto morty), I found in chapter 5.9.12. (Poky Reference Distribution Changes), that they added DISABLE_STATIC variable, to disable generation of static libraries. I tried adding this to my recipe, and it didn't enable adding static library to SDK:
DISABLE_STATIC = ""
I can see the library in the sysroot when building the image. But it is not getting in the SDK.
So, what exactly do I need to do to get a static library and the headers in SDK?
What worked is adding the staticdev package to ´IMAGE_INSTALL´ in local.conf
, but I don't want to have to do that.
I created an example recipe, which demonstrates my problem. The directory structure is like this:
example-staticlib/
example-staticlib/example-staticlib_0.1.bb
example-staticlib/files/
example-staticlib/files/lib.c
example-staticlib/files/lib.h
example-staticlib/files/Makefile
example-staticlib_0.1.bb :
DESCRIPTION = "example stared library"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://$COMMON_LICENSE_DIR/LGPL-2.0;md5=9427b8ccf5cf3df47c29110424c9641a"
SRC_URI = "file://lib.c
file://lib.h
file://Makefile"
PR = "r0"
S = "$WORKDIR"
ALLOW_EMPTY_$PN = "1"
do_install ()
oe_runmake install DEST=$D
TOOLCHAIN_TARGET_TASK += "example-staticlib-dev"
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
lib.c:
int foo()
return 42;
lib.h:
int foo();
Makefile:
TARGET=libexample.a
all:$(TARGET)
install :
@install -d $(DEST)/usr/lib/
@install -m 0644 $(TARGET) $(DEST)/usr/lib/
@install -d $(DEST)/usr/include/
@install -m 0644 lib.h $(DEST)/usr/include/
$(TARGET) : lib.c
$(CC) -c lib.c -o lib.o
$(AR) rcs $@ lib.o
clean:
rm -rf lib.o $(TARGET)
How exactly to modify the recipe, in order to get the static library in the SDK?
sdk static-libraries yocto
add a comment |
Everyone who searched how to include a static library in SDK, surely read this thread from 2014. I tried what they suggested, but that didn't work.
Reading the yocto mega manual version 2.1 (yocto morty), I found in chapter 5.9.12. (Poky Reference Distribution Changes), that they added DISABLE_STATIC variable, to disable generation of static libraries. I tried adding this to my recipe, and it didn't enable adding static library to SDK:
DISABLE_STATIC = ""
I can see the library in the sysroot when building the image. But it is not getting in the SDK.
So, what exactly do I need to do to get a static library and the headers in SDK?
What worked is adding the staticdev package to ´IMAGE_INSTALL´ in local.conf
, but I don't want to have to do that.
I created an example recipe, which demonstrates my problem. The directory structure is like this:
example-staticlib/
example-staticlib/example-staticlib_0.1.bb
example-staticlib/files/
example-staticlib/files/lib.c
example-staticlib/files/lib.h
example-staticlib/files/Makefile
example-staticlib_0.1.bb :
DESCRIPTION = "example stared library"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://$COMMON_LICENSE_DIR/LGPL-2.0;md5=9427b8ccf5cf3df47c29110424c9641a"
SRC_URI = "file://lib.c
file://lib.h
file://Makefile"
PR = "r0"
S = "$WORKDIR"
ALLOW_EMPTY_$PN = "1"
do_install ()
oe_runmake install DEST=$D
TOOLCHAIN_TARGET_TASK += "example-staticlib-dev"
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
lib.c:
int foo()
return 42;
lib.h:
int foo();
Makefile:
TARGET=libexample.a
all:$(TARGET)
install :
@install -d $(DEST)/usr/lib/
@install -m 0644 $(TARGET) $(DEST)/usr/lib/
@install -d $(DEST)/usr/include/
@install -m 0644 lib.h $(DEST)/usr/include/
$(TARGET) : lib.c
$(CC) -c lib.c -o lib.o
$(AR) rcs $@ lib.o
clean:
rm -rf lib.o $(TARGET)
How exactly to modify the recipe, in order to get the static library in the SDK?
sdk static-libraries yocto
Everyone who searched how to include a static library in SDK, surely read this thread from 2014. I tried what they suggested, but that didn't work.
Reading the yocto mega manual version 2.1 (yocto morty), I found in chapter 5.9.12. (Poky Reference Distribution Changes), that they added DISABLE_STATIC variable, to disable generation of static libraries. I tried adding this to my recipe, and it didn't enable adding static library to SDK:
DISABLE_STATIC = ""
I can see the library in the sysroot when building the image. But it is not getting in the SDK.
So, what exactly do I need to do to get a static library and the headers in SDK?
What worked is adding the staticdev package to ´IMAGE_INSTALL´ in local.conf
, but I don't want to have to do that.
I created an example recipe, which demonstrates my problem. The directory structure is like this:
example-staticlib/
example-staticlib/example-staticlib_0.1.bb
example-staticlib/files/
example-staticlib/files/lib.c
example-staticlib/files/lib.h
example-staticlib/files/Makefile
example-staticlib_0.1.bb :
DESCRIPTION = "example stared library"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://$COMMON_LICENSE_DIR/LGPL-2.0;md5=9427b8ccf5cf3df47c29110424c9641a"
SRC_URI = "file://lib.c
file://lib.h
file://Makefile"
PR = "r0"
S = "$WORKDIR"
ALLOW_EMPTY_$PN = "1"
do_install ()
oe_runmake install DEST=$D
TOOLCHAIN_TARGET_TASK += "example-staticlib-dev"
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
lib.c:
int foo()
return 42;
lib.h:
int foo();
Makefile:
TARGET=libexample.a
all:$(TARGET)
install :
@install -d $(DEST)/usr/lib/
@install -m 0644 $(TARGET) $(DEST)/usr/lib/
@install -d $(DEST)/usr/include/
@install -m 0644 lib.h $(DEST)/usr/include/
$(TARGET) : lib.c
$(CC) -c lib.c -o lib.o
$(AR) rcs $@ lib.o
clean:
rm -rf lib.o $(TARGET)
How exactly to modify the recipe, in order to get the static library in the SDK?
sdk static-libraries yocto
sdk static-libraries yocto
edited Mar 28 '17 at 16:55
BЈовић
asked Mar 28 '17 at 11:54
BЈовићBЈовић
43.3k36138222
43.3k36138222
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Following your added example.
Adding the following line to your image recipe (or to an .bbappend
, eg core-image-minimal.bbappend
)
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
should work for you. That will give you the .a
file in the SDK, after running bitbake core-image-minimal -c populate_sdk
. (Again assuming that the image used is core-image-minimal
).
That your experiment to add the .a
file to $PN-dev
didn't work, is duet to the order of how files are put into packages. The order is $PN-dbg $PN-staticdev $PN-dev $PN-doc $PN-locale $PACKAGE_BEFORE_PN $PN
. Thus, the .a
file will, regardless, be put into $PN-staticdev
, as that packages is handled prior to PN-dev
.
Note, you add this line, TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
to your image recipe, thus, you need to write the package name instead of PN
.
Yeah, remove the two lines you had. The.a
file is automatically picked up by the$PN-staticdev
package.
– Anders
Mar 28 '17 at 14:17
See my added note.
– Anders
Mar 28 '17 at 14:31
See what I added to my answer before my last comment. You need to add the toolchain variable n top the image recipe.
– Anders
Mar 28 '17 at 14:49
Ok, I added an example. So how exactly to modify the recipe? I see it is possible, because other libraries (for example libarchive) are getting their static libraries in the sdk.
– BЈовић
Mar 28 '17 at 16:56
Ok. Only the second toolchain target task is necessary. And you need to move that line to your image recipe, egcore-image-minimal.bb
. Ie the recipe itself can't influence what's added to the SDK nor image.
– Anders
Mar 28 '17 at 16:59
|
show 4 more comments
I tried a way which doesn't require editing the image recipe.
example-staticlib_0.1.bb :
After do_install. I didn't use TOOLCHAIN_TARGET_TASK
FILES_$PN-staticdev += "$libdir/libexample.a"
RDEPENDS_$PN-dev += "$PN-staticdev"
BBCLASSEXTEND = "native nativesdk"
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43068885%2fhow-to-get-static-library-in-sdk%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Following your added example.
Adding the following line to your image recipe (or to an .bbappend
, eg core-image-minimal.bbappend
)
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
should work for you. That will give you the .a
file in the SDK, after running bitbake core-image-minimal -c populate_sdk
. (Again assuming that the image used is core-image-minimal
).
That your experiment to add the .a
file to $PN-dev
didn't work, is duet to the order of how files are put into packages. The order is $PN-dbg $PN-staticdev $PN-dev $PN-doc $PN-locale $PACKAGE_BEFORE_PN $PN
. Thus, the .a
file will, regardless, be put into $PN-staticdev
, as that packages is handled prior to PN-dev
.
Note, you add this line, TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
to your image recipe, thus, you need to write the package name instead of PN
.
Yeah, remove the two lines you had. The.a
file is automatically picked up by the$PN-staticdev
package.
– Anders
Mar 28 '17 at 14:17
See my added note.
– Anders
Mar 28 '17 at 14:31
See what I added to my answer before my last comment. You need to add the toolchain variable n top the image recipe.
– Anders
Mar 28 '17 at 14:49
Ok, I added an example. So how exactly to modify the recipe? I see it is possible, because other libraries (for example libarchive) are getting their static libraries in the sdk.
– BЈовић
Mar 28 '17 at 16:56
Ok. Only the second toolchain target task is necessary. And you need to move that line to your image recipe, egcore-image-minimal.bb
. Ie the recipe itself can't influence what's added to the SDK nor image.
– Anders
Mar 28 '17 at 16:59
|
show 4 more comments
Following your added example.
Adding the following line to your image recipe (or to an .bbappend
, eg core-image-minimal.bbappend
)
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
should work for you. That will give you the .a
file in the SDK, after running bitbake core-image-minimal -c populate_sdk
. (Again assuming that the image used is core-image-minimal
).
That your experiment to add the .a
file to $PN-dev
didn't work, is duet to the order of how files are put into packages. The order is $PN-dbg $PN-staticdev $PN-dev $PN-doc $PN-locale $PACKAGE_BEFORE_PN $PN
. Thus, the .a
file will, regardless, be put into $PN-staticdev
, as that packages is handled prior to PN-dev
.
Note, you add this line, TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
to your image recipe, thus, you need to write the package name instead of PN
.
Yeah, remove the two lines you had. The.a
file is automatically picked up by the$PN-staticdev
package.
– Anders
Mar 28 '17 at 14:17
See my added note.
– Anders
Mar 28 '17 at 14:31
See what I added to my answer before my last comment. You need to add the toolchain variable n top the image recipe.
– Anders
Mar 28 '17 at 14:49
Ok, I added an example. So how exactly to modify the recipe? I see it is possible, because other libraries (for example libarchive) are getting their static libraries in the sdk.
– BЈовић
Mar 28 '17 at 16:56
Ok. Only the second toolchain target task is necessary. And you need to move that line to your image recipe, egcore-image-minimal.bb
. Ie the recipe itself can't influence what's added to the SDK nor image.
– Anders
Mar 28 '17 at 16:59
|
show 4 more comments
Following your added example.
Adding the following line to your image recipe (or to an .bbappend
, eg core-image-minimal.bbappend
)
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
should work for you. That will give you the .a
file in the SDK, after running bitbake core-image-minimal -c populate_sdk
. (Again assuming that the image used is core-image-minimal
).
That your experiment to add the .a
file to $PN-dev
didn't work, is duet to the order of how files are put into packages. The order is $PN-dbg $PN-staticdev $PN-dev $PN-doc $PN-locale $PACKAGE_BEFORE_PN $PN
. Thus, the .a
file will, regardless, be put into $PN-staticdev
, as that packages is handled prior to PN-dev
.
Note, you add this line, TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
to your image recipe, thus, you need to write the package name instead of PN
.
Following your added example.
Adding the following line to your image recipe (or to an .bbappend
, eg core-image-minimal.bbappend
)
TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
should work for you. That will give you the .a
file in the SDK, after running bitbake core-image-minimal -c populate_sdk
. (Again assuming that the image used is core-image-minimal
).
That your experiment to add the .a
file to $PN-dev
didn't work, is duet to the order of how files are put into packages. The order is $PN-dbg $PN-staticdev $PN-dev $PN-doc $PN-locale $PACKAGE_BEFORE_PN $PN
. Thus, the .a
file will, regardless, be put into $PN-staticdev
, as that packages is handled prior to PN-dev
.
Note, you add this line, TOOLCHAIN_TARGET_TASK += "example-staticlib-staticdev"
to your image recipe, thus, you need to write the package name instead of PN
.
edited Mar 29 '17 at 5:39
answered Mar 28 '17 at 12:45
AndersAnders
6,27711427
6,27711427
Yeah, remove the two lines you had. The.a
file is automatically picked up by the$PN-staticdev
package.
– Anders
Mar 28 '17 at 14:17
See my added note.
– Anders
Mar 28 '17 at 14:31
See what I added to my answer before my last comment. You need to add the toolchain variable n top the image recipe.
– Anders
Mar 28 '17 at 14:49
Ok, I added an example. So how exactly to modify the recipe? I see it is possible, because other libraries (for example libarchive) are getting their static libraries in the sdk.
– BЈовић
Mar 28 '17 at 16:56
Ok. Only the second toolchain target task is necessary. And you need to move that line to your image recipe, egcore-image-minimal.bb
. Ie the recipe itself can't influence what's added to the SDK nor image.
– Anders
Mar 28 '17 at 16:59
|
show 4 more comments
Yeah, remove the two lines you had. The.a
file is automatically picked up by the$PN-staticdev
package.
– Anders
Mar 28 '17 at 14:17
See my added note.
– Anders
Mar 28 '17 at 14:31
See what I added to my answer before my last comment. You need to add the toolchain variable n top the image recipe.
– Anders
Mar 28 '17 at 14:49
Ok, I added an example. So how exactly to modify the recipe? I see it is possible, because other libraries (for example libarchive) are getting their static libraries in the sdk.
– BЈовић
Mar 28 '17 at 16:56
Ok. Only the second toolchain target task is necessary. And you need to move that line to your image recipe, egcore-image-minimal.bb
. Ie the recipe itself can't influence what's added to the SDK nor image.
– Anders
Mar 28 '17 at 16:59
Yeah, remove the two lines you had. The
.a
file is automatically picked up by the $PN-staticdev
package.– Anders
Mar 28 '17 at 14:17
Yeah, remove the two lines you had. The
.a
file is automatically picked up by the $PN-staticdev
package.– Anders
Mar 28 '17 at 14:17
See my added note.
– Anders
Mar 28 '17 at 14:31
See my added note.
– Anders
Mar 28 '17 at 14:31
See what I added to my answer before my last comment. You need to add the toolchain variable n top the image recipe.
– Anders
Mar 28 '17 at 14:49
See what I added to my answer before my last comment. You need to add the toolchain variable n top the image recipe.
– Anders
Mar 28 '17 at 14:49
Ok, I added an example. So how exactly to modify the recipe? I see it is possible, because other libraries (for example libarchive) are getting their static libraries in the sdk.
– BЈовић
Mar 28 '17 at 16:56
Ok, I added an example. So how exactly to modify the recipe? I see it is possible, because other libraries (for example libarchive) are getting their static libraries in the sdk.
– BЈовић
Mar 28 '17 at 16:56
Ok. Only the second toolchain target task is necessary. And you need to move that line to your image recipe, eg
core-image-minimal.bb
. Ie the recipe itself can't influence what's added to the SDK nor image.– Anders
Mar 28 '17 at 16:59
Ok. Only the second toolchain target task is necessary. And you need to move that line to your image recipe, eg
core-image-minimal.bb
. Ie the recipe itself can't influence what's added to the SDK nor image.– Anders
Mar 28 '17 at 16:59
|
show 4 more comments
I tried a way which doesn't require editing the image recipe.
example-staticlib_0.1.bb :
After do_install. I didn't use TOOLCHAIN_TARGET_TASK
FILES_$PN-staticdev += "$libdir/libexample.a"
RDEPENDS_$PN-dev += "$PN-staticdev"
BBCLASSEXTEND = "native nativesdk"
add a comment |
I tried a way which doesn't require editing the image recipe.
example-staticlib_0.1.bb :
After do_install. I didn't use TOOLCHAIN_TARGET_TASK
FILES_$PN-staticdev += "$libdir/libexample.a"
RDEPENDS_$PN-dev += "$PN-staticdev"
BBCLASSEXTEND = "native nativesdk"
add a comment |
I tried a way which doesn't require editing the image recipe.
example-staticlib_0.1.bb :
After do_install. I didn't use TOOLCHAIN_TARGET_TASK
FILES_$PN-staticdev += "$libdir/libexample.a"
RDEPENDS_$PN-dev += "$PN-staticdev"
BBCLASSEXTEND = "native nativesdk"
I tried a way which doesn't require editing the image recipe.
example-staticlib_0.1.bb :
After do_install. I didn't use TOOLCHAIN_TARGET_TASK
FILES_$PN-staticdev += "$libdir/libexample.a"
RDEPENDS_$PN-dev += "$PN-staticdev"
BBCLASSEXTEND = "native nativesdk"
edited Mar 8 at 5:23
answered Mar 8 at 4:44
Amit KumarAmit Kumar
187
187
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43068885%2fhow-to-get-static-library-in-sdk%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown