http://wiki.openembedded.net/index.php/Openembedded_development_shell explains how to setup and run your build commands in a more “interactive” way.  From what you’re saying, you’ll probably need to list all the files necessary to building your libnmc and make it so that your makefile knows how to build your libnmc stuff.  If this libnmc stuff will be used in other projects, it may be beneficial to make it its own bitbake project.  More than likely your make command is failing and is telling you exactly what to fix so setting up the devshell will help you as you can tweak the Makefile from there.

 

Bill

 

From: Ben [mailto:artec_19@yahoo.com]
Sent: Wednesday, December 03, 2008 11:19 AM
To: Bill Cuffley
Subject: Re: add library /bitbake recipe

 

Bill,

   Thanks for the suggestion!  Unfortunately, I still get the same error when I add "libnmc/libnmc.so" to the list.  There are a lot of files in that folder (20).  I tried adding libnmc.so.1 and libnmc.so.1.0 also.  Same error.  There are 5 other filenames in that folder, each with a .cpp, .o, and .h.  I tried adding the .h's and the .o's.  Same error.  Any other ideas?  Oh, and I changed my makefile from gcc to g++.

-Ben



--- On Tue, 12/2/08, Bill Cuffley <bcuffley@oceanasensor.com> wrote:

From: Bill Cuffley <bcuffley@oceanasensor.com>
Subject: Re: add library /bitbake recipe
To: gumstix-users@lists.sourceforge.net, "artec" <artec_19@yahoo.com>
Date: Tuesday, December 2, 2008, 11:38 AM

In your case, the files that need to be copied to the work environment
need to be listed in the SRC_URI.  Try adding the needed files from your
libnmc folder.
   SRC_URI = " \
     file://hop.cpp \
     file://Makefile \
     file://libnmc/libnmc.so \
   "
Should do it.

Bill
----------------------------------------------------------------------
More info; the complete error from do_install is:
/home/user/gumstix/gumstix-oe/tmp/staging/i686-linux/bin/install-sh:
/home/user/gumstix/gumstix-oe/tmp/work/armv5te-angstrom-linux-gnueabi/ho
pper-1.0.0-r0/hop
does not exist.  I have tried playing around with the makefile, but I
really
do not understand them very well.  Any suggestions would be greatly
appreciated.

Recipe:
   DESCRIPTION = "hopper program"
   PR = "r0"
   DEPENDS = ""

   SRC_URI = "
 \
     file://hop.cpp \
     file://Makefile \
   "
   S = "${WORKDIR}"

   do_install () {
       install -d ${D}${bindir}/
       install -m 0755 ${S}/hop ${D}${bindir}/
   }

   FILES_${PN} = "${bindir}/hop"
-- snip --
As you can see, Makefile references a libnmc folder, which is in the
"files"
subdirectory of hopper.  Do I have to install the libnmc library with
bitbake?  When I run "make hop" it works fine.
----