Skip to content

How to compile

Yancey Wang edited this page Jan 7, 2026 · 20 revisions

Prerequest

This project use cmake as build system, with SDL as dependency.

On windows you need to install msys2 with mingw, then install cmake and SDL2 inside msys2. (later you need to run cmake inside msys2)

On Mac you need to install cmake and SDL2 with brew.

On Linux you need to install cmake and SDL2with apt or yum. (make sure install the dev version)

Compile

git clone https://github.com/wangyu-/NC2000.git
cd NC2000
git clone https://github.com/wangyu-/wqxdsp.git dsp
cmake .
make

(Optional) Compile with udp server enabled

In above steps, replace cmake . with cmake -DENABLE_UDP_SERVER=1 .

In this way the compile binary will listen on udp port 9000 and accept commands.

(If it doesn't work, remove cmake cache with rm CMakeCache.txt and try again.)

This feature is disabled in the releases binaries, since it is causing anti-virus mis-report.

(Optional) Compile with serial port support

In addition, 2 more dependencies are needed:

  • libserialport
  • pkg-config (for cmake to find libserialport)

In above steps, replace cmake . with cmake -DENABLE_SERIAL_PORT=1 .

(If it doesn't work, remove cmake cache with rm CMakeCache.txt and try again.)

This feature is enabled in the releases binaries.

Clone this wiki locally