[poky] build issue with pthread
Andrei Gherzan
andrei at gherzan.ro
Thu Dec 15 09:49:35 PST 2011
On 12/15/2011 03:46 AM, Rajkumar Arjunan wrote:
>
> Hi,
>
> I am very new to Yacto project.
>
> I am getting compilation error as "*undefined reference to
> `pthread_create'" *during build.**
>
> I have added -*lpthread* libraray in my makefile to build. Still I
> have issue.
>
> Please explain how to add library in poky build environment.
>
> I have added 3G.bb file and the build output for reference below.
>
> *Note:-*No error If I compile the same source by my desktop Ubuntu
> native compiler *"/usr/bin/gcc"*
>
> *MY 3G.bb file:-*
>
> SUMMARY = "3G API library and Application"
>
> DESCRIPTION = " "
>
> DEPENDS = ""
>
> RDEPENDS_${PN}-dev = ""
>
> LICENSE = "GPLv2+"
>
> LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
>
> SRCREV = "e9078f6e99dde4a90828fa16978ef76897e721a1"
>
> SRC_URI = "file://3G-1.1.tar.gz"
>
> S = "${WORKDIR}/3G-1.1/"
>
> EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include
> -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
>
> do_compile() {
>
> oe_runmake -f pkgs.mak
>
> }
>
> do_install () {
>
> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir}
>
> }
>
>
Just fix your makefile with -pthread.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20111215/e6b89090/attachment.html>
More information about the poky
mailing list