Chinaunix首页 | 论坛 | 博客
  • 博客访问: 102128189
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-04-27 11:16:48


 
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://stlzy.blog.51cto.com/69882/49236
废话开讲前,请大家先看看我的屏幕效果图一张:

默认Ubuntu Gutsy,默认的Compiz Fusion,安装Freewins插件
先下载这个 http://blog.51cto.com/attachment/200711/69882_1194308328.zip
看实录,包括错误和处理
cd freewins-0.3-0.6
ls
AUTHORS freewins.c freewins.xml Makefile
COPYING freewins.o libfreewins.la
make clean
rm -rf *.lo *.o libfreewins.* .libs *~ freewins.schema
make
libtool –mode=compile gcc `pkg-config –cflags compiz` -Wall -shared -c -o freewins.lo freewins.c
Package compiz was not found in the pkg-config search path.
Perhaps you should add the directory containing `compiz.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘compiz’ found
/bin/sh: libtool: not found
make: *** [freewins.lo] 错误 127

通过新立得软件包管理器搜索libtools安装上并重新来一遍:

make
libtool –mode=compile gcc `pkg-config –cflags compiz` -Wall -shared -c -o freewins.lo freewins.c
Package compiz was not found in the pkg-config search path.
Perhaps you should add the directory containing `compiz.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘compiz’ found
mkdir .libs
gcc -Wall -shared -c freewins.c -fPIC -DPIC -o .libs/freewins.o
freewins.c:1:20: error: compiz.h: No such file or directory
freewins.c:59: error: expected specifier-qualifier-list before ‘HandleEventProc’
freewins.c:73: error: expected specifier-qualifier-list before ‘PaintOutputProc’
freewins.c:100: error: expected specifier-qualifier-list before ‘Bool’
freewins.c:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsMetadata’
freewins.c:115: error: expected ‘)’ before ‘*’ token
freewins.c:228: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘FWPaintWindow’
freewins.c:274: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘FWPaintOutput’
freewins.c:340: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘FWDamageWindowRect’
freewins.c:360: error: expected ‘)’ before ‘*’ token
freewins.c:375: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘initiateFWRotate’
freewins.c:426: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘resetFWRotation’
freewins.c:454: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘toggleFWAxis’
freewins.c:466: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
freewins.c:475: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsSetDisplayOption’
freewins.c:507:33: warning: “/*” within comment
freewins.c:517: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsOptionInfo’
freewins.c:523: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
freewins.c:528: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsInitWindow’
freewins.c:558: error: expected ‘)’ before ‘*’ token
freewins.c:572: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsInitScreen’
freewins.c:600: error: expected ‘)’ before ‘*’ token
freewins.c:617: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsInitDisplay’
freewins.c:647: error: expected ‘)’ before ‘*’ token
freewins.c:686: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsInit’
freewins.c:701: error: expected ‘)’ before ‘*’ token
freewins.c:710: error: expected ‘)’ before ‘*’ token
freewins.c:718: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘freewinsVTable’
freewins.c:736: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make: *** [freewins.lo] 错误 1

晕,请教酷狗大神后找到治疗秘方:

sudo apt-get install compiz-bcop compiz-dev build-essential libxcomposite-dev libpng12-dev libsm-dev libxrandr-dev libxdamage-dev libxinerama-dev emerald libstartup-notification0-dev libgconf2-dev librsvg2-dev libdbus-1-dev libdbus-glib-1-dev libgnome-desktop-dev x11proto-scrnsaver-dev libxss-dev libxslt1-dev libtool
……
……
装完后重来,
make clean
make
mkdir -p ~/.compiz/metadata/
make install





本文出自 “+lzy's blog” 博客,请务必保留此出处http://stlzy.blog.51cto.com/69882/49236


附件下载:
  freewins插件包

阅读(340) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~