Skip to contentSkip to conversation

Problems creating a bitbake package

DISCUSSION Alan Carvalho de Assis 4 participants 8 messages Nov 4, 2006 – Nov 7, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,
I am new to bitbake package creation.

I am porting the Keith Packard's iPatience to GPE, to it I create this ipatience.bb:
DESCRIPTION = "Patience game"
LICENSE = "GPL"
SECTION = "x11"
PRIORITY = "optional"
MAINTAINER = "Alan Carvalho de Assis <[email protected]>" DEPENDS = "virtual/libx11 libxpm fltk"
PR = "r2"

SRC_URI = "http://augusta.ece.ufrgs.br/ipatience-0.1.tar.gz"

inherit gpe

My first problem:
"bitbake ipatience" command don't obey my SRC_URI tag, this tried download ipatience-0.1.tar.gz from openembedded server and fault.

To "solve" this first problem I copied ipatience.tar.gz to my oeworkspace/sources and create the md5 to it, then bitbake used it correctly. Why bitbake don't obey the SRC_URI?

The original ipatience was using Imakefile, because it need xmkmf I created a automake Makefile.am e configure.in. After a lot errors I get it compiling.

But the libfltk from openembedded FLTK package has a problem:

/ipaq/openembedded/bitbake/tmp/staging/arm-linux/lib/libfltk.so:
undefined reference to `XUnsetICFocus' /ipaq/openembedded/bitbake/tmp/staging/arm-linux/lib/libfltk.so:
undefined reference to `XGetIMValues' /ipaq/openembedded/bitbake/tmp/staging/arm-linux/lib/libfltk.so:
undefined reference to `XSetICValues' /ipaq/openembedded/bitbake/tmp/staging/arm-linux/lib/libfltk.so:
undefined reference to `Xutf8LookupString' /ipaq/openembedded/bitbake/tmp/staging/arm-linux/lib/libfltk.so:
undefined reference to `XSetICFocus' /ipaq/openembedded/bitbake/tmp/staging/arm-linux/lib/libfltk.so:
undefined reference to `XVaCreateNestedList'

| collect2: ld returned 1 exit status
| make: ** [ipatience] Erro 1
| FATAL: oe_runmake failed

NOTE: Task failed:
/ipaq/openembedded/bitbake/tmp/work/arm-linux/ipatience-0.1-r2/temp/log.do_compile.16138
NOTE: package ipatience-0.1-r2: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package ipatience-0.1: failed
ERROR: Build of ipatience failed

The libX11 don't has this functions which libfltk use.

Please, can someone help me?
I spend a long time searching about so many problems which I got doing it, for all problems I found one solution or work-around, but don't found nothing to this last one.

Best regards,

Alan

#1 lore raw

Am 04.11.2006 um 18:31 schrieb Alan Carvalho de Assis:

Quoted 11 lines

SRC_URI = "http://augusta.ece.ufrgs.br/ipatience-0.1.tar.gz"

inherit gpe

My first problem:
"bitbake ipatience" command don't obey my SRC_URI tag, this tried download ipatience-0.1.tar.gz from openembedded server and fault.

To "solve" this first problem I copied ipatience.tar.gz to my oeworkspace/sources and create the md5 to it, then bitbake used it correctly. Why bitbake don't obey the SRC_URI?

because you inherit gpe.bbclass after setting the SRC_URI and the SRC_URI will be overwritten. Take a look at the gpe.bbclass

h.

--
Holger 'zecke' Freyther
geek, QA monkey, OpenEmbedded Engineer

Me http://www.openembedded.org/~zecke
Blog http://zecke.blogspot.com

#2 lore raw

Hi Holger,

Quoted 4 lines · Holger Freyther

because you inherit gpe.bbclass after setting the SRC_URI and the SRC_URI will be overwritten. Take a look at the gpe.bbclass

Sure, it solve the first one problem.

Do you have some idea to solve these undefined references in libfltk.so:
undefined reference to `XUnsetICFocus'
undefined reference to `XGetIMValues'
undefined reference to `XSetICValues'
undefined reference to `Xutf8LookupString'
undefined reference to `XSetICFocus'
undefined reference to `XVaCreateNestedList'

Quoted 3 lines

h.

Cheers,

Quoted 4 lines

--
Holger 'zecke' Freyther
geek, QA monkey, OpenEmbedded Engineer

Alan

#3 lore raw

Alan,

I think that the library Xext is not installed. The dependency line of the file should be similar to:

DEPENDS = "zlib jpeg libpng libxext"

