个人工具

“UbuntuHelp:ContinuumOnFeisty”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/ContinuumOnFeisty}} {{Languages|UbuntuHelp:ContinuumOnFeisty}} in order to get Continuum to work on Fiesty, a simple patch must be used to modify ...)
 
第2行: 第2行:
 
{{Languages|UbuntuHelp:ContinuumOnFeisty}}
 
{{Languages|UbuntuHelp:ContinuumOnFeisty}}
 
in order to get Continuum to work on Fiesty, a simple patch must be used to modify the WINE source.
 
in order to get Continuum to work on Fiesty, a simple patch must be used to modify the WINE source.
 
 
Install what you need to compile the WINE source code.<br>
 
Install what you need to compile the WINE source code.<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install build-essential flex bison xlibs-dev x11proto-gl-dev libgl1-mesa-dev fontconfig libfreetype6-dev fontforge checkinstall
 
sudo apt-get install build-essential flex bison xlibs-dev x11proto-gl-dev libgl1-mesa-dev fontconfig libfreetype6-dev fontforge checkinstall
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Download the WINE source code.<br>
 
Download the WINE source code.<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get source wine
 
sudo apt-get source wine
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Change to WINE source directory<br>
 
Change to WINE source directory<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
cd wine*
 
cd wine*
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Open the patch file in gEdit (cont.diff).<br>
 
Open the patch file in gEdit (cont.diff).<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo gedit cont.diff
 
sudo gedit cont.diff
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Copy the following into gedit and save.<br>
 
Copy the following into gedit and save.<br>
 
<pre><nowiki>
 
<pre><nowiki>
第32行: 第27行:
 
OBJECT_ATTRIBUTES  attr;
 
OBJECT_ATTRIBUTES  attr;
 
CLIENT_ID          cid;
 
CLIENT_ID          cid;
 
 
+if (access & PROCESS_VM_WRITE) return NULL;
 
+if (access & PROCESS_VM_WRITE) return NULL;
 
cid.UniqueProcess = (HANDLE)id;
 
cid.UniqueProcess = (HANDLE)id;
 
cid.UniqueThread = 0; /* FIXME ? */
 
cid.UniqueThread = 0; /* FIXME ? */
 
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Apply the patch.<br>
 
Apply the patch.<br>
 
<pre><nowiki>sudo cat cont.diff | patch -p1
 
<pre><nowiki>sudo cat cont.diff | patch -p1
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Configure so your computer is ready to build. (CFLAGS due to Ubuntu bug)<br>
 
Configure so your computer is ready to build. (CFLAGS due to Ubuntu bug)<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ./configure CFLAGS=-fno-stack-protector
 
sudo ./configure CFLAGS=-fno-stack-protector
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Build<br>
 
Build<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo make depend && make
 
sudo make depend && make
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Make a Debian Package and install<br>
 
Make a Debian Package and install<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo checkinstall
 
sudo checkinstall
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Run WINEcfg<br>
 
Run WINEcfg<br>
 
<pre><nowiki>
 
<pre><nowiki>
 
winecfg
 
winecfg
 
</nowiki></pre>
 
</nowiki></pre>
 
 
It is important to run winecfg, select the Drives tab, click C:, Show Advanced, and set the Serial: value to a random number higher than 2000. If you do not, you cannot connect to catid billers, or may cause other issues on the SSC biller.
 
It is important to run winecfg, select the Drives tab, click C:, Show Advanced, and set the Serial: value to a random number higher than 2000. If you do not, you cannot connect to catid billers, or may cause other issues on the SSC biller.
 
 
If there is a problem with sound, you may need to switch it to emulation in the sound tab.
 
If there is a problem with sound, you may need to switch it to emulation in the sound tab.
 
 
Now all you need is to download and install Continuum at http://www.getcontinuum.com/
 
Now all you need is to download and install Continuum at http://www.getcontinuum.com/
 
 
----
 
----
 
[[category:CategoryGames]]
 
[[category:CategoryGames]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 16:36的版本

in order to get Continuum to work on Fiesty, a simple patch must be used to modify the WINE source. Install what you need to compile the WINE source code.

sudo apt-get install build-essential flex bison xlibs-dev x11proto-gl-dev libgl1-mesa-dev fontconfig libfreetype6-dev fontforge checkinstall

Download the WINE source code.

sudo apt-get source wine

Change to WINE source directory

cd wine*

Open the patch file in gEdit (cont.diff).

sudo gedit cont.diff

Copy the following into gedit and save.

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 33f9ee1..d50cb7d 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2460,6 +2464,7 @@ HANDLE WINAPI OpenProcess( DWORD access,
OBJECT_ATTRIBUTES   attr;
CLIENT_ID           cid;
+if (access & PROCESS_VM_WRITE) return NULL;
cid.UniqueProcess = (HANDLE)id;
cid.UniqueThread = 0; /* FIXME ? */

Apply the patch.

sudo cat cont.diff | patch -p1

Configure so your computer is ready to build. (CFLAGS due to Ubuntu bug)

sudo ./configure CFLAGS=-fno-stack-protector

Build

sudo make depend && make

Make a Debian Package and install

sudo checkinstall

Run WINEcfg

winecfg

It is important to run winecfg, select the Drives tab, click C:, Show Advanced, and set the Serial: value to a random number higher than 2000. If you do not, you cannot connect to catid billers, or may cause other issues on the SSC biller. If there is a problem with sound, you may need to switch it to emulation in the sound tab. Now all you need is to download and install Continuum at http://www.getcontinuum.com/