Files
Neo-DesktopandClaude Opus 5.5 35d66c85e9 Build the app for Haiku (x86_64)
The Windows app now builds for Haiku over the new Haiku backend of
clang-retro MFC (clang-retro/mfc#176), cross-built on Linux with D-Modem's
Haiku toolchain file and sysroot script.

- cmake/haiku.cmake: the toolchain file. It includes D-Modem's and
  keeps the CMAKE_FIND_ROOT_PATH of the command line, so that libssh
  finds the bundled mbedTLS.
- winport/CMakeLists.txt: the Haiku target and its libraries (libbe,
  libdevice, libnetwork, libbsd).
- ssh/: libssh links libnetwork and libbsd on Haiku, has getaddrinfo,
  and skips the termios values that Haiku does not have.
- Look for a modem (windows/src/ports.cpp, ports_haiku.cpp): lists
  /dev/ports, names the usbN ports from the USB Kit, finds the CDC-ACM
  modems, and tells that Haiku has no driver for the MultiTech
  MT9234MU.
- CI: the winport-haiku job builds the app and uploads
  dmodem-win32-haiku-x86_64.tar.gz; the nightly release takes it.
- docs/haiku.md, and short notes in the README, building.md and
  download.md.

Tested on Haiku R1/beta6 in QEMU: the menus, the pages, the dialogs,
modal dialogs, the keyboard, moving the window, and Look for a modem
with the computer's serial port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTJUdomcnCN8okhJSr
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 20:11:33 +00:00

3.7 KiB

The app on Haiku

The Windows app also runs on Haiku (x86_64). The app is the same Win32 source code. It runs over the portable Win32 layer of clang-retro MFC, which shows the windows with Haiku's Interface Kit. The built-in modem is in the app, as on the other systems.

The Modem page of the app on Haiku The Line Settings dialog of the app on Haiku

Requirements

  • Haiku R1/beta6 or later, x86_64. The app was tested on R1/beta6.
  • libusb. In a Terminal, type pkgman install libusb.

Install

  1. Download dmodem-win32-haiku-x86_64.tar.gz from the nightly release.
  2. Open a Terminal in the download folder.
  3. Extract the file. Type tar -xzf dmodem-win32-haiku-x86_64.tar.gz.
  4. Start the app. Type ./dmodem-win32.

The app keeps its settings in ~/config/settings/libmfc.

Build

You build the app on Linux. The build uses the system's clang and a sysroot that has Haiku's own packages.

  1. Install the tools. On Ubuntu 24.04, type sudo apt install cmake ninja-build clang lld llvm libzstd1 python3.

  2. Get clang-retro MFC and the D-Modem submodule (git submodule update --init).

  3. Make the sysroot. The script downloads Haiku's packages and examines them against the SHA-256 of their repositories:

     python3 external/D-Modem/platforms/haiku/haiku_sysroot.py haiku-sysroot
    
  4. Build the app:

     cmake -S . -B build/haiku -G Ninja -DCMAKE_BUILD_TYPE=Release \
         -DCMAKE_TOOLCHAIN_FILE=$PWD/cmake/haiku.cmake \
         -DHAIKU_SYSROOT=$PWD/haiku-sysroot \
         -DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC=/path/to/mfc
     cmake --build build/haiku --target dmodem-win32
    

The app is build/haiku/winport/dmodem-win32. Copy it to the Haiku computer.

cmake/haiku.cmake includes the toolchain file of D-Modem (external/D-Modem/platforms/haiku/haiku.cmake). The CI job winport-haiku (.github/workflows/build.yml) does these steps. It does not start the app.

Serial ports and modems

Haiku keeps the serial ports in /dev/ports:

  • pc_serial0, pc_serial1 and on are the serial ports of the computer.
  • usb0, usb1 and on are the USB serial adapters and the CDC-ACM USB modems. Haiku's usb_serial driver makes these ports.

In Line settings, the Port list shows the ports of /dev/ports, for example /dev/ports/usb0. You can also type COM1 (the first port by name), COM2 (the second port), and so on.

Look for a modem does these steps:

  1. It finds the ports in /dev/ports.
  2. It finds the USB devices with Haiku's USB Kit. It gives each usbN port the name of its device (the maker and the product).
  3. If a CDC-ACM device tells that it takes AT commands, the app selects its port as the modem.

Haiku has no driver for the MultiTech MT9234MU. If you connect this modem, Look for a modem tells you that Haiku cannot use it. Use a modem with a serial port, or a CDC-ACM USB modem.

Keys

The keys are those of a PC keyboard:

Key on the keyboard Key in the app
Control Control. For example, Control+C copies.
Alt (Haiku's Command key, by default) Alt. For example, Alt+M opens the Modem menu.
Windows (Haiku's Option key) Windows

Limits

  • The app has no sound on Haiku. The Phone page cannot play or record the call.
  • The app cannot print. Only "Save as PDF" is available.
  • The Deskbar shows a generic icon for the app.
  • The USB modems were not tested on Haiku yet. QEMU's USB serial adapter does not operate with Haiku, so the tests used the serial port of the computer only.