Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Latest commit

 

History

History
52 lines (42 loc) · 2.23 KB

build.md

File metadata and controls

52 lines (42 loc) · 2.23 KB

Build dependencies and instructions

C++ version

Windows

Dependencies

  1. Visual studio 2017 (official download)
  2. Boost 1.67 (installation and build instructions)

Instructions

  1. Clone repository https://github.com/tevador/moddable
  2. Build the XS engine using the batch file moddable\build\makefiles\win\build.bat
  3. Clone this repository.
  4. Open and build the solution RandomJS\src-cpp\randomjs.sln in Visual studio.
  5. Copy moddable\build\bin\win\release\xst.exe to the same directory as randomjs.exe.

Linux

Dependencies

  1. GCC 5+ (tested with 6.3)
  2. Boost 1.67 (installation and build instructions)

Instructions

  1. Clone repository https://github.com/tevador/moddable
  2. Build the XS engine: cd moddable/build/makefiles/lin && make.
  3. Clone this repository.
  4. Build randomjs: cd RandomJS/src-cpp && make.
  5. Copy moddable/build/bin/lin/release/xst to RandomJS/src-cpp/bin.

C# version (testing only)

Windows

Dependencies

  1. Visual studio 2017 (official download)
  2. NodeJS (official download)

Instructions

  1. Build the solution in Visual studio.
  2. Open the command prompt in the src directory.
  3. Run npm install.
  4. Run the javascript sandbox: node sandbox.js.
  5. Run Tevador.RandomJS.exe or Tevador.RandomJS.Miner.exe in a separate command prompt.

Linux

Dependencies

  1. Mono 4.0+ (via package manager). For recent Ubuntu and Debian distros, install using sudo apt-get install mono-devel.
  2. NodeJS (via package manager). For recent Ubuntu and Debian distros, install using curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - and sudo apt-get install -y nodejs

Instructions

  1. Build with make.
  2. Run npm install.
  3. Run the javascript sandbox: node sandbox.js.
  4. Run mono Tevador.RandomJS.exe or mono Tevador.RandomJS.Miner.exe in a separate terminal window.