当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 10 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 让ThinkPad变成SmackPad!
帖子发表于 : 2007-11-21 16:40 

注册: 2007-09-27 13:31
帖子: 52
送出感谢: 0 次
接收感谢: 0 次
近日,Compiz Fusion插件家族再添新丁!

一个新的贡献者──efeller,编写出了一个很酷的插件──smackpad。这个插件能让你的ThinkPad变成“SmackPad”。

什么是smackpad呢?让我们来看看。

首先说明,并非只有ThinkPad才能变成“SmackPad”,只要有HDAPS传感器的笔记本(如大多数ThinkPad系列, Toshiba和Apple MacBook (Pro)都有),都可以安装这个插件。那么如何看自己的本本有没有HDAPS传感器呢?在终端下执行:
ls /sys/devices | grep hdaps

如果返回结果是存在,那么恭喜你。你的本本可以变成“SmackPad”!

说了那么多,还没有说smackpad是什么呢?

就是拍一下笔记本,就会切换一个虚拟桌面(同trl+Alt+左右键效果),COOL!!

看这里的视频
http://linuxdesktop.cn/2007/11/21/compi ... mment-4537

可是我make 老是出错,怎么回事?

compiling : smackpad.c -> build/smackpad.losmackpad.c:29:25: error: compiz-core.h: No such file or directory
In file included from smackpad.c:30:
build/smackpad_options.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:32: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:41: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:45: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:47: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:50: error: expected ‘)’ before ‘*’ token
smackpad.c:59: error: ‘FALSE’ undeclared here (not in a function)
smackpad.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
smackpad.c:69: error: expected ‘)’ before ‘*’ token
smackpad.c:70: error: expected ‘)’ before ‘*’ token
smackpad.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’smackpadInitObject’
smackpad.c:74: error: expected ‘)’ before ‘*’ token
smackpad.c:75: error: expected ‘)’ before ‘*’ token
smackpad.c:76: error: expected ‘)’ before ‘*’ token
smackpad.c: In function ’smackpadReadHDAPSData’:
smackpad.c:84: error: ‘FILE’ undeclared (first use in this function)
smackpad.c:84: error: (Each undeclared identifier is reported only once
smackpad.c:84: error: for each function it appears in.)
smackpad.c:84: error: ‘file’ undeclared (first use in this function)
smackpad.c:89: warning: implicit declaration of function ‘fopen’
smackpad.c:89: warning: nested extern declaration of ‘fopen’
smackpad.c:99: warning: implicit declaration of function ‘fread’
smackpad.c:99: warning: nested extern declaration of ‘fread’
smackpad.c:100: warning: implicit declaration of function ‘fclose’
smackpad.c:100: warning: nested extern declaration of ‘fclose’
smackpad.c:103: warning: implicit declaration of function ’sscanf’
smackpad.c:103: warning: incompatible implicit declaration of built-in function ’sscanf’
smackpad.c:107: error: ‘TRUE’ undeclared (first use in this function)
smackpad.c:109: warning: control reaches end of non-void function
smackpad.c: In function ’smackpadDetectInvertedAxes’:
smackpad.c:116: error: ‘FILE’ undeclared (first use in this function)
smackpad.c:116: error: ‘file’ undeclared (first use in this function)
smackpad.c:126: warning: incompatible implicit declaration of built-in function ’sscanf’
smackpad.c:129: error: ‘TRUE’ undeclared (first use in this function)
smackpad.c:132: warning: control reaches end of non-void function
smackpad.c: In function ’smackpadRotate’:
smackpad.c:140: error: ’screen’ undeclared (first use in this function)
smackpad.c: In function ’smackpadGetPosition’:
smackpad.c:194: warning: implicit declaration of function ‘abs’
smackpad.c:217: warning: implicit declaration of function ‘nanosleep’
smackpad.c:217: warning: nested extern declaration of ‘nanosleep’
smackpad.c: At top level:
smackpad.c:224: error: expected ‘)’ before ‘*’ token
smackpad.c: In function ’smackpadInitHDAPS’:
smackpad.c:234: error: ‘FILE’ undeclared (first use in this function)
smackpad.c:234: error: ‘file’ undeclared (first use in this function)
smackpad.c:240: error: ‘TRUE’ undeclared (first use in this function)
smackpad.c:244: warning: control reaches end of non-void function
smackpad.c: At top level:
smackpad.c:247: error: expected ‘)’ before ‘*’ token
smackpad.c:272: error: expected ‘)’ before ‘*’ token
smackpad.c:281: error: expected ‘)’ before ‘*’ token
smackpad.c:291: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’smackpadInitObject’
smackpad.c:304: error: expected ‘)’ before ‘*’ token
smackpad.c:314: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’smackpadVTable’
smackpad.c:325: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make: *** [build/smackpad.lo] 错误 1


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-11-22 15:14 

