On 2010-05-19 01:48, Pallavi Kandhare <pallavi.kandh...@yahoo.com> wrote:
Hi David,
I again tried re-doing the entire procedure and the output is as follows:
[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install libosso-abook-dev
Reading package lists... Done
Building dependency tree... Done
libosso-abook-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Good, so you have the right package installed.
[sbox-FREMANTLE_X86: ~] >
---------------------------------------------------------------------------
Now in my project if I add foll lines to Makefile.am
myproj_LDADD = \
$(LIBOSSO_LIBS)
As is mentioned in all the documentation that I linked to the last time
that you had a pkg-config query, you must also use the relevant
preprocessor flags, to ensure that the headers can be found. So, you
would add:
myproj_CPPFLAGS = $(LIBOSSO_CFLAGS)
Of course, this will only work if you use PKG_CHECK_MODULES in
configure.ac to check for libosso-abook-1.0.
the output is as follows:
Description Resource Path Location Type
'book' undeclared (first use in this function) main.c ContactList/src line 45
C/C++ Problem
'EBook' undeclared (first use in this function) main.c ContactList/src line 45
C/C++ Problem
'EBookQuery' undeclared (first use in this function) main.c ContactList/src
line 47 C/C++ Problem
'osso_context' undeclared (first use in this function) main.c ContactList/src
line 111 C/C++ Problem
'query' undeclared (first use in this function) main.c ContactList/src line 47
C/C++ Problem
libebook/e-book.h: No such file or directory main.c ContactList/src line 12
C/C++ Problem
libosso-abook/osso-abook.h: No such file or directory main.c ContactList/src
line 13 C/C++ Problem
make: *** [all] Error 2 ContactList line 0 C/C++ Problem
make[1]: *** [all-recursive] Error 1 ContactList line 0 C/C++ Problem
make[2]: *** [main.o] Error 1 ContactList line 0 C/C++ Problem
---------------------------------------------------------------------------
And if i add below line to configure.ac (making no changes to Makefile.am)
PKG_CHECK_MODULES(libosso, osso-addressbook-1.0)
You should use the same capitalisation for libosso as you do in
Makefile.am, so the libosso above should be LIBOSSO.
Output is:
Package requirements (osso-addressbook-1.0) were not met: configure.ac
Are there any other libraries to be included in Makefile? or any changes to
configure.ac?
As Dave Neary mentioned, the pkg-config file is libosso-abook-1.0,
so you should use that and not osso-addressbook-1.0.
--
David King | http://amigadave.com/
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers