Skip navigation.

Fat R笔记……与减肥无关

Fat awful terrible Rubbish-bin

在anjuta中使gtk+项目能够使用libxml2(或别的"第三方"开发库)

, ,

在anjuta中,gnome项目可以直接使用libxml等库,但gtk+项目中就不行,可以看到编译时会提示找不到头文件,链接也不会加上-lxml2开关。对于gtk+项目,要使用libxml2这样的第三方库,可以在compiler and linker settings里手动进行设置:

1 在Settins->Compiler and linker options->Include Paths(就是第二个标签页,中文翻译成了"引用路径"--真不习惯)
输入/usr/include/libxml2,并点add

2 在Settins->Compiler and linker options->Libraries,输入xml2并点add,确认xml2加入在左边"Libraries and modules"列表并选中

3 点close关闭Compiler and linker options对话框,会看到一个提示对话框,选Yes

4 Build->Auto generate(这个中文翻译成"生成建程文件")

5 这时再shift+f11来Build all就应该可以了

使用gnome-sound播放声音fb again

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31