RE: [maemo-developers] about configure.ac

2006-06-02 Thread Murray Cumming

 I had written something about that.

 This document is describing how to include additional library in an
 automake/autoconf project.
 1)Check if the library is pkg-config enabled, usually the library
 would have the .pc file in the /usr/lib/pkgconfig directory.
 2)From the .pc file, edit and check the version of the library.
 3)At the configure.ac add the following:

 PKG_CHECK_MODULES(MACRO_LIBRARY_NAME, library_name = VERSION
 AC_SUBST(MACRO_LIBRARY_NAME_LIBS)
 AC_SUBST(MACRO_LIBRARY_NAME_CFLAGS)

 4)At the Makefile.am at the src directory, add the following:

 Append $(MACRO_LIBRARY_NAME_CFLAGS) in the INCLUDES line.
 Append $(MACRO_LIBRARY_NAME_LIBS) in the LDADD line.

It if isn't clear, MACRO_LIBRARY_NAME here is any text that you choose. It
can be anything that you like. In my explanation of this, I suggest that
people just call it DEPS.
http://www.openismus.com/documents/linux/using_libraries/using_libraries.shtml#cflagsandlibs


Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] about configure.ac

2006-06-01 Thread Daniel d'Andrada TenĂ³rio de Carvalho

Hi,

Try that on your terminal console: man pkg-config

Regards,
Daniel d'Andrada T. de Carvalho - INdT

ext geu oopsie wrote:

Hi,
I'm new in Linux and Maemo.

I am developing bluetooth application which run in background, it 
doesn't have any UI at all but use additional libraries: openobex-1.2 
and bluez-libs-2.21.

How to configure them in configure.ac?

For example, in maemopad, the configure.ac defines the use of 
gnome-vfs-2.0 with
PKG_CHECK_MODULES(OSSO, libosso = 0.8.4 gnome-vfs-2.0 =2.2 
gnome-vfs-module-2.0 = 2.2)

AC_SUBST(OSSO_LIBS)
AC_SUBST(OSSO_CFLAGS)

how can I define openobex-1.2 and bluez-libs-2.21 like maemopad example 
above?

or if there are links about PKG_CHECK_MODULES syntax please inform me.

thanks,
geuis

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: [maemo-developers] about configure.ac

2006-06-01 Thread Pinghang.Koon
I had written something about that.

This document is describing how to include additional library in an
automake/autoconf project.
1)  Check if the library is pkg-config enabled, usually the library
would have the .pc file in the /usr/lib/pkgconfig directory.
2)  From the .pc file, edit and check the version of the library.
3)  At the configure.ac add the following:

PKG_CHECK_MODULES(MACRO_LIBRARY_NAME, library_name = VERSION
AC_SUBST(MACRO_LIBRARY_NAME_LIBS)
AC_SUBST(MACRO_LIBRARY_NAME_CFLAGS)

4)  At the Makefile.am at the src directory, add the following:

Append $(MACRO_LIBRARY_NAME_CFLAGS) in the INCLUDES line.
Append $(MACRO_LIBRARY_NAME_LIBS) in the LDADD line.

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of geu oopsie
Sent: Thursday, June 01, 2006 6:32 PM
To: maemo-developers@maemo.org
Subject: [maemo-developers] about configure.ac

For example, in maemopad, the configure.ac defines the use of
gnome-vfs-2.0 with
PKG_CHECK_MODULES(OSSO, libosso = 0.8.4 gnome-vfs-2.0 =2.2
gnome-vfs-module-2.0 = 2.2)
AC_SUBST(OSSO_LIBS)
AC_SUBST(OSSO_CFLAGS)

how can I define openobex-1.2 and bluez-libs-2.21 like maemopad example
above?
or if there are links about PKG_CHECK_MODULES syntax please inform me.

thanks,
geuis

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers