[maemo-developers] [maemo-developers] include problem
From: rh ronny at get-intouch.comDate: Thu Aug 4 06:17:40 EEST 2005
- Previous message: [maemo-developers] include problem
- Next message: [maemo-developers] Gimp port
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
----- Original Message ----- From: <valtteri at rahkonen.org> To: "rh" <ronny at get-intouch.com> Cc: "maemo-developers" <maemo-developers at 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 > valtteri at rahkonen.org > http://www.rahkonen.org > +358 40 5077041 > Hi, Valtteri Rahkonen, Thank you. It works now. BR, Ronny
- Previous message: [maemo-developers] include problem
- Next message: [maemo-developers] Gimp port
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]