VOGONS


Tutorial: dosbox with Glide under Linux

Topic actions

Reply 22 of 71, by Hinrik

User metadata
Rank Newbie
Rank
Newbie

Thanks, Glide support works now. I'm able to run Tomb Raider with the Voodoo Rush patch. Unfortunately the game I really wanted to run, Carmageddon, doesn't work. I just get a black screen and no sound (like DOSBox is stuck) when I start it. Works fine in non-3dfx mode. Oh well, I guess I'll have to wait for openglide to support it. 😀

Reply 24 of 71, by Zirias

User metadata
Rank Newbie
Rank
Newbie

Nice documentation!

I just used this for creating debian packages as I prefer those over uncontrolled /usr/local installations. Unfortunately, Carmageddon Demo doesn't seem to work this way and I can't find my other old DOS stuff right now, so I can't test myself.

<edit t="2010/05/09">
I found my old Screamer-2 CD and tested with little success -- then I decided to go for SVN and now this game is running just fine using S2_3DFX.EXE. So my repo now contains a recent SVN build of dosbox.

The .orig.tar.gz was created by "svn export" and then running ./autogen.sh and removing the autm4te.cache.

Note that my package doesn't contain any dfsg-patches -- I just didn't see any sense in porting patches that only REMOVE functionality.

GLIDE2X.OVL is included in the package, installed in /usr/share/dosbox and automatically mapped in the virtual Z: drive.
</edit>

<edit t="2010/05/10">
The newest openglide packages now contain a patch to place their files in ~/.openglide instead of the current directory. A packages libglide2x-dbg is provided for debugging.
</edit>

<edit t="2010/05/12">
Updated package version to 0.74-0+glide1 because of DOSBox 0.74 Released! 😉
</edit>

If anybody wants to test, add this to your sources.list:

deb http://sekrit.de/debian sid main contrib non-free
deb-src http://sekrit.de/debian sid main contrib non-free

and run aptitude update.

You should be able to install glide-enabled dosbox with

aptitude -t sid install dosbox libglide2x

In case this installs an official debian version, try telling aptitude the full version number:

aptitude install dosbox=0.74-0+glide1 libglide2x

The repository contains builds for i386 and amd64. Of course, you can build your own:

apt-get -t sid source openglide
apt-get -t sid source dosbox

