Skip to content
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

Serial port - nullmodem and modem not working on Mac #3534

Open
2 tasks done
ramboza opened this issue Jun 1, 2022 · 3 comments
Open
2 tasks done

Serial port - nullmodem and modem not working on Mac #3534

ramboza opened this issue Jun 1, 2022 · 3 comments
Labels

Comments

@ramboza
Copy link

ramboza commented Jun 1, 2022

Describe the bug

Serial port configurations regarding nullmodem or modem is not working on macOS version

Steps to reproduce the behaviour

To reproduce issue try to use

serial1 = modem
or
serial1 = nullmodem

parameters for any serialX port inside of [serial] configuration

Expected behavior

No response

What operating system(s) this bug have occurred on?

MacOS Monterey v12.4

What version(s) of DOSBox-X have this bug?

Dosbox-x: 0.83.25

Used configuration

options i tried:

[serial]
serial1 = modem
  or
serial1 = modem listenport:2323
  or
serial1 = nullmodem
  or 
serial1 = nullmodem server:127.0.0.1
  or
serial1 = nullmodem server:127.0.0.1
  or
serial1 = nullmodem port:3333
  or
serial1 = nullmodem server:127.0.0.1 port:3333

Output log

....
LOG: Invalid type for serial1 <<<< 
LOG: Serial2: BASE 2f8h
...

Additional information

No response

Have you checked that no similar bug report(s) exist?

  • I have searched and didn't find any similar bug report.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.
@ramboza ramboza added the bug label Jun 1, 2022
@rderooy
Copy link
Contributor

rderooy commented Jun 1, 2022

I think modem support requires SDL_net or SDL2_net and I suspect your build was generated without?

@ramboza
Copy link
Author

ramboza commented Jun 1, 2022

Rderooy, thanks for hint !

Here is quick solution for MacOS and SDL2:

Inside of vs/sdlnet folder has saved SDL_net v1.x and extra script build-dosbox.sh to build it.
The same story for SDL2_net...

  1. Download and extract official SDL2_net-2.0.1.tar.gz as new folder vs/sdl2net
  2. Make a copy of vs/sdlnet/build-dosbox.sh as vs/sdl2net/build-dosbox.sh
  3. Add following lines in the proj. root build-debug-macosx-sdl2

After line 20:
...
echo Compiling our internal SDL 2.x
(cd vs/sdl2 && ./build-dosbox.sh) || exit 1
#fi

# prefer to compile against our own copy of SDLnet 1.x
echo Compiling our internal SDLnet 2.x
(cd vs/sdl2net && ./build-dosbox.sh) || exit
new="-I$top/vs/sdl2net/linux-host/include/SDL2 "
nld="-L$top/vs/sdl2net/linux-host/lib "
export CFLAGS="$new$CFLAGS -g3"
export LDFLAGS="$nld$LDFLAGS -g3"
export CPPFLAGS="$new$CPPFLAGS -g3"
export CXXFLAGS="$new$CXXFLAGS -g3"

In the end run build script and enjoy serial functionality again !
;)

P.S.
Can I do PR with this fix ?

@rderooy
Copy link
Contributor

rderooy commented Jun 2, 2022

Sure, create a PR and submit it. But I am not the approver ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants