You are not logged in.

#1 2005-01-21 00:19:52

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

[games]Cedega-CVS

This will finally work fo me!! TRY it and tell me your Problems


I wrote a PKGBUILD for the CVS-Version of cedega.

I know there´s a very good script for installing/updating/removing cvscedega called WineCVS.sh. And a good instruction how to use it here.
I´ve this script breaks for you have look at the Arch Linux wiki.

But i want to handle the installation of cvscedega with pacman. That´s the reason for this PKGBUILD.


PKGBUILD

pkgname=cvscedega
pkgver=20052101
pkgrel=1
pkgdesc="CVS-Version of cedega, for playing Windows games under Linux"
url="http://www.transgaming.org"
license="Aladdin Free Public License"
depends=('glut' 'fontconfig' 'freetype2' 'bison' 'flex' 'libjpeg' 'libpng' 'zlib')
makedepends=('cvs' 'wget')
source=( )
install=cvscedega.install

build() {
  cd $startdir/src
  #Downloading the sources
  cvs -d:pserver:cvs:cvs@cvs.transgaming.org:/cvsroot login
  cvs -z3 -d:pserver:cvs@cvs.transgaming.org:/cvsroot co winex
  #build
  cd winex/tools
  mv widl/ppl.l widl/ppl.l.new
  tail -n1388 widl/ppl.l.new > widl/ppl.l
  mv wrc/ppl.l wrc/ppl.l.new
  tail -n1388 wrc/ppl.l.new > wrc/ppl.l
  cd ..
  ./configure --enable-pthreads --with-x --enable-opengl --prefix=/usr/lib/cvscedega
  make depend
  make || return 1
  mkdir -p $startdir/pkg/usr/lib/cvscedega
  make prefix=$startdir/pkg/usr/lib/cvscedega install 
  cd $startdir
  mkdir -p pkg/usr/bin
  install -m755 cvscedega pkg/usr/bin
}

you also need two other files. Copy them to you buildpath

cvscedega

#!/bin/bash
export WINEPREFIX="$HOME/.cvscedega"
/usr/lib/cvscedega/bin/wine $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10

cvscedega.install

# This is a default template for a post-install scriptlet.  You can
# remove any functions you don't need (and this header).

# arg 1:  the new package version
pre_install() {
 if ! [ `grep '/usr/lib/cvscedega/lib' etc/ld.so.conf` ]; then
    echo "/usr/lib/cvscedega/lib" >>etc/ld.so.conf
    sbin/ldconfig -r .
  fi


}

# arg 1:  the new package version
post_install() {
  /bin/true
}

# arg 1:  the new package version
# arg 2:  the old package version
pre_upgrade() {
  /bin/true
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  /bin/true
}

# arg 1:  the old package version
pre_remove() {
  /bin/true
}

# arg 1:  the old package version
post_remove() {
  /bin/true
}

op=$1
shift
$op $*

There won´t be a fake-windwos-drive or a config-file after the installation.  You can download it here  extract it into you /home/<username>.

cd 
tar -xvzf  cvscedega_Cdrive.tar.gz

[/code]

Offline

#2 2005-01-21 10:25:21

cstorm
Member
Registered: 2004-11-08
Posts: 17

Re: [games]Cedega-CVS

you have 2 spelling errors. the configure line must be:

  ./configure --enable-pthreads --with-x --disable-trace --enable-opengl --disable-debug --prefix=/opt/cvscedega

which version of cedega is in the cvs repos? i've thought that transgaming stopped "free" distribution of their products via cvs?

Offline

#3 2005-01-21 10:49:59

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: [games]Cedega-CVS

It was very late yesterdy night.  There were much more mistakes in the PKGBUILD wink

Offline

#4 2005-01-21 22:13:28

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [games]Cedega-CVS

Transgaming doesn't like linux distros putting pre-compiled cedega packages in their repos. I guess they feel like people will just install the cvs version and forget that they can buy a full version for $5/mo. I heard that they have threatened to remove CVS access in the past if linux distros didn't stop packaging their product.

Offline

#5 2005-01-22 00:13:45

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: [games]Cedega-CVS

The difference is that this one isn't in an officiall responsitory, so they can' threaten to remove it of the distribution, since it never was a real part of the distribution.

Of course, they forced to remove the ebuild of the gentoo portage, but there still are working ebuilds around. That's something users are doing, and what transgaming can not gain control of.

STi


Ability is nothing without opportunity.

Offline

#6 2005-01-22 01:46:16

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [games]Cedega-CVS

When trying to makepkg I get the following

make[1]: Leaving directory `/var/abs/local/cvscedega/src/winex/tsx11'
make[1]: Entering directory `/var/abs/local/cvscedega/src/winex/dlls'
Makefile is older than Makefile.in, please rerun ../configure
make[1]: *** [Makefile] Error 1
make[1]: Leaving directory `/var/abs/local/cvscedega/src/winex/dlls'
make: *** [dlls] Error 2
==> ERROR: Build Failed.  Aborting...

Edit: This was an issue with my configuration. Cedega compiled but now it can't find it's config files.

Offline

#7 2005-01-22 15:54:17

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: [games]Cedega-CVS

HI. There´s no config/fake-windows-drive after the installation. 
Download THIS and unpack it into /home/<username>.

cd $HOME
tar -xvzf cvscedega_Cdrive.tar.gz

After this,  fake-windows-drive and config-file will be in /home/<uername>/.cvscedega. So cvscedega can be installed next to native wine without trouble.

And if you speak german, here´s another usefull link for cvscedega/wine.

http://www.linuxforen.de/forums/showthr … 570#248570


[/code]

Offline

#8 2005-01-23 06:16:32

Billy Anachronism
Member
Registered: 2004-11-16
Posts: 13

Re: [games]Cedega-CVS

Hi, I used the configure flags that cstorm suggested. I'm pretty sure it compiled fine and installed fine (I came back and there were no errors).

But when I try to run executables I get this error:

err:wave:OSS_WaveOutInit OpenDevice failed (1)
Warning: unprotecting the first 64KB of memory to allow real-mode calls.
         NULL pointer accesses will no longer be caught.
/usr/lib/cvscedega/bin/wine: can't exec '/usr/bin/cvscedega ./i_view32.exe ./i_view32.exe0': invalid exe file

And the program doesn't run. I haven't really dug around much as I only just tried it out but any help would be appreciated.
Thanks

Offline

#9 2005-01-23 12:16:39

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: [games]Cedega-CVS

Sorry, But i can´t help you.I´m not a cedega/wine-guru. I just wrote this PKBUILD for myself, to handle cvscedega with pacman.

The best way to solve you problems may be, going to the  Transgaming-Forum.
Or yoz can go into the #cedega channel on irc.freenode.net.

Offline

#10 2005-01-23 13:43:54

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: [games]Cedega-CVS

Can you play HL 2 with the CVS version of Cedega or do you need some extra stuff to run it?

Offline

#11 2005-01-23 15:06:22

Legout
Member
From: Wuerburg/germany
Registered: 2004-01-19
Posts: 292

Re: [games]Cedega-CVS

I haven´t tried it. Only played CS 1.6 Condition zero and CS Source with cvscedega.
Works godd for me without any "extra-stuff"

Offline

#12 2005-01-23 16:18:30

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [games]Cedega-CVS

The CVS version of Cedega doesn't support InstallShield and copy protection schemes used in lots of newer games. Other than that, I'm pretty sure the only other thing missing is Point2Play, which isn't really necessary. Is there a HL2 demo or something floating around?

Offline

#13 2005-01-23 17:01:39

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: [games]Cedega-CVS

I'm installing my games on WinXP and then run em through cedega, guess I don't need InstallShield or Point2Play thingies;)

I don't know about HL2 demo, but the game is awesome...time consuming though;) Guess i'll try the CVS Cedega real soon as I'm not eager to sit on WinXP too often lol

Offline

#14 2005-01-24 00:10:10

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [games]Cedega-CVS

ill give you a tip, I've been using the 2.6.10-ck5 kernel and since updating it, i've been getting a vast increase in games performance in cedega.

http://members.optusnet.com.au/ckolivas/kernel/

have fun!

Offline

#15 2005-01-24 05:06:24

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [games]Cedega-CVS

Billy Anachronism wrote:

Hi, I used the configure flags that cstorm suggested. I'm pretty sure it compiled fine and installed fine (I came back and there were no errors).

But when I try to run executables I get this error:

err:wave:OSS_WaveOutInit OpenDevice failed (1)
Warning: unprotecting the first 64KB of memory to allow real-mode calls.
         NULL pointer accesses will no longer be caught.
/usr/lib/cvscedega/bin/wine: can't exec '/usr/bin/cvscedega ./i_view32.exe ./i_view32.exe0': invalid exe file

And the program doesn't run. I haven't really dug around much as I only just tried it out but any help would be appreciated.
Thanks

Hmm.. now I've got the same error message. Any luck?

Offline

#16 2005-01-29 13:39:52

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: [games]Cedega-CVS

Warning: unprotecting the first 64KB of memory to allow real-mode calls.
         NULL pointer accesses will no longer be caught.
/usr/lib/cvscedega/bin/wine: can't exec '/usr/bin/cvscedega hl2.exe hl2.exe0': invalid exe file
fixme:xrender:X11DRV_XRender_Finalize Free cached glyphsets

Same here. I'll try to compile cvs-cedega normally.[/code]

Offline

#17 2005-01-30 12:33:04

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: [games]Cedega-CVS

When trying to log in to Cedega CVS repository I get:

cvs -d:pserver:cvs@cvs.transgaming.org:/cvsroot login
Logging in to :pserver:cvs@cvs.transgaming.org:2401/cvsroot
CVS password: 
PAM start error: Critical error - immediate abort
Fatal error, aborting.
cvs [login aborted]: unrecognized auth response from cvs.transgaming.org: pam failed to release authenticator

That's preety annoying. :x

Do you also encounter this error?

Offline

#18 2005-02-10 23:19:22

kill
Member
Registered: 2004-09-30
Posts: 126

Re: [games]Cedega-CVS

I figured out whats going on with this error.

Warning: unprotecting the first 64KB of memory to allow real-mode calls. 
         NULL pointer accesses will no longer be caught. 
/usr/lib/cvscedega/bin/wine: can't exec '/usr/bin/cvscedega hl2.exe hl2.exe0': invalid exe file

The 0 at the end of the exe gives it away.

Change cvscedega file as follows.

#!/bin/bash 
export WINEPREFIX="$HOME/.cvscedega" 
/usr/lib/cvscedega/bin/wine $1 $2 $3 $4 $5 $6 $7 $8 $9 $10

For some reason its reading it wrong when $0 is there, works fine without it.

Offline

#19 2005-02-26 09:26:27

mvdlubbe
Member
Registered: 2004-05-13
Posts: 14

Re: [games]Cedega-CVS

Something is going terribly wrong during make of that script. I also tried it the PKGBUILD way, same error. Which leads me to believe it's either my poor skills, something missing in my system or something wrong with the code. Since I'm the only one reporting this (here) I tend to think it's my system or me.
Does anyone know anything that might resolve this?


Part of the presented errorlog:

make[1]: Leaving directory `/root/.WineCVS/sources/cvscedega/winex/dlls'
make[1]: Entering directory `/root/.WineCVS/sources/cvscedega/winex/miscemu'
LD_LIBRARY_PATH="../unicode:$LD_LIBRARY_PATH" ../tools/winebuild/winebuild -fPIC -L../dlls -o wine.spec.c -spec wine.spec
gcc -MMD -c  -I. -I. -I../include -I../include  -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -I/usr/X11R6/include -o wine.spec.o wine.spec.c
gcc -MMD -c  -I. -I. -I../include -I../include  -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -I/usr/X11R6/include -o main.o main.c
main.c: In function `main':
main.c:114: warning: implicit declaration of function `set_shared_memory_reserved'
ld -r wine.spec.o main.o      -o miscemu.o
make[1]: Leaving directory `/root/.WineCVS/sources/cvscedega/winex/miscemu'
gcc -o wine miscemu/miscemu.o -L./dlls -lntdll -L./library -lwine -L./unicode -lwine_unicode -L./port -lwine_port -lm
miscemu/miscemu.o(.text+0x133a): In function `main':
/root/.WineCVS/sources/cvscedega/winex/miscemu/main.c:114: undefined reference to `set_shared_memory_reserved'
miscemu/miscemu.o(.text+0x1383):/root/.WineCVS/sources/cvscedega/winex/miscemu/main.c:118: undefined reference to `wine_mmap_add_reserve'
collect2: ld returned 1 exit status
make: *** [wine] Error 1


Error in Make

Try fixing the error based on the output above, and
run the script again, without paramaters (Eg: WineCVS.sh)

Offline

#20 2005-02-27 09:09:54

mvdlubbe
Member
Registered: 2004-05-13
Posts: 14

Re: [games]Cedega-CVS

Right. Having no experience with programming in whatever way I just thougt I'd remove the lines that gave the error. Since it wined about implicit declaration, I commented out that line. Then, well, it didn't complain about that anymore. (.WineCVS/sources/cvscedega/winex/miscemu/main.c:114).
Further on, then, it complains about an undefined reference. Well, if it's undefined, I don't need it, I thought. tongue.
Again, remember: I am not bothered by any knowledge of c.

Well, it DID complete and gave me the message

Installing launcher script ...
    Packing sourcetree...
All done ... CVS installed

   Installed as: cvscedega
   Config path : <homedir>/.cvscedega

I'll check back here with further results. (I do not expect it to work, though.)

Offline

#21 2005-02-27 09:35:54

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [games]Cedega-CVS

it is cvs... so its expected to break...

Offline

#22 2005-02-27 10:14:10

alexmat
Member
Registered: 2004-12-31
Posts: 100

Re: [games]Cedega-CVS

mvdlubbe: I tried your trick and got the same errors and made the same fixes. It finished and installed, but cvcedega crashes all the time sad

time to go wash some cars and scrounge up 15 bux  lol

Offline

#23 2005-02-27 12:34:51

mvdlubbe
Member
Registered: 2004-05-13
Posts: 14

Re: [games]Cedega-CVS

Well, I wouldn't go as far as calling it a trick big_smile.

I was struggling with alsa sound problems in cedega.(Thing wanted to use /dev/snd/req but that doesn't exist) Now I suddenly didn't feel like playing puzzles anymore so I put that on hold.
But yes. 'Progress' so far is that I saw the thing say it's installed okay but then never do anything.

Maybe I too gonna have to go get my hands dirty washing cars...

Offline

#24 2005-02-27 13:48:10

mvdlubbe
Member
Registered: 2004-05-13
Posts: 14

Re: [games]Cedega-CVS

I'm, ehm, somewhat surprised but I just played Quake III in cvscedega. Cedega is complaining about not being able to open the OSS sound device but I was able to play.

No idea if it's going to work for anyone else and I'll mention it when I got sound working. But at the moment I don't think that is a related issue...

Offline

#25 2005-02-27 14:00:35

mvdlubbe
Member
Registered: 2004-05-13
Posts: 14

Re: [games]Cedega-CVS

You have lost the lead

The sound problem was unrelated. It was just silly me having the wrong dsp device. Not of any significent interest to this topic.



However: I can state that for me, commenting out the two sections

set_shared_memory_reserved
wine_mmap_add_reserve

in main.c solved the make problem and subsequently made cvscedega install correctly.

Offline

Board footer

Powered by FluxBB