Build from source

Installation dependencies

Please refer to Install dependencies.

Compilation

  1. $ git clone https://github.com/emqx/neuron
  2. $ cd neuron
  3. $ mkdir build && cd build
  4. $ cmake .. && make

There are three optional parameters in CMakeLists:

  • CMAKE BUILD Type “Debug”, which compiles the debug version by default.
  • DISABLE_WERROR, which treats all warnings as errors.
    Usage example:cmake -DISABLE_WERROR=1 ..
  • DISABLE_ ASAN, select whether to enable libasan memory detection.

Install Dashboard

On the neuron dashboard download the latest neuron-dashboard.zip from the page, extract it, and place it in the dist directory under the Neuron executable directory.

Operation

  1. $ cd build
  2. $ ./ neuron