VOGONS


First post, by Darkfalz

User metadata
Rank Member
Rank
Member

Would it be possible to statically link the needed dlls into the DOSBOX executable? The folder is getting rather crowded... 😀

libogg-0.dll
libpng12.dll
libvorbis-0.dll
libvorbisfile-3.dll
SDL.dll
SDL_net.dll

Reply 1 of 6, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

No. These few files are no problem (look into windows folders to see what are crowded folders 😀 ).
But there is a more important reason against it: It would not be possible to replace a DLL by another one in case of problems (this is definitely being the recommended thing to try with SDL.DLL when DOSBOX crashes while startting).

Mirek

Reply 2 of 6, by ASM

User metadata
Rank Newbie
Rank
Newbie

I have to agree with mirekluza.
If you personally prefer statically linked libraries compile your own copy of DOSBox.

Get the source code of DOSBox as well as of the libraries you want to link and compile the libraries as static libraries and link them with DOSBox. I did this with SDL, SDL_net, libpng and zlib.

As for public releases I don't recommend to link them statically.

Reply 3 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It was quite a work to get to link dynamicly under mingw.
the authors of the libs didn't always have a good makefile.

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 6, by priestlyboy

User metadata
Rank Oldbie
Rank
Oldbie

The only build that is mostly static linked is my builds.
and since Libvorbis is rarely updated it's not like it's a big deal to have it static linked or not.
But the main DLLs that are gladly not statically linked are SDL and SDL_net
The rest I could care less.

/Ieremiou

Ieremiou
----------
Helping Debug DOSBox.

Reply 6 of 6, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator
Darkfalz wrote:

Yeah, the vorbis dlls are what most bother me. Just seems they have nothing to dow ith emulation.. what are they for anyway? Recording streams to ogg format? Why not just wav?

IMGMOUNT enables mounting CUE sheets with OGG files. The information is well hidden in our readme

IMGMOUNT A utility to mount disk images and CD-ROM images in DOSBox. IMGMOUNT DRIVE [imagefile] -t [image_type] -fs [imag […]
Show full quote

IMGMOUNT
A utility to mount disk images and CD-ROM images in DOSBox.

IMGMOUNT DRIVE [imagefile] -t [image_type] -fs [image_format]
-size [sectorsbytesize, sectorsperhead, heads, cylinders]
...
imagefile
location of the image files to mount in DOSBox. The location is on a
mounted drive inside DOSBox. CD-ROM images can be mounted
directly as well. They don't need to be a mounted drive.

-t
The following are valid image types:
...
iso: Specifies a CD-ROM iso image. The geometry is automatic and set for this size. This can be an iso or a cue/bin.
...

Yes, it could be better documented. 😀

Mirek