[maemo-developers] [maemo-developers] cannot compile example_libosso.c

From: Santtu Lakkala inz at inz.fi
Date: Fri Jul 7 14:15:14 EEST 2006
Hash: SHA1

Dionisis Petromanolakis wrote:
> hi Laszlo and all,
> what do you mean with makefile?I just downloaded the file from the maemo.org. I didnt find a makefile. Instead im trying to compile it from the command prompt. but the compilation always fails. The command i use is "gcc -o example_libosso example_libosso.c 'pkg-config --cflags gtk+-2.0 hildon-libs' -ansi -Wall 'pkg-config --libs gtk+-2.0 hildon-libs'", is something wrong with the command? Do i need to specify the libosso library from path /usr/lib directory. I assume that the program may cannot see this library. I tried to include /usr/lib/libosso.so in the compilation but it didnt find the file. 
> Do i need to download another file? Do i need to use another command option?

libosso has pkgconfig file, so you can simply add libosso to pkg-config
packages. i.e. "pkg-config libosso gtk+-2.0 hildon-libs --cflags" and
obviously the same for --libs.

Or you can also just grab the makefile and all the examples from
stage[1]. There is also newer example, that no longer uses
gtk_infoprint, but the successor HildonBanner.


- --
Santtu Lakkala
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the maemo-developers mailing list