[oe] building piccontrol - 0.4 failed due to lack of liblua5.1.a

Guo Hongruan camelguo at gmail.com
Sun Jan 31 05:56:58 UTC 2010


在 Sun, 31 Jan 2010 13:44:33 +0800,Guo Hongruan <camelguo at gmail.com> 写道:

> 在 Sun, 31 Jan 2010 13:22:16 +0800,Khem Raj <raj.khem at gmail.com> 写道:
>
>> in your build tree check where liblua5.1.a is installed and then
>> go from there.
>
> instead of liblue5.1.a, I found libua.a on my build tree. Maybe it is  
> the cause of the error.
>
> ./armv5te-oe-linux-gnueabi/lib/liblua.a
>

I found it, it is caused by
1. lua5.1_5.1.4.bb install lib/liblua. to staging directory;
2. but piccoontrol_0.4.bb tries to link liblua5.1.a, which name is  
liblua.a.
    20 LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "

changing piccontrol_0.4.bb may correct the error.

diff --git a/recipes/piccontrol/piccontrol_0.4.bb  
b/recipes/piccontrol/piccontrol_0.4.bb
index cfdef98..854f156 100644
--- a/recipes/piccontrol/piccontrol_0.4.bb
+++ b/recipes/piccontrol/piccontrol_0.4.bb
@@ -17,7 +17,7 @@ inherit update-rc.d
  INITSCRIPT_NAME = "piccontrol"
  INITSCRIPT_PARAMS = "defaults"

-LDFLAGS        += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "
+LDFLAGS        += " ${STAGING_LIBDIR}/liblua.a -lpthread -lm -ldl "
  CFLAGS += " -I${STAGING_INCDIR}/lua5.1 "

  do_install() {



-- 
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com




More information about the Openembedded-devel mailing list