----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "rh" <[EMAIL PROTECTED]>
Cc: "maemo-developers" <maemo-developers@maemo.org>
Sent: Wednesday, August 03, 2005 5:22 PM
Subject: Re: [maemo-developers] include problem


> On Wed, 3 Aug 2005, rh wrote:
>
> > Hi,
> >
> > I try to include gnome-vfs.h in my app.
> > #include<libgnomevfs/gnome-vfs.h>
> > when I compile my app, the strange error occured, No such file or
directory.
> > But when I compile MaemoPad which contain that include file, no error
occured.
> > Why ?
> >
> > BR,
> > Ronny
>
> You need to check the CFLAGS with pkg-config like this:
>
> <clip>
> [sbox-PC: /usr/lib/pkgconfig] > pkg-config --cflags gnome-vfs-2.0
> -pthread -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
> -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> </clip>
>
> The required libs may be obtained with pkg-config like this:
> <clip>
> [sbox-PC: ~] > pkg-config --libs gnome-vfs-2.0
> -pthread -Wl,--export-dynamic -lgnomevfs-2 -ldbus-glib-1 -lgthread-2.0
> -lgmodule-2.0 -ldl -ldbus-1 -lglib-2.0
> </clip>
>
> You might want to put that to our autotools scripts (with
> PKG_CHECK_MODULES in configure.ac) so that it will be run automatically at
> configure stage.
>
> -- 
> Valtteri Rahkonen
> [EMAIL PROTECTED]
> http://www.rahkonen.org
> +358 40 5077041
>
Hi, Valtteri Rahkonen,

Thank you. It works now.

BR,
Ronny


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

Reply via email to