joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.65k stars 376 forks source link

Slirp not supported on mingw build #2704

Open DependentAppearance0 opened 3 years ago

DependentAppearance0 commented 3 years ago

Describe the bug I am trying to use networking in windows 98 and as my wifi adapter doesn't support pcap I'm trying to use slirp. According to all of the documentation slirp isn't supported on the visual studio builds so I reinstalled dosbox-x using the MinGW build SDL1 (Default MinGW build). No matter what I do I get the following lines in my log files:

ETHERNET: Backend not supported in this build: slirp
NE2000: Failed to open Ethernet backend slirp

I did also test the mTCP example which ended up returning the fully FF mac address.

Environment: Windows 10 21H1 DOSBox-X 0.83.15 Used the bellow configuration:

[sdl]
autolock=true

[dosbox]
title=Windows 98
memsize=512

[video]
vmemsize=512
vesa modelist width limit=0
vesa modelist height limit=0
allow high definition vesa modes=true
allow unusual vesa modes=true
allow low resolution vesa modes=false

[dos]
ver=7.1
hard drive data rate limit=0

[cpu]
cputype=pentium_mmx
core=dynamic_x86

[sblaster]
sbtype=sb16vibra

[fdc, primary]
int13fakev86io=true

[ide, primary]
int13fakeio=true
int13fakev86io=true

[ide, secondary]
int13fakeio=true
int13fakev86io=true
cd-rom insertion delay=4000

[render]
scaler=none

[ne2000]
ne2000=true
nicirq=10
backend=slirp

[ethernet, slirp]

[log]
logfile=win98-dosbox-x.log

[autoexec]
IMGMOUNT C D:\dosbox-x\WIN98.IMG
BOOT C:
Wengier commented 3 years ago

It appears that libslirp may not be enabled in the default MinGW build for some reason, even though in the MinGW script there is supposed to be a step to install the mingw-w64-x86_64-libslirp library for 64-bit MinGW builds. In any case, can you try the following 64-bit MinGW SDL1 build that I compiled myself for Slirp support?

DependentAppearance0 commented 3 years ago

The build you attached works and slirp is able to run. I have full internet access on both dos and windows 98 with the attached build.