-
-
Notifications
You must be signed in to change notification settings - Fork 184
Add libslirp support (#797) #1419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test package: |
Thank you @Jookia! |
As salty as I was in my PR, I'm glad to see kcgen is doing the work I wouldn't to get this merged. Slirp for everyone! |
@kcgen Your timing is impeccable, was just reading through the comments of the old PR.. 😱 |
Oh that reminds me, will this be enabled on Windows? DOSBox-X disables the Win32 code (which I tested and made work) because glib and slirp don't support Windows XP. |
Our target is to support Windows 7 or newer so on that basis it should be enabled. |
Not sure if glib supports Windows 7 still.
…On Fri, Dec 03, 2021 at 05:49:16AM -0800, Grounded0 wrote:
Our target is to support Windows 7 or newer so on that basis it should.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#1419 (comment)
|
https://wiki.gnome.org/Projects/GLib/SupportedPlatforms Windows: minimum version is Windows 8, minimum build chain is Visual Studio 2012. I think its unlikely we are going to drag everyone else down to support Windows 7. |
https://gs.statcounter.com/windows-version-market-share/desktop/worldwide/ Windows 8+ has a 86.5% market share. |
vcpkg (as of right now) currently doesn't package Since your PR, @shermp has contributed a newly authored and improved msys2 CI stack, producing all-features-enabled binaries: and libslirp is available under msys2. So no matter what, we will have libslirp in these builds going forward. |
Nice!
|
a77995b
to
b44e6fe
Compare
had a small issue when compiling dosbox-x requesting libslirp awhile ago, it might have been resolved by debian11/raspbian11 previous debian10 doesnt have any libslirp in the repo raspbian 11/debian11:
vs ubuntu x86_64
resolution was to disable networking at build time or compile slirp and install it separately
depends if staging is building this static linked or dynamically with the src |
Perhaps @kcgen should add the slirp wrap as a fallback if required. It exists in the meson wrapdb. |
294d218
to
d765996
Compare
Oh cool, port forwarding. I think DOSBox-X took that. Awesome! Just to confirm: The libslirp.h thing might have been a bug. I'm not sure, I don't remember entirely but I do recall a bug with libslirp directories not working with Homebrew on macOS. |
Thanks @Jookia ; yup - @Wengier 's pulled that commit into X already. Soon enough when we get this merged, the two projects will be able to communicate via TCP with one acting as the server. Fun times indeed, all thanks to your contribution! |
Thanks for the heads up. Still chipping away at the CI side as time permits, so this is good to know. |
This commit uses 32-bit float and avoids internally threading FluidSynth voices (and using openMP), as 64-bit samples and voice-threading and voice-threading are simply unecessary for performance and the precision demands of 24 parallel mixed voices of General MIDI. DOSBox Staging already threads FluidSynth as as whole, and performance is acceptable on decade-old hardware such as a core2duo and Pi2. (Context: 64-bit and OpenMP /are/ useful when mixing demands climb into the hundreds or thousands of parallel voices, but this isn't General MIDI, which limited to 24 voices).
Woot! |
Unfortunately in my tests on macOS it seems as if no actual network traffic is forwarded outside of Dosbox. I loaded the ne2000 driver successfully, I also tried
which then repeats without success. Annoyingly there are also no log messages in the console related to |
Please open a bug for that issue and provide logs, etc. |
Note that ICMP (ping) does not work on all platforms with SLIRP (I know it doesn't work on Windows), so I wouldn't rely on ping as an indication on whether it works or not. |
I'll prepare a more comprehensive issue for it if I get around to it. I went back to testing ping because I couldn't get anything else to work either. |
@PatTheMav Please open a new ticket on our issue tracker over this instead of using this page for issues. |
Thank you for telling me twice, especially after I already mentioned that I'll prepare a more comprehensive issue on that. |
Just trying to keep pages related to code reviews clean from issues. Thats all. |
Address the review comments and merge the excellent work by @Jookia from March 2021. Thank you!
Fixes #797.