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 _______________________________________________ maemo-developers mailing list [email protected] https://maemo.org/mailman/listinfo/maemo-developers
