Skip to content

How to compile

Yancey Wang edited this page Jan 2, 2026 · 12 revisions

Prerequest

This project use cmake as build system, with following dependencies:

  1. SDL2
  2. libserialport

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

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

On Linux you need to install cmake and SDL2 and libserialport with 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.

Clone this wiki locally