风..竹... (Feng ZHU ?)

http://blogs.sun.com/zhufeng/date/20081118 星期二 2008年11月18日

在OpenSolaris上配置wine玩实况足球

OpenSolaris的wine虽然blastwave和sunfreeware都没有,但是网上能搜到安装包,下面介绍下编译wine的过程,来自lets check out wine on OpenSolaris



  1. 这里下载最新的源码包。

  2. 以我的wine-1.1.8.tar.bz2为例,系统为OpenSolaris build 101a:


    • $ bunzip2 -c wine-1.1.8.tar.bz2 |tar xvf -

    • $ cd wine-1.1.8

    • export $PATH=/usr/sfw/bin:$PATH  (首先要确定安装了gcc,这里要使用它)

    • CFLAGS=-O3 ./configure --prefix=/opt/wine

    • gmake

    • sudo gmake install


  3. 如果需要声音,wine是不支持OpenSolaris的SUN audio的,需要安装OSS的驱动。


    • opensound下载solaris版的驱动,下载oss-solaris-v4.0-1016-i386.pkg

    • $ pfexec pkg add -d  oss-solaris-v4.0-1016-i386.pkg

    • $ sudo ossdetect

    • $ sudo reboot 重启后用osstest测试一下声音应该可以听到了。然后要重新configure wine就可以看到wine找到audio支持。

    • 在我的笔记本上(DELL D620)的earphone jack sence不能在oss下工作,也就是耳机插上,speaker还在吱吱乱叫,查看到了一个arch linux的oss文档,说这是vs alsa的缺点之一,依赖于主板,有的能支持有的不能支持,每次用耳机就要ossxmix禁掉speaker是很痛苦的。。如果要删除oss驱动别忘了要重新fix一下SUNWaudiohd驱动 pfexec pkg fix SUNWaudiohd,因为OSS把这个包的几个文件覆盖掉了,重启就能用回SUNWaudiohd声音驱动。


  4. wine装好了,先看看能不能用


    • $ /opt/wine/bin/wine notepad

    • $ /opt/wine/bin/winecfg 可以看到些配置


  5. 随便找个实况足球硬盘版之类的解压掉,假设是PES6目录


    • $ mv PES6 ~/.wine/driver_c/

    • 编辑PES6.REG找这个改成这样"installdir"="c:\\PES6\\",运行/opt/wine/bin/wine regedit导入这个注册表文件。

    • $ cd ~/.wine/drive_c/PES6/

    • $ /opt/wine/bin/wine SETTINGS.EXE 把分辨率改成640x480,画质调低

    • $ /opt/wine/bin/wine PES6.EXE


  6. 为PES6打补丁,一般是放在我的文档的KONAMI之类的目录下,在wine里是这个路径


    • /.wine/drive_c/windows/profiles/YourLoginName/My Documents/KONAMI/Pro Evolution Soccer 6/save/folder1


  7. 把中文补丁放进去覆盖掉就可以了,中文的PES6就出来啦!在我的D620上还是很流畅的 ~_~


评论:

Cool! I'm using wine after seeing your article! So great!

发表于 Paul 在 2008年12月03日, 06:13 下午 CST #

CFLAGS=-O3
这个起什么作用呢?

发表于 Paul 在 2008年12月03日, 06:39 下午 CST #

Paul:

CFLAGS=-O3, gcc的O3级优化

发表于 Feng 在 2008年12月12日, 10:59 上午 CST #

我的版本是OpenSolaris 2008.11 snv_101b_rc2 X86.

按照你的方法编译时,出现如下的错误:
configure: error: X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.

发表于 fiona duan 在 2008年12月14日, 06:55 下午 CST #

Hi, Fiona,
你需要先安装X的开发包SUNWxorg-headers

$pfexec pkg install SUNWxorg-headers

发表于 Feng Drake Zhu 在 2008年12月15日, 03:57 下午 CST #

Fiona, 也许还有SUNWxwinc

发表于 Feng Drake Zhu 在 2008年12月15日, 03:58 下午 CST #

发表一条评论:
  • HTML语法: 禁用