Re: [Ubuntu-zh] 怎样编译gtk程序啊

Shixin Zeng shixinzeng at gmail.com
Tue Jul 11 09:37:17 BST 2006


On 7/11/06, Tang Zhilong <ak474840 at gmail.com> wrote:
>
> root at ubuntulike:/home/tzl# cc window.c -o windows 'pkg-config --cflags
> --libs gnomeui'
> cc: 'pkg-config: No such file or directory
> cc: gnomeui': No such file or directory
> cc1: error: unrecognized command line option "-fcflags"
> cc1: error: unrecognized command line option "-flibs"
>

Firstly, the command should be enclosed by ` (backquote)s not ' (single
quote)s.
Secondly, I'm not sure if "gnomeui" is correct or not, I guess it should be
libgnomeui(? I haven't access to a Linux now ATM). However, you could check
it by seeing if there is a file "gnomeui.pc" in /usr/lib/pkg-config/.

 how to deal with this problem
>
>
> On 7/10/06, Shixin Zeng < shixinzeng at gmail.com> wrote:
> >
> >
> >
> >  On 7/10/06, Tang Zhilong < ak474840 at gmail.com> wrote:
> >
> > > sorry.i mean how to build an gtk environment.
> > > when i use the order like yours,i always get a error"can't find
> > > pkg-config" or sonething like this.
> > >
> >
> >  You should install pkg-config first.
> > Of course, If your GTK+ is not new enough, e.g. released before
> > pkg-config was invented, you should use gtk-config. As you said that
> > 'gtk-config' did work on your system, I presume that this is not
> > the your case.
> >
> >  On 7/10/06, Shixin Zeng <shixinzeng at gmail.com > wrote:
> > > >
> > > >
> > > > Sorry, forgot a CC
> > > >
> > > > ---------- Forwarded message ----------
> > > > From: Shixin Zeng < shixinzeng at gmail.com>
> > > > Date: Jul 10, 2006 7:11 PM
> > > > Subject: Re: [Ubuntu-zh] 怎样编译gtk程序啊
> > > > To: Tang Zhilong < ak474840 at gmail.com>
> > > >
> > > >
> > > > gcc `pkg-config gtk+-2.0 --cflags --libs` -o hw hello.c
> > > >
> > > > On 7/10/06, Tang Zhilong <ak474840 at gmail.com > wrote:
> > > > >
> > > > > gtk-config没用
> > > > >
> > > > > --
> > > > > ubuntu-zh mailing list
> > > > > ubuntu-zh at lists.ubuntu.com
> > > > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Best regards
> > > >
> > > >
> > > > Shixin Zeng
> > > >
> > > >
> > > > --
> > > > Best regards
> > > >
> > > >
> > > > Shixin Zeng
> > > >
> > > > --
> > > > ubuntu-zh mailing list
> > > > ubuntu-zh at lists.ubuntu.com
> > > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
> > > >
> > > >
> > > >
> > >
> >
> >
> > --
> > Best regards
> >
> >
> > Shixin Zeng
> >
> > --
> > ubuntu-zh mailing list
> > ubuntu-zh at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
> >
> >
> >
>


-- 
Best regards

Shixin Zeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20060711/b022156e/attachment-0001.htm


More information about the ubuntu-zh mailing list