From patchwork Sun Jan 31 05:56:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [oe] building piccontrol - 0.4 failed due to lack of liblua5.1.a Date: Sat, 30 Jan 2010 19:56:58 -0000 From: Guo Hongruan X-Patchwork-Id: 1535 Message-Id: To: "Guo Hongruan" , openembedded-devel@lists.openembedded.org 在 Sun, 31 Jan 2010 13:44:33 +0800,Guo Hongruan 写道: > 在 Sun, 31 Jan 2010 13:22:16 +0800,Khem Raj 写道: > >> 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() {