|
|
第 1 帖 | |||
|
|
标题: 给zhcon打了个patch,附上PKGBUILD 说在前面
zhcon不支持我的utf8编码,所以一直没有用。最近看到很多兄弟提到zhcon,还有一个用gentoo的网友也问我zhcon的编译问题。今天正好有时间,我把zhcon的代码看一看,做了点小改动,让03年的代码在我的系统里编译通过了。 我的系统 引用:
引用:
把下面的内容保存在一个名为archlinuxpkg.patch的文件里: 代码:
代码:
然后用root在这个目录里执行makepkg命令: #makepkg 最后,用pacman安装: #pacman -A zhcon-0.2.3-0.pkg.tar.gz 卸载时也是用pacman: #pacman -R zhcon 祝大家开心! :) 此帖于 05-10-24 13:55 被 echofrompat 编辑. |
|||
|
|
|
|||
|
|
第 2 帖 | |
|
|
Great! 很好!
__________________
To believe yourself to be brave is to be brave; it is the only essential thing -Mark Twain |
|
|
|
|
|
|
|
第 3 帖 | |
|
|
NOTE:
((__u16*)dest32)++) != ((__u16*)dest32)+1) fb_writew((nibbletab_cfb8[*cdat & 0xc] & eorx) ^ bgx, ((__u16*)dest32)++); ==> fb_writew((nibbletab_cfb8[*cdat & 0xc] & eorx) ^ bgx, ((__u16*)dest32)); dest32 = ((__u16*)dest32) + 1;
__________________
sunmoon1997@localhost ~ $ emerge --info Portage 2.1_rc1-r2 (default-linux/amd64/2006.0, gcc-4.0.3, glibc-2.4-r2, 2.6.16-gentoo-r6 x86_64) ================================================================= System uname: 2.6.16-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre19 Can you understand linux? Can you foresee the future of linux? 此帖于 05-10-23 16:13 被 sunmoon1997 编辑. |
|
|
|
|
|
|
|
第 4 帖 | |
|
|
我错了。 :$ 谢谢日月大哥指正
patch在一楼那里已经改过来了,dest32是取值后再自身加1。之前那个patch我试运行过,似乎没什么问题,再修改后,现在的程序逻辑应该一致了。 |
|
|
|
|
|
|
|
第 5 帖 | |
|
|
为什么我运行makepkg就报告如下错误呢?
: command not found: '/PKGBUILD: line 13: syntax error near unexpected token `{ '/PKGBUILD: line 13: `build() { ) does not exist.l scriptlet ( |
|
|
|
|
|
|
|
第 6 帖 | |
|
|
我把PKGBUILD用"CODE"的格式再粘贴了一遍,又试着取消代码里的“自动分析超链接”选项,但是没见作用,PKGBUILD显示得不好。
这样好了,我把patch和PKGBUILD这两个文件打了个包,发在附件里了,南蛮,能再试试吗?谢谢~ 此帖于 05-10-24 13:55 被 echofrompat 编辑. |
|
|
|
|
|
|
|
第 7 帖 | |
|
|
成功了,爽死了,多谢了。
|
|
|
|
|
|
|
|
第 8 帖 | |
|
|
等了很久了,终于有人做这个大贡献了,真是万分感谢,马上回去试试。
|
|
|
|
|
|
|
|
第 9 帖 | |
|
|
Making all in src
make[2]: Entering directory `/home/zhcon/zhcon_pkg/src/zhcon-0.2.3/src' Making all in display make[3]: Entering directory `/home/zhcon/zhcon_pkg/src/zhcon-0.2.3/src/display' source='fbdev.cpp' object='fbdev.o' libtool=no \ depfile='.deps/fbdev.Po' tmpdepfile='.deps/fbdev.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -march=i686 -O2 -pipe -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fbdev.o `test -f fbdev.cpp || echo './'`fbdev.cpp /usr/local/include/pthread.h:285: error: conflicting declaration 'typedef struct pthread_st* pthread_t' /usr/include/bits/pthreadtypes.h:150: error: 'pthread_t' has a previous declaration as 'typedef long unsigned int pthread_t' /usr/local/include/pthread.h:286: error: conflicting declaration 'typedef struct pthread_attr_st* pthread_attr_t' /usr/include/bits/pthreadtypes.h:52: error: 'pthread_attr_t' has a previous declaration as 'typedef struct __pthread_attr_s pthread_attr_t' /usr/local/include/pthread.h:287: error: conflicting declaration 'typedef int pthread_key_t' /usr/include/bits/pthreadtypes.h:80: error: 'pthread_key_t' has a previous declaration as 'typedef unsigned int pthread_key_t' /usr/local/include/pthread.h:289: error: conflicting declaration 'typedef int pthread_mutexattr_t' /usr/include/bits/pthreadtypes.h:100: error: 'pthread_mutexattr_t' has a previous declaration as 'typedef struct pthread_mutexattr_t pthread_mutexattr_t' /usr/local/include/pthread.h:290: error: conflicting declaration 'typedef struct pthread_mutex_st* pthread_mutex_t' /usr/include/bits/pthreadtypes.h:93: error: 'pthread_mutex_t' has a previous declaration as 'typedef struct pthread_mutex_t pthread_mutex_t' /usr/local/include/pthread.h:291: error: conflicting declaration 'typedef int pthread_condattr_t' /usr/include/bits/pthreadtypes.h:77: error: 'pthread_condattr_t' has a previous declaration as 'typedef struct pthread_condattr_t pthread_condattr_t' /usr/local/include/pthread.h:292: error: conflicting declaration 'typedef struct pthread_cond_st* pthread_cond_t' /usr/include/bits/pthreadtypes.h:70: error: 'pthread_cond_t' has a previous declaration as 'typedef struct pthread_cond_t pthread_cond_t' /usr/local/include/pthread.h:293: error: conflicting declaration 'typedef int pthread_rwlockattr_t' /usr/include/bits/pthreadtypes.h:126: error: 'pthread_rwlockattr_t' has a previous declaration as 'typedef struct pthread_rwlockattr_t pthread_rwlockattr_t' /usr/local/include/pthread.h:294: error: conflicting declaration 'typedef struct pthread_rwlock_st* pthread_rwlock_t' /usr/include/bits/pthreadtypes.h:118: error: 'pthread_rwlock_t' has a previous declaration as 'typedef struct _pthread_rwlock_t pthread_rwlock_t' make[3]: *** [fbdev.o] Error 1 make[3]: Leaving directory `/home/zhcon/zhcon_pkg/src/zhcon-0.2.3/src/display' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/zhcon/zhcon_pkg/src/zhcon-0.2.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/zhcon/zhcon_pkg/src/zhcon-0.2.3' make: *** [all] Error 2 ==> ERROR: Build Failed. Aborting... What's the meaning of the information? How can I do? |
|
|
|
|
|
|
|
第 10 帖 | |
|
|
你是用root用户编译的吗?
|
|
|
|
|
|
|
|
第 11 帖 | |
|
|
hyacinth,
我的系统里没有/usr/local/include/pthread.h这个头文件。不知道你那边是不是手动安装了新的pthread库?Archlinux里,/usr/local/include应该放的是应用程序的头文件啊。或者您先用root执行ldconfig,然后再试着编译一次?谢谢先~ P.S. 你的gcc是4.0的吗? 此帖于 05-10-26 10:07 被 echofrompat 编辑. |
|
|
|
|
|
|
|
第 12 帖 | |
|
|
我的gcc不是4.0的,一定要4.0的啊?那我升到4.0试试。
|
|
|
|
|
|
|
|
第 13 帖 | |
|
|
gcc 不一定是要4.0的。只是gcc从3.4开始就加强了对语法的检查,所以在编译以前老的代码时可能会报错。
我想你的问题在于链接上。似乎你的pthread库有问题。 其他兄弟都可以编译通过吗? |
|
|
|
|
|
|
|
第 14 帖 | |
|
|
用上了,真好!谢谢!
|
|
|
|
|
|
|
|
第 15 帖 | |
|
|
你的补丁是起什么作用的?
是否现在可以支持utf-8了? 现在有没有支持utf-8且有中文输入法且不用给内核找补丁的终端??
__________________
^ ^ ^ 财路: www.cailu.org -------------------------------------------------- |
|
|
|
|
|