Hi 
I did get the wine (plus transgaming patch) to compile and link all the
files that were not being linked correctly (refer to my prevoius mesage)
In the end of this message I have the list of files I needed to compile
and the gcc link command to  manually link libddraw.so. 

I did get it to run Baldurs Gate 2 Shadow of Amn with the use 3D option on
(and Everquest a little bit). In BG2 it actually goes through the
splashes, and everything else works , but the sound gets underrun, but the
game runs fine, slightly slow probably because the terminal is flooded
with underrun messages like below:

fixme:dsound:DSOUND_MixOne problem with underrun detection (mixlen=14336 <
primary_done=14416)
fixme:dsound:DSOUND_MixOne problem with underrun detection (mixlen=14336 <
primary_done=14416)
err:dsound:DSOUND_MixOne underrun on sound buffer 0x40399190
err:dsound:DSOUND_MixOne underrun on sound buffer 0x40399190
err:dsound:DSOUND_MixOne underrun on sound buffer 0x40399190


But still, it runs I played it for about 10 minutes, casted spells checked
things out.

BTW using the ALSA gave me better results than OSS.


List of file needed to be manually compiled and linked to libddraw.dll in
directory wine-20001222.transgaming/dlls/ddraw/

mesa.c d3dexecutebuffer.c d3dcommon.c d3dlight.c d3dmaterial.c
d3dtexture.c d3dviewport.c ddraw/xvidmode.c direct3d/main.c
direct3d/mesa.c d3ddevice/main.c d3ddevice/mesa.c

Here is the link command that will work (It wiil complain about the .o
files missing and you can manually compile the .o files from respective .c
files and bingo.

gcc -shared -Wl,-soname,libddraw.so -Wl,-rpath,/usr/local/lib \
ddraw.spec.o    convert.o struct_convert.o mesa.o d3dexecutebuffer.o \
d3dcommon.o d3dlight.o d3dmaterial.o d3dtexture.o d3dviewport.o \
d3dvbuffer/main.o dclipper/main.o ddraw/main.o ddraw/thunks.o \ 
ddraw/user.o \
ddraw/xvidmode.o direct3d/main.o direct3d/mesa.o d3ddevice/main.o \
d3ddevice/mesa.o dpalette/main.o dsurface/main.o dsurface/thunks.o \
dsurface/dib.o dsurface/user.o dsurface/fakezbuffer.o \
dsurface/dibtexture.o helper.o main.o      -o libddraw.so -L../../dlls \
-luser32 -lx11drv -lgdi32 -lkernel32 -L../../library -lwine -L../../ole \
-luuid -lncurses -lm  -lutil -ldl

Goodluck and good job.

FT


Reply via email to