Compile software with OE libraries and a simple Makefile
"Víctor M. Palacio Tárrega"
victorpalacio at adtelecom.es
Tue Nov 11 06:52:48 UTC 2008
Hi all,
I used to compile my software with OE generated libraries using
pkg-config. To do this, I changed PKG_CONFIG_PATH variable to the
directory with .pc files generated for my embedded board.
Example:
#Makefile
...
ifeq ($(TARGET),MX31)
....
export
PKG_CONFIG_PATH=/home/vpalacio/controldevice/oebuild/staging/arm-angstrom-linux-gnueabi/lib/pkgconfig/
GTKmmCONFIG=/home/vpalacio/oe/build/staging/i686-linux/usr/bin/pkg-config
$(PACKAGES)
endif
...
Since OE abi_version change (from 1 to 2), this isn't working, because
.pc files are pointing to host machine libraries, instead OE generated
libraries.
Example: gtkmm-2.4.pc
-------------------------------------------------------------------------------------------------------------------------------------
ABI_VERSION 1 (I can compile with this using Makefile and pkg-config)
prefix=/home/vpalacio/controldevice/oebuild/staging/arm-angstrom-linux-gnueabi/lib/..
exec_prefix=/home/vpalacio/controldevice/oebuild/staging/arm-angstrom-linux-gnueabi/lib/..
libdir=/home/vpalacio/controldevice/oebuild/staging/arm-angstrom-linux-gnueabi/lib
includedir=/home/vpalacio/controldevice/oebuild/staging/arm-angstrom-linux-gnueabi/include
Name: gtkmm
Description: C++ wrapper for GTK+
Requires: glibmm-2.4 gdkmm-2.4 pangomm-1.4 atkmm-1.6 gtk+-2.0
Version: 2.10.10
Libs: -L${libdir} -lgtkmm-2.4
Cflags: -I${includedir}/gtkmm-2.4 -I${libdir}/gtkmm-2.4/include
----------------------------------------------------------------------------------------------------------------------------------------
ABI_VERSION 2 (I cannot compile with this using Makefile and pkg-config)
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
Name: gtkmm
Description: C++ wrapper for GTK+
Requires: glibmm-2.4 giomm-2.4 gdkmm-2.4 pangomm-1.4 atkmm-1.6 gtk+-2.0
Version: 2.14.1
Libs: -L${libdir} -lgtkmm-2.4
Cflags: -I${includedir}/gtkmm-2.4 -I${libdir}/gtkmm-2.4/include
My question is, how can I compile my software with OE libraries now? I
must generate recipes for my software, or there is a simplest way?
There is any example for simple software compilation?.
Thanks in advance,
--
//*Víctor M. Palacio Tárrega*//
c/ Camí de la pelleria 12
08915. Badalona
telf: + 34 663 978 885
www.adtelecom.es <http://www.adtelecom.es/>
More information about the Openembedded-users
mailing list