-
Notifications
You must be signed in to change notification settings - Fork 18
How to compile
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)
git clone https://github.com/wangyu-/NC2000.git
cd NC2000
git clone https://github.com/wangyu-/wqxdsp.git dsp
cmake .
make
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.
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.