Tutorial: dosbox with Glide under Linux

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

Re: Tutorial: dosbox with Glide under Linux

Postby Hinrik » 2009-11-26 @ 12:20

The exact error is:

Code: Select all
Glide:Unable to load glide2x library, glide emulation disabled: /usr/local/lib/libglide2x.so: undefined symbol: _Z22InitialiseOpenGLWindowjiiii
Hinrik
Newbie
 
Posts: 4
Joined: 2009-11-24 @ 00:10

Re: Tutorial: dosbox with Glide under Linux

Postby gulikoza » 2009-11-26 @ 12:57

Try applying the MacOSX openglide patch (found here) it contains among MacOSX also the wrong prototype fix for the InitialiseOpenGLWindow function.
User avatar
gulikoza
Oldbie
 
Posts: 1698
Joined: 2004-6-25 @ 14:53

Re: Tutorial: dosbox with Glide under Linux

Postby Hinrik » 2009-11-26 @ 22:23

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. :)
Hinrik
Newbie
 
Posts: 4
Joined: 2009-11-24 @ 00:10

Re: Tutorial: dosbox with Glide under Linux

Postby gulikoza » 2009-11-26 @ 22:29

Yes unfortunately Carmageddon only works with dgvoodoo which is windows only.
User avatar
gulikoza
Oldbie
 
Posts: 1698
Joined: 2004-6-25 @ 14:53

Re: Tutorial: dosbox with Glide under Linux

Postby Zirias » 2010-5-08 @ 08:16

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 viewtopic.php?t=24779 ;)
</edit>

If anybody wants to test, add this to your sources.list:
Code: Select all
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
Code: Select all
aptitude -t sid install dosbox libglide2x


In case this installs an official debian version, try telling aptitude the full version number:
Code: Select all
aptitude install dosbox=0.74-0+glide1 libglide2x


The repository contains builds for i386 and amd64. Of course, you can build your own:
Code: Select all
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)
Zirias
Newbie
 
Posts: 39
Joined: 2010-5-08 @ 07:22

Re: Tutorial: dosbox with Glide under Linux

Postby Dominus » 2010-9-02 @ 20:29

The guide needs just a little change...
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... :)
User avatar
Dominus
DOSBox Moderator
 
Posts: 7283
Joined: 2002-10-03 @ 09:54
Location: Vienna

Re: Tutorial: dosbox with Glide under Linux

Postby MadDin » 2010-12-23 @ 23:55

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 :happy:

Bye,your MadDin
MadDin
Newbie
 
Posts: 7
Joined: 2010-12-23 @ 22:37

Re: Tutorial: dosbox with Glide under Linux

Postby Dominus » 2010-12-24 @ 12:33

Be more precise. You've got problems with applying the patch, not very detailed. This way we can only guess...
User avatar
Dominus
DOSBox Moderator
 
Posts: 7283
Joined: 2002-10-03 @ 09:54
Location: Vienna

Re: Tutorial: dosbox with Glide under Linux

Postby MadDin » 2010-12-24 @ 15:10

Hi,sorry forgot to post the warnings :depressed:

Here,my problem...

Code: Select all
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
MadDin
Newbie
 
Posts: 7
Joined: 2010-12-23 @ 22:37

Re: Tutorial: dosbox with Glide under Linux

Postby gulikoza » 2011-1-02 @ 10:30

You need to use the same version of the sources as the patch was made for (or manually fix the rejects).
User avatar
gulikoza
Oldbie
 
Posts: 1698
Joined: 2004-6-25 @ 14:53

Re: Tutorial: dosbox with Glide under Linux

Postby MadDin » 2011-1-04 @ 17:21

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

I got this error:

Code: Select all
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
MadDin
Newbie
 
Posts: 7
Joined: 2010-12-23 @ 22:37

Re: Tutorial: dosbox with Glide under Linux

Postby wd » 2011-1-04 @ 18:03

Now you know that 0.73 is not the base for the patch either. Check the dates or other information.

Or check the rejects and fixup what's necessary.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Tutorial: dosbox with Glide under Linux

Postby MadDin » 2011-1-06 @ 15:09

And which version is the right one? I used dosbox 0.73 and 0.74,
both failed and I followed the guide...
MadDin
Newbie
 
Posts: 7
Joined: 2010-12-23 @ 22:37

Re: Tutorial: dosbox with Glide under Linux

Postby wd » 2011-1-06 @ 15:13

No idea, if it's not explicitly stated at the posting where you found the patch
or you can derive it from the path line in the diff, you have to use solution 2)
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Tutorial: dosbox with Glide under Linux

Postby Orka Borka » 2011-1-14 @ 22:05

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)
Orka Borka
Newbie
 
Posts: 32
Joined: 2008-2-08 @ 17:58

Re: Tutorial: dosbox with Glide under Linux

Postby MadDin » 2011-1-15 @ 13:03

Hm,try to run dosbox in the terminal.Maybe you get a clue what
is going wrong.
MadDin
Newbie
 
Posts: 7
Joined: 2010-12-23 @ 22:37

Re: Tutorial: dosbox with Glide under Linux

Postby gulikoza » 2011-1-15 @ 13:39

"No PCI Bus detected" suggests you're using 3dfx ovl file, not the one provided with the patch.
User avatar
gulikoza
Oldbie
 
Posts: 1698
Joined: 2004-6-25 @ 14:53

Re: Tutorial: dosbox with Glide under Linux

Postby Orka Borka » 2011-1-15 @ 14:28

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):


Code: Select all
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
Orka Borka
Newbie
 
Posts: 32
Joined: 2008-2-08 @ 17:58

Re: Tutorial: dosbox with Glide under Linux

Postby gulikoza » 2011-1-15 @ 14:47

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-1-15 @ 14:50, edited 1 time in total.
User avatar
gulikoza
Oldbie
 
Posts: 1698
Joined: 2004-6-25 @ 14:53

Re: Tutorial: dosbox with Glide under Linux

Postby MadDin » 2011-1-15 @ 14:49

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 :depressed: )

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

Here:

Code: Select all
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
:happy:
MadDin
Newbie
 
Posts: 7
Joined: 2010-12-23 @ 22:37

PreviousNext

Return to DOSBox Development

Who is online

Users browsing this forum: NY00123 and 1 guest