Well, I'm trying to build FLTK with support for anti aliased fonts. ASAP the build image is created successfully, I'll submit the patch.

Thanks and Best Regards,
Joaquim Duran

En/na Alan Carvalho de Assis ha escrit:

Quoted 34 lines

Hi Holger,

Quoted 3 lines · Holger Freyther

because you inherit gpe.bbclass after setting the SRC_URI and the SRC_URI will be overwritten. Take a look at the gpe.bbclass

Sure, it solve the first one problem.

Do you have some idea to solve these undefined references in libfltk.so:
undefined reference to `XUnsetICFocus'
undefined reference to `XGetIMValues'
undefined reference to `XSetICValues'
undefined reference to `Xutf8LookupString'
undefined reference to `XSetICFocus'
undefined reference to `XVaCreateNestedList'

Quoted 2 lines

h.

Cheers,

Quoted 4 lines

--
Holger 'zecke' Freyther
geek, QA monkey, OpenEmbedded Engineer

Alan

_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw

Hi Joaquim,

Quoted 7 lines · Joaquim Duran

Alan,

I think that the library Xext is not installed. The dependency line of the file should be similar to:

DEPENDS = "zlib jpeg libpng libxext"

Thank you very much.

Quoted 3 lines

Well, I'm trying to build FLTK with support for anti aliased fonts. ASAP the build image is created successfully, I'll submit the patch.

Sure, good work. Anyway after I will port ipatience to use GTK because everything in gpe use it and FLTK is not so much used.

Joaquim, do you are a FLTK programmer?

Quoted 1 line

Thanks and Best Regards,

Cheers,

Quoted 2 lines

Joaquim Duran

Alan

#5 lore raw

Alan,

Yesterday, I submitted the patch, but it has not been integrated with the repository (http://bugs.openembedded.org/show_bug.cgi?id=1555).

No, I'm not an FLTK programmer. I would like to use FLTK because in the company that I'm working, it's interested in develop a portable oscilloscope. I needed a plot widget to represent the data acquired, and FLTK had one. I've write a prototype but seen the philosophy of the FTLK, I'll not use if I can.

Some days ago I compiled qwt4.2 rc1 with qte 2.3.10 and qpe1. I'm thinking to switch this environment. Next steps:
- Port QWT 4.2.0 to qte2
- Make a step over and use QTopia 4.2 (that someone else ported) and port qwt 5 to qtopia 4.2 (released today, I think).

Joaquim Duran

En/na Alan Carvalho de Assis ha escrit:

Quoted 36 lines

Hi Joaquim,

Quoted 7 lines · Joaquim Duran

Alan,

I think that the library Xext is not installed. The dependency line of the file should be similar to:

DEPENDS = "zlib jpeg libpng libxext"

Thank you very much.

Quoted 3 lines

Well, I'm trying to build FLTK with support for anti aliased fonts. ASAP the build image is created successfully, I'll submit the patch.

Sure, good work. Anyway after I will port ipatience to use GTK because everything in gpe use it and FLTK is not so much used.

Joaquim, do you are a FLTK programmer?

Quoted 1 line

Thanks and Best Regards,

Cheers,

Quoted 2 lines

Joaquim Duran

Alan

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joaquim Duran schreef:

Quoted 9 lines

Alan,

Yesterday, I submitted the patch, but it has not been integrated with the repository (http://bugs.openembedded.org/show_bug.cgi?id=1555).

No, I'm not an FLTK programmer. I would like to use FLTK because in the company that I'm working, it's interested in develop a portable oscilloscope. I needed a plot widget to represent the data acquired, and FLTK had one.

http://gtkextra.sourceforge.net/ has one as well and is in OE.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFUHlYMkyGM64RGpERAlUeAKCYXYG/BzxddACFViXblByn78KgHgCeLNCl FyeffqUgn2zhTZ0Hnr13ltk=
=nKgP
-----END PGP SIGNATURE-----

#7 lore raw

En/na Koen Kooi ha escrit:

Quoted 8 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joaquim Duran schreef:

Quoted 4 lines

Alan,

Yesterday, I submitted the patch, but it has not been integrated with the repository (http://bugs.openembedded.org/show_bug.cgi?id=1555).

Quoted 8 lines
Quoted 1 line

No, I'm not an FLTK programmer. I would like to use FLTK because in the company that I'm working, it's interested in develop a portable oscilloscope. I needed a plot widget to represent the data acquired, and FLTK had one.

http://gtkextra.sourceforge.net/ has one as well and is in OE.

regards,

Koen

I'll take a look

Joaquim Duran