让ThinkPad变成SmackPad!

各种窗口管理器和美化相关
回复
realsky
帖子: 52
注册时间: 2007-09-27 13:31

让ThinkPad变成SmackPad!

#1

帖子 realsky » 2007-11-21 16:40

近日,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
netfalcon
帖子: 24
注册时间: 2006-03-01 13:35

#2

帖子 netfalcon » 2007-11-22 15:14

郁闷阿,我也是这里出错!
头像
内存不足
论坛版主
帖子: 3277
注册时间: 2005-08-18 18:43
联系:

#3

帖子 内存不足 » 2007-11-22 15:21

早晚把显示屏敲掉了 :P
໌→ iCookie Gtk Theme
໌→DropPlusBluetheme
กรัก กรัก`菠萝
fcoffee
帖子: 10
注册时间: 2007-11-28 23:42

#4

帖子 fcoffee » 2007-12-01 15:54

内存不足 写了:早晚把显示屏敲掉了 :P
显示屏敲掉了倒不太可能,不过本来这个东西是用来保护受震动的硬盘的,现在却成了鼓励人去让硬盘受震动。。。。。。。。。。。。
feigao007
帖子: 1
注册时间: 2008-04-09 12:50

#5

帖子 feigao007 » 2008-04-09 12:51

编译器的问题。
cc改为g++
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#6

帖子 skyx » 2008-04-09 13:48

:shock:
no security measure is worth anything if an attacker has physical access to the machine
头像
avenger
帖子: 118
注册时间: 2006-12-07 16:51
联系:

#7

帖子 avenger » 2008-07-09 22:43

依赖关系没装全:

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

这样就可以了。我本地测试成功。
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

#8

帖子 hcym » 2008-07-09 22:49



轻轻敲

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

:D
kotv
帖子: 28
注册时间: 2008-06-28 14:53

#10

帖子 kotv » 2008-07-26 16:05

R61 7742A28 带不带HDASP啊?
回复