注册: 2006-03-01 13:35
帖子: 24
送出感谢: 0 次
接收感谢: 0 次
郁闷阿,我也是这里出错!


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-11-22 15:21 
头像

注册: 2005-08-18 18:43
帖子: 3277
送出感谢: 0 次
接收感谢: 3
早晚把显示屏敲掉了 :P


_________________
໌→ iCookie Gtk Theme
໌→DropPlusBluetheme
กรัก กรัก`菠萝


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-12-01 15:54 

注册: 2007-11-28 23:42
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
内存不足 写道:
早晚把显示屏敲掉了 :P


显示屏敲掉了倒不太可能,不过本来这个东西是用来保护受震动的硬盘的,现在却成了鼓励人去让硬盘受震动。。。。。。。。。。。。


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-04-09 12:51 

注册: 2008-04-09 12:50
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
编译器的问题。
cc改为g++


页首
 用户资料  
 
6 楼 
 文章标题 :
帖子发表于 : 2008-04-09 13:48 
头像

注册: 2006-12-23 13:46
帖子: 9203
地址: Azores Islands
送出感谢: 0 次
接收感谢: 1
:shock:


_________________
no security measure is worth anything if an attacker has physical access to the machine


页首
 用户资料  
 
7 楼 
 文章标题 :
帖子发表于 : 2008-07-09 22:43 
头像

注册: 2006-12-07 16:51
帖子: 118
送出感谢: 0 次
接收感谢: 0 次
依赖关系没装全:

sudo aptitude install build-essential git-core libc6 libc6-i686 libcairo2 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libpango1.0-0 libpng12-0 libsm6 libstartup-notification0 libx11-6 libxau6 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxinerama1 libxml2 libxrandr2 libxrender1 libxslt1.1 zlib1g compiz compiz-bcop compiz-core compiz-dev compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-kde compiz-plugins compizconfig-settings-manager libcompizconfig-backend-gconf libcompizconfig-backend-kconfig libcompizconfig0 libcompizconfig0-dev libdecoration0 libdecoration0-dev python-compizconfig libtool

这样就可以了。我本地测试成功。


页首
 用户资料  
 
8 楼 
 文章标题 :
帖子发表于 : 2008-07-09 22:49 
头像

注册: 2007-05-06 2:46
帖子: 15634
送出感谢: 0 次
接收感谢: 2


轻轻敲

轻度脑震荡没关系,敲巧了有延年益寿之效

:D


页首
 用户资料  
 
9 楼 
 文章标题 :
帖子发表于 : 2008-07-10 18:25 
头像

注册: 2008-04-26 12:41
帖子: 10974
送出感谢: 11
接收感谢: 38
一天到晚敲硬盘,脑壳进水了? :em30


_________________
[新手必读]wubi安装常见问题(FAQ)
[分享]装双系统的同学必看——Windows与Linux系统共享交换分区的方法
kde下唯美的暗黑内透主题(无需编译)
无穷老机上的Trinity Desktop Environment


页首
 用户资料  
 
10 楼 
 文章标题 :
帖子发表于 : 2008-07-26 16:05 

注册: 2008-06-28 14:53
帖子: 28
送出感谢: 0 次
接收感谢: 0 次
R61 7742A28 带不带HDASP啊?


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 10 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译