(You probably know the rest, otherwise, don't build your own packages or go read the debian docs)

Reply 25 of 71, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

The guide needs just a little change...

Write configure file In dosbox, use the command Code: […]
Show full quote

Write configure file
In dosbox, use the command
Code:

CONFIG -WRITECONFIG dosbox.conf

to write the config file. There is now a dosbox.conf in your current folder. Only if you start dosbox out of this folder you get the configuration. If you want to have this configuration enabled always, copy the file to ~/.dosboxrc

it's actually
config -writeconf dosbox.conf

If the op or a moderator could change this little thing... 😀

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox

Reply 26 of 71, by MadDin

User metadata
Rank Newbie
Rank
Newbie

Hello there!

I am new in the forum and have a problem to get Glide working
under Linux.I follow the instructions but get some problems with
the apply of the patch.Maybe the problem is that I use
Dosbox 0.74 for the compilation but Zirias get it working.I tried
his patched dosbox provided from his package and it's worked.
But I want to use a version only with Glide-Support.

I would be appreciated if someone can help me 😀

Bye,your MadDin

Reply 27 of 71, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Be more precise. You've got problems with applying the patch, not very detailed. This way we can only guess...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox

Reply 28 of 71, by MadDin

User metadata
Rank Newbie
Rank
Newbie

Hi,sorry forgot to post the warnings 😢

Here,my problem...

doppeln@Tippsi:~$ cat dosbox_glide.diff | patch -p0
patching file dosbox/include/glidedef.h
patching file dosbox/include/glide.h
patching file dosbox/include/mem.h
Hunk #1 FAILED at 152.
1 out of 1 hunk FAILED -- saving rejects to file dosbox/include/mem.h.rej
patching file dosbox/src/dosbox.cpp
Hunk #1 FAILED at 77.
Hunk #2 FAILED at 640.
2 out of 2 hunks FAILED -- saving rejects to file dosbox/src/dosbox.cpp.rej
patching file dosbox/src/gui/sdlmain.cpp
Hunk #1 FAILED at 50.
Hunk #2 FAILED at 348.
Hunk #3 FAILED at 686.
Hunk #4 FAILED at 1408.
Hunk #5 FAILED at 1760.
5 out of 5 hunks FAILED -- saving rejects to file dosbox/src/gui/sdlmain.cpp.rej
patching file dosbox/src/hardware/glide.cpp
patching file dosbox/src/hardware/Makefile.am
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file dosbox/src/hardware/Makefile.am.rej
patching file dosbox/src/hardware/memory.cpp
Hunk #1 FAILED at 24.
Hunk #2 FAILED at 141.
Hunk #3 FAILED at 192.
3 out of 3 hunks FAILED -- saving rejects to file dosbox/src/hardware/memory.cpp.rej
patching file dosbox/src/hardware/vga_draw.cpp
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 1364.
2 out of 2 hunks FAILED -- saving rejects to file dosbox/src/hardware/vga_draw.cpp.rej

The patch seems to fail while saving the changes but i have no idea what's to do and I wouldn't proceed without a solution of my problem.Is the version of my Dosbox wrong?I use Version 0.74

Bye

Reply 30 of 71, by MadDin

User metadata
Rank Newbie
Rank
Newbie

Ok,but I also tried the right version(0.73) of the dosbox and
it doesn't work too 😢

I got this error:

doppeln@Tippsi:~/Build$ cat dosbox_glide.diff | patch -p0
patching file dosbox/include/glidedef.h
patching file dosbox/include/glide.h
patching file dosbox/include/mem.h
Hunk #1 FAILED at 152.
1 out of 1 hunk FAILED -- saving rejects to file dosbox/include/mem.h.rej
patching file dosbox/src/dosbox.cpp
Hunk #1 FAILED at 77.
Hunk #2 FAILED at 640.
2 out of 2 hunks FAILED -- saving rejects to file dosbox/src/dosbox.cpp.rej
patching file dosbox/src/gui/sdlmain.cpp
Hunk #1 FAILED at 50.
Hunk #2 FAILED at 348.
Hunk #3 FAILED at 686.
Hunk #4 FAILED at 1408.
Hunk #5 FAILED at 1760.
5 out of 5 hunks FAILED -- saving rejects to file dosbox/src/gui/sdlmain.cpp.rej
patching file dosbox/src/hardware/glide.cpp
patching file dosbox/src/hardware/Makefile.am
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file dosbox/src/hardware/Makefile.am.rej
patching file dosbox/src/hardware/memory.cpp
Hunk #1 FAILED at 24.
Hunk #2 FAILED at 141.
Hunk #3 FAILED at 192.
3 out of 3 hunks FAILED -- saving rejects to file dosbox/src/hardware/memory.cpp.rej
patching file dosbox/src/hardware/vga_draw.cpp
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 1364.
2 out of 2 hunks FAILED -- saving rejects to file dosbox/src/hardware/vga_draw.cpp.rej

It is the same error... Anyone a clue?

Bye,

MadDin

Reply 34 of 71, by Orka Borka

User metadata
Rank Newbie
Rank
Newbie

I've successfully applied the patch under ubuntu with dosbox-0.74, but it seems it's not working anymore. Screamer Rally freezes on black screen during setup, and Tomb Raider crashes with a "No PCI Bus detected" Error.

Any Suggestion?

I'm running on Ubuntu Maverick 10.10, and dosbox is built by the PPA build environment using just the patches found on this thread. I'm running on a 32 bit system with an nvidia card (driver version is 173.14.28)

Reply 37 of 71, by Orka Borka

User metadata
Rank Newbie
Rank
Newbie

weird. I'm sure it's using openglide libglide2x.so.0 and glide2x.ovl file on /usr/share/dosbox (that is, there's no other ovl file anywhere else on $PATH and a simple DIR inside the virtual Z: drive shows it )
Wonder if it's due to the ubuntu PPA packaging environment.

In any case, here is the terminal output (while trying to run tomb raider, it's the same even for the 3dfx demo):

MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none
Glide:LFB access: read-write
Glide:GLIDE_PageHandler installed at 0x60000000 (384 pages)
DOSBox switched to max cycles, because of the setting: cycles=auto. If the game runs too fast try a fixed cycles amount in DOSBox's options.
Glide:Resetting page handler at 0x60000000

Reply 38 of 71, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

How about the game directory?

edit: wait, the demo? The demo won't work because it has ovl AFAIK already linked in...you need the Voodoo Rush patch (which loads the ovl, exe should be <1MB) or try kekko's 3dfx emulation patch, which works on hardware level (so it needs the official ovl)

Last edited by gulikoza on 2011-01-15, 14:50. Edited 1 time in total.

http://www.si-gamer.net/gulikoza

Reply 39 of 71, by MadDin

User metadata
Rank Newbie
Rank
Newbie

Hello it's me again with my problem.

Actually, I made a mistake with the "position" of the patch.
The patch wasn't one folder higher than the dosbox folder.
(I know embarrasing,sorry for my mistake 😢 )

After the correction I tried to apply the patch once more again
and their are still some errors.

Here:

doppeln@Tippsi:~/Build/Source$ cat dosbox_glide.diff | patch -p0
patching file dosbox/include/glidedef.h
patching file dosbox/include/glide.h
patching file dosbox/include/mem.h
patching file dosbox/src/dosbox.cpp
Hunk #2 succeeded at 648 (offset 7 lines).
patching file dosbox/src/gui/sdlmain.cpp
Hunk #1 succeeded at 50 with fuzz 2.
Hunk #2 succeeded at 348 (offset -1 lines).
Hunk #3 succeeded at 690 (offset -1 lines).
Hunk #4 succeeded at 1415 (offset -1 lines).
Hunk #5 succeeded at 1794 (offset 26 lines).
patching file dosbox/src/hardware/glide.cpp
patching file dosbox/src/hardware/Makefile.am
patching file dosbox/src/hardware/memory.cpp
patching file dosbox/src/hardware/vga_draw.cpp
Hunk #1 succeeded at 26 with fuzz 2.
Hunk #2 FAILED at 1365.
1 out of 2 hunks FAILED -- saving rejects to file dosbox/src/hardware/vga_draw.cpp.rej

Anyone who have an idea?

Thanks for reading